|
Shaggar posted:no one needs a lisp
|
# ? Mar 19, 2014 17:00 |
|
|
# ? Jun 11, 2024 10:53 |
|
Gazpacho posted:Every js function that has a fixed arity of 1 is compatible with JS's map, parseInt is not such a function and there is nothing inherently wrong about that The problem is that people reasonably expect map to pass only one argument because every non-js language in the world pretty much does it that way so that if you use a default argument, it won't get overwritten by garbage. parseInt is a function with two arguments, but that doesn't mean all other >1 argument functions do not use default arguments. If you're so disappointed with parseInt being used, use, say 'Array' as a constructor to turn a bunch of items into arrays: JavaScript code:
If it turns out Array has a signature that conflicts there (by default it accepts a length but it looks happy to use a string and wrap it), define your own function that may or may not use more than one arguments for options and get the mistake shown to you. Either be strict about the arities of stuff you expect, or make a map that is not confusing compared to every other language. MononcQc fucked around with this message at 17:23 on Mar 19, 2014 |
# ? Mar 19, 2014 17:16 |
|
MononcQc posted:
holy poo poo
|
# ? Mar 19, 2014 17:33 |
|
again the Array constructor is working as documented, which admittedly is problematic because the length constructor is poorly isolated from the varargs constructor, but RTFMDN and you won't have that problem
|
# ? Mar 19, 2014 17:40 |
|
advance cultural marxism throughout programming, overthrow the bourgeois assumptions of metropolitan academics, let type and arity confusion reign
|
# ? Mar 19, 2014 17:42 |
|
or you know, just write a map function that isn't retarded in the first place.
|
# ? Mar 19, 2014 17:44 |
|
"hm yes surely people who want to apply a function to every element of an array also need an index and the list of all elements passed in the array most of the time, despite what decades of prior art in functional programming proved." -- JS people who implemented maps. "Agreed, great choice!" - Gazpacho
|
# ? Mar 19, 2014 17:46 |
|
if you ever use or have to think about the map function in javascript you are doing things wrong
|
# ? Mar 19, 2014 17:46 |
|
MononcQc posted:"hm yes surely people who want to apply a function to every element of an array also need an index and the list of all elements passed in the array most of the time, despite what decades of prior art in functional programming proved." -- JS people who implemented maps.
|
# ? Mar 19, 2014 17:48 |
|
Will Go tell us what page of this thread python stopped being relevant?
|
# ? Mar 19, 2014 17:55 |
|
has python ever been relevant?
|
# ? Mar 19, 2014 17:56 |
|
no
|
# ? Mar 19, 2014 17:57 |
|
Shaggar posted:im still running tomcat 7 + java 6. probably never going to upgrade either since most of my stuff is moving to c# i think i'm going to be doing java for the rest of my life. oh well could always be worse
|
# ? Mar 19, 2014 18:57 |
|
yeah I like java and c# but vs has dark color theme and eclipse doesn't and that's like 99% of my decision to use c# over java right now.
|
# ? Mar 19, 2014 19:31 |
|
although intellisense is total loving garbage
|
# ? Mar 19, 2014 20:07 |
|
Shaggar posted:although intellisense is total loving garbage Jesus christ you inhuman loving piece of poo poo. gently caress you.
|
# ? Mar 19, 2014 20:22 |
|
e: not the games thread
|
# ? Mar 19, 2014 20:22 |
|
its seriously so bad. I refuse to buy resharper or codeassist or whatever to add basic functionality to vs.
|
# ? Mar 19, 2014 20:48 |
|
Shaggar posted:yeah I like java and c# but vs has dark color theme and eclipse doesn't and that's like 99% of my decision to use c# over java right now. recogneyes theme for eclipse theme plugin is the best my eye literally burn every time i go over to a coworkers machine and they have the default black on white color scheme. poo poo is completely loving illegible
|
# ? Mar 19, 2014 20:54 |
|
Gazpacho posted:again the Array constructor is working as documented, which admittedly is problematic because the length constructor is poorly isolated from the varargs constructor, but RTFMDN and you won't have that problem if your language differs from everything else on the planet without adding anything, nobody loving cares about your documentation whether or not your perverse fuckup snowflake is documented is not the core problem the problem is that it is badly designed. correctly documenting the bad design is just strapping a helmet to your special needs child
|
# ? Mar 19, 2014 20:57 |
|
i mean, it could be worse. php is badly designed AND the documentation is frequently misleading or wrong. i guess js is still beating somebody on the short bus
|
# ? Mar 19, 2014 20:59 |
|
Shaggar posted:yeah I like java and c# but vs has dark color theme and eclipse doesn't and that's like 99% of my decision to use c# over java right now. seriously, try intellij. it's good and has a dark theme it's called "darcula"
|
# ? Mar 19, 2014 21:01 |
|
HORATIO HORNBLOWER posted:recogneyes theme for eclipse theme plugin is the best theres a vs dark theme for eclipse that colors text like vs but the problem is it only themes text and then also only in some controls. so you end up with bright rear end window chrome and then bright rear end project explorer and dark code window or whatever. its awful so I just use the defaults. the ironing being that eclipse swt spent so much time binding all its themes to native controls that it looks like a native app, but that also means you cant customize it. whereas vs they just said gently caress it we're doing it in .net gently caress your ui guidelines. I seriously wish Microsoft had gone w/ the vs or zune styling for UI chrome in win8 but instead its like a weird inbetween the vs theme and class windows. ^if I were doing more java I might consider it. according to their webzone intellij doesn't do javaee in the free version so I'd have to convince the bossman to shell out some cash for it. eclipse works well enough aside from the theme stuff so its not really worth it.
|
# ? Mar 19, 2014 21:19 |
|
Shaggar posted:theres a vs dark theme for eclipse that colors text like vs but the problem is it only themes text and then also only in some controls. so you end up with bright rear end window chrome and then bright rear end project explorer and dark code window or whatever. its awful so I just use the defaults. the ironing being that eclipse swt spent so much time binding all its themes to native controls that it looks like a native app, but that also means you cant customize it. whereas vs they just said gently caress it we're doing it in .net gently caress your ui guidelines. lol if your boss aint droppin hundos on you because you bring in millions
|
# ? Mar 19, 2014 21:23 |
|
Shaggar posted:^if I were doing more java I might consider it. according to their webzone intellij doesn't do javaee in the free version so I'd have to convince the bossman to shell out some cash for it. eclipse works well enough aside from the theme stuff so its not really worth it. istr the free version will do a ton of stuff with java ee. it just won't help you with context-sensitive autocomplete in your spring xml etc but that was a long time ago it is worth trying anyway
|
# ? Mar 19, 2014 21:30 |
|
Shaggar posted:theres a vs dark theme for eclipse that colors text like vs but the problem is it only themes text and then also only in some controls. so you end up with bright rear end window chrome and then bright rear end project explorer and dark code window or whatever. its awful so I just use the defaults. the ironing being that eclipse swt spent so much time binding all its themes to native controls that it looks like a native app, but that also means you cant customize it. whereas vs they just said gently caress it we're doing it in .net gently caress your ui guidelines. https://marketplace.eclipse.org/content/eclipse-moonrise-ui-theme I use this when I'm using eclipse (for Ada)
|
# ? Mar 19, 2014 21:52 |
|
yeah ive tried that but I get the blue/white window chrome in spots like the file menu where the color is determined by the OS
|
# ? Mar 19, 2014 21:56 |
|
Oh right, Windows.
|
# ? Mar 19, 2014 21:56 |
|
i use solarized dark in intellij and it's nice
|
# ? Mar 19, 2014 21:59 |
|
also i should have listened to shaggar before, java is great
|
# ? Mar 19, 2014 22:00 |
|
uncurable mlady posted:also i should have listened to shaggar before, java is great ya it really is
|
# ? Mar 19, 2014 22:06 |
|
groovy is p. dubious though and he undermines his argument a bit by tossing that out the same breath. clojure really is a better way to go
|
# ? Mar 19, 2014 22:17 |
|
lisp is terrible. groovy is what normal people should be using because you can pretty much just write java in it.
|
# ? Mar 19, 2014 22:18 |
|
like if your need is a scripting language for java, using groovy is a no brainer. its exactly what 99.99999% of java developers will want. if your needs are special cause of autism then go ahead and use clojure.
|
# ? Mar 19, 2014 22:19 |
|
Shaggar posted:like if your need is a scripting language for java, using groovy is a no brainer. its exactly what 99.99999% of java developers will want. "I can honestly say if someone had shown me the Programming Scala book by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy."
|
# ? Mar 19, 2014 22:32 |
|
dark text + light background gives superior comprehension and less eye strain and poo poo, stop using 1337 h4x0r color schemes they are bad for you in every way
|
# ? Mar 19, 2014 22:38 |
|
Bloody posted:dark text + light background gives superior comprehension and less eye strain and poo poo, stop using 1337 h4x0r color schemes they are bad for you in every way are you sure you're not insane? big bright backgrounds make my eyes hurt
|
# ? Mar 19, 2014 23:13 |
|
Notorious b.s.d. posted:if your language differs from everything else on the planet without adding anything, nobody loving cares about your documentation mysql_real_escape_string is obviously how you should handle screwing up string escapes. Why would you ever think that you should use mysql_escape_string? Also database parametrization is hard, so screw that.
|
# ? Mar 19, 2014 23:26 |
|
Notorious b.s.d. posted:istr the free version will do a ton of stuff with java ee. it just won't help you with context-sensitive autocomplete in your spring xml etc free version doesn't support WARs. i just spent the money for intellij, its worth it and screw convincing every boss to buy me intellij
|
# ? Mar 19, 2014 23:34 |
|
|
# ? Jun 11, 2024 10:53 |
|
prefect posted:are you sure you're not insane? big bright backgrounds make my eyes hurt lower ur brightness
|
# ? Mar 19, 2014 23:37 |