MononcQc posted:[ ] what is an object anyway? a bad programmer's crutch
|
|
# ? Mar 27, 2013 01:34 |
|
|
# ? Jun 11, 2024 13:36 |
the best objects are the ones you don't have to think about
|
|
# ? Mar 27, 2013 01:39 |
|
*makes feeble attempt to bring up Prolog chat*
|
# ? Mar 27, 2013 01:40 |
|
Zombywuf posted:*makes feeble attempt to bring up Prolog chat* illogical
|
# ? Mar 27, 2013 01:42 |
|
Fine have some dependant types: http://cseweb.ucsd.edu/~rchugh/research/nested/djs.pdf
|
# ? Mar 27, 2013 01:50 |
gucci void main posted:the best objects are the ones you don't have to think about sulk i hear you got a job, n1 m8
|
|
# ? Mar 27, 2013 01:50 |
|
MononcQc posted:[ ] what is an object anyway? choose your own adventure a container for global like variables in member functions a light weight process that responds to async message passing a container for global variables that responds to sync messages a way of having properties on data structures and allowing polymorphism through single dispatch quote:[ ] best type of inheritance (traits?) traits are drat neat, but delegation style patterns (to a superclass or another object) are useful too. flat composition should be the default tho problem is really that subtyping and code reuse are done through same mechanism without an easy way to unfuck it. quote:[ ] design patterns are the best / the worst i'm sure i've done that one in here Otto Skorzeny posted:does anybody really know what time it is? this would also be fun to rant and copy paste into a blog
|
# ? Mar 27, 2013 02:35 |
|
Zombywuf posted:*makes feeble attempt to bring up Prolog chat* no
|
# ? Mar 27, 2013 02:35 |
|
tef posted:a container for global like variables in member functions An array with pretentions.
|
# ? Mar 27, 2013 02:45 |
|
Zombywuf posted:An array with pretentions. a hashtable with functions in some of the entries (literally how javascript works)
|
# ? Mar 27, 2013 02:48 |
|
Cocoa Crispies posted:a hashtable with functions in some of the entries hidden classes have a parent pointer too
|
# ? Mar 27, 2013 02:55 |
|
Zombywuf posted:*makes feeble attempt to bring up Prolog chat* No.
|
# ? Mar 27, 2013 03:00 |
|
quote:The venerable master Qc Na was walking with his student, Anton. Hoping to prompt the master into a discussion, Anton said "Master, I have heard that objects are a very good thing - is this true?" Qc Na looked pityingly at his student and replied, "Foolish pupil - objects are merely a poor man's
|
# ? Mar 27, 2013 03:03 |
|
c.f iterator and observer are duals also i'm with joe when he says erlang is the only oo language
|
# ? Mar 27, 2013 03:21 |
|
i think alan kay said that at some point too
|
# ? Mar 27, 2013 03:29 |
|
Notorious b.s.d. posted:someone with more knowledge of scala's internals could address this better, but i think breaking backwards compatibility a lot is unavoidable given scala's design basically, yeah. Scala's compatibility comes from being able to run on jvm 1.5* -> jvm 1.8 without needing to recompile. Because of type-erasure and various other decisions (inlining is another culprit I believe), you're pretty much hosed when using different versions of the Scala standard library. If you get a MethodNotFound exception, chances are one of your dependencies was for a previous version of Scala. *2.10 deprecates the 1.5 backend
|
# ? Mar 27, 2013 03:33 |
|
My first taste of objects was in Scheme, hand-rolling them out of closures. The first time I used a ~proper~ object system, I remember thinking that it was just syntax over lambdas, and then being frustrated when I found out the language didn't even have lambdas, like they gave you one of the things you could build and then took away the tools to build anything yourself. It sort of scared me away from mainstream OOP languages for a while I just started on learning C# for a thing the other day, though. C# owns
|
# ? Mar 27, 2013 04:22 |
|
MononcQc posted:[x] static vs. dynamic void *foo vs. void* foo vs. void * foo
|
# ? Mar 27, 2013 04:58 |
b0lt posted:void *foo vs. void* foo vs. void * foo void *foo supremacy
|
|
# ? Mar 27, 2013 05:49 |
|
FamDav posted:compiling source using different stls isn't a huge problem, it's when you have precompiled objects that are expecting to pass stl data structures back and forth that everything goes wrong. yeah, compiling isn't too bad, it's the abi that is a bitch. the same is true for scala: source compatibility between 2.8, 2.9, and 2.10 isn't perfect, but it ain't bad. unfortunately, since the java ecosystem is obsessed with versioning jar files, abi compatibility is way the gently caress more noticeable than source compatibility problems as much as i love maven and nexus, the maven approach to repo management is the crudest-possible approach. as few features as possible are included, and it is very much based on the premise that the jvm (the effective abi) never changes. scala library publishers work around this by uploading versions with "$X.N.N_2.10" or whatever, assuming that library consumers will use sbt, which expects the abi version to be crammed into the library version. it's all a nasty hack. perl doesn't have this problem because cpan is the maximalist approach to the problem. rather than a repo of binaries with known dependencies, cpan provides a gigantic unified build/test framework. is cpan technically better than maven central? yeah, probably. does it matter? not unless you are a scala user
|
# ? Mar 27, 2013 07:11 |
|
b0lt posted:void *foo vs. void* foo vs. void * foo this has never merited discussion because "void* foo" is so clearly better (when sulk is the only dissenter you *know* it's a dead letter item)
|
# ? Mar 27, 2013 07:12 |
|
tef posted:[x] editor chat
|
# ? Mar 27, 2013 07:18 |
|
if you have to ask why c# or java is a reasonable choice, you will never understand java is like zen. you can only really be enlightened after you watch fat neckbearded fuckwits in fanny packs spout horseshit for hours only instead of tourists it is "rubyists" and python users. as an industry, tech grows so fast that no one learns from the past. the immutable truth is that there is always a new crop of neckbeards with fanny packs. i will be dead before this stops being true
|
# ? Mar 27, 2013 07:22 |
|
mononoqc: i drank with yuri tonite and he kinda convinced me elixir is the poo poo and also that maps are coming to r17 with #{key => value} syntax. counterpoint?
|
# ? Mar 27, 2013 07:36 |
|
MononcQc posted:[ ] what is an object anyway? a miserable little pile of methods
|
# ? Mar 27, 2013 07:44 |
|
horse mans posted:a miserable little pile of methods LMAO Any other 90's Kids get this epic ref?
|
# ? Mar 27, 2013 12:50 |
|
Notorious b.s.d. posted:this has never merited discussion because "void* foo" is so clearly better then you fall in the void* foo, bar; trap void *foo, *bar;
|
# ? Mar 27, 2013 12:55 |
|
tef posted:[x] editor chat You've only got one forum full of sycophants to indulge you, so try to avoid making fun of them so blatantly.
|
# ? Mar 27, 2013 13:01 |
|
the talent deficit posted:mononoqc: I don't know. Elixir adds a bit to what Erlang does (contracts, more macros), but at this point there is so little difference on many aspects I don't see the point of using it. I hope it acts more like a honeypot for ruby nostalgics who wouldn't stop complaining about Erlang anyway. It's likely much easier to sell to non-Erlang users than Erlang users in the first place. I'm also always split on the idea of macros easily available for all. Maps are coming in R17 according to what Kenneth Lundin (OTP team leader from Ericsson) announced at the Erlang Factory in San Francisco. I think they're good news, but I'm cynical about them. I think people will abuse them and use them as the data structure to rule them all, expose all of their processes' internals by shoving that poo poo around instead of using tuples, proplists, or whatever. Then all the programs out there will look like poo poo that shoves maps everywhere until they're huge and slow and then people start wondering why. At this point I'm more afraid of how much people will abuse them than excited about the couple of use cases I'll have for them (replacing dicts and gb_trees). We'll see, I guess.
|
# ? Mar 27, 2013 13:20 |
|
MononcQc posted:I don't know. Elixir adds a bit to what Erlang does (contracts, more macros), but at this point there is so little difference on many aspects I don't see the point of using it. I hope it acts more like a honeypot for ruby nostalgics who wouldn't stop complaining about Erlang anyway. It's likely much easier to sell to non-Erlang users than Erlang users in the first place. I'm also always split on the idea of macros easily available for all. is there a cool erlang project with good code and design that you could recommend reading through thank
|
# ? Mar 27, 2013 15:49 |
horse mans posted:is there a cool erlang project with good code and design that you could recommend reading through cowboy
|
|
# ? Mar 27, 2013 15:59 |
|
Jonny 290 posted:i back up my whole eclipse folder b/c it shits the bed regularly but there's no installer, you just unzip it and start mangling things, so i pick right back up where i left off p much This is why I was pissed yesterday at eclipse. Oh you don't want to download any plugins anymore? THANKS FOR making GBS threads UP .eclipse ECLIPSE. GOD. I didn't need all those custom settings anyways!
|
# ? Mar 27, 2013 16:36 |
|
horse mans posted:is there a cool erlang project with good code and design that you could recommend reading through i read riak source quite a bit
|
# ? Mar 27, 2013 16:38 |
|
prefect posted:http://www.csscript.net/ i also read this as "css script" and was p disappointed MononcQc posted:[ ] best type of inheritance (traits?) prototypal, hands down. maybe kind of hard to wrap yr head around at first but it's so much more flexible than classical inheritance Otto Skorzeny posted:does anybody really know what time it is? yes. it is currently 12:09 PM
|
# ? Mar 27, 2013 17:09 |
|
b0lt posted:void *foo vs. void* foo vs. void * foo void* foo only responding because there was so much heated real life debate over this that it broke friendships thus is the way of the sperg
|
# ? Mar 27, 2013 17:42 |
|
void *foo;, but void* bar();. that way everyone wins
|
# ? Mar 27, 2013 17:43 |
|
libcxx posted:You've only got one forum full of sycophants to indulge you, so try to avoid making fun of them so blatantly. and occasionally people like you who feel the need to tell me i'm wrong and bad if only to be different
|
# ? Mar 27, 2013 17:47 |
|
tef posted:and occasionally people like you who feel the need to tell me i'm wrong and bad if only to be different I only do it due to personal experience.
|
# ? Mar 27, 2013 17:50 |
|
You're like that to everyone
|
# ? Mar 27, 2013 17:57 |
|
|
# ? Jun 11, 2024 13:36 |
|
I have to have some reason to get out of bed in the morning.
|
# ? Mar 27, 2013 17:59 |