|
spongeh posted:javascript is flawed but still extremely popular and widespread, which makes it the perfect target for nerds who can't possibly fathom why their perfect and preferred replacement isn't as widespread "rich" javascript developer: can afford his own room w/out bunk beds
|
# ? Mar 18, 2014 22:36 |
|
|
# ? Jun 11, 2024 10:51 |
|
power botton posted:seriously just use d3 and underscore and call it a day js isnt bad its just idiots overcomplicating things d3 owns despite javascript, not because of it
|
# ? Mar 18, 2014 22:37 |
|
pray, mr. eich, if you type the wrong code, will the right program come out?
|
# ? Mar 18, 2014 22:49 |
|
qntm posted:especially since javascript arrays already have foreach the worst foreach in the history of ever
|
# ? Mar 18, 2014 22:52 |
|
Java 8 Released!
|
# ? Mar 19, 2014 00:11 |
|
qntm posted:especially since javascript arrays already have foreach not in IE8 they don't use underscore.js, target IE8, and use the absolute minimal amount of javascript to do what you need
|
# ? Mar 19, 2014 00:17 |
|
sweet. hopefully oracle will drop official support for java 7 asap so i can convince the luddites we have to upgrade
|
# ? Mar 19, 2014 00:19 |
|
nm
|
# ? Mar 19, 2014 00:20 |
|
HORATIO HORNBLOWER posted:sweet. hopefully oracle will drop official support for java 7 asap so i can convince the luddites we have to upgrade 5->6 and 6->7 uptake were both waaaaaay faster than 1.4->5, so i am hoping 7->8 will be like fuckin lightning
|
# ? Mar 19, 2014 00:21 |
|
Notorious b.s.d. posted:5->6 and 6->7 uptake were both waaaaaay faster than 1.4->5, so i am hoping 7->8 will be like fuckin lightning security updates until april 2015 http://www.oracle.com/technetwork/java/eol-135779.html
|
# ? Mar 19, 2014 00:24 |
|
HORATIO HORNBLOWER posted:security updates until april 2015 yeah, so like 90% of customers will be on java 8 a year from now sounds good to me
|
# ? Mar 19, 2014 00:26 |
|
Gazpacho posted:pray, mr. eich, if you type the wrong code, will the right program come out? pray, mr. eich, why is your knife only made out of multiple very dull blades and no proper handle?
|
# ? Mar 19, 2014 00:32 |
|
i can't blame eich personally he was hired to design js sometime in 1995. the first public release was that december. all of the worst poo poo was already etched in stone with that first release, but who coulda done better with <12 months of work and 1995-grade tech? instead i blame everyone who continued to use/extend/ship/clone javascript
|
# ? Mar 19, 2014 00:36 |
|
I can get on board with that program
|
# ? Mar 19, 2014 00:37 |
|
Notorious b.s.d. posted:i can't blame eich personally You would like to use Dart instead? How would we even start to kill something like Javascript?
|
# ? Mar 19, 2014 01:01 |
|
the best programming language just got better gently caress yeaaaaaahhhhhhhhhh
|
# ? Mar 19, 2014 01:29 |
|
MononcQc posted:pray, mr. eich, why is your knife only made out of multiple very dull blades and no proper handle? what kind of confusion of ideas can produce the belief that every built-in function should be designed around calling it via map, without any currying or other adaptation, and that this should always do what you need regardless of the particular scanario? is that possibly something that somebody has thought?
|
# ? Mar 19, 2014 01:51 |
|
|
# ? Mar 19, 2014 02:03 |
|
Gazpacho posted:i'm still trying to figure out which parts of your earlier posts about map and varargs are serious map should be designed around not being loving retarded and lovely. basically people are complaining that the JS implementation of map is a JS implementation
|
# ? Mar 19, 2014 02:04 |
|
Gazpacho posted:i'm still trying to figure out which parts of your earlier posts about map and varargs are serious i dont know, maybe it is just how every sane language from the last forty years has worked maybe that has created the expectation that consistency is good and inconsistency is bad, or that names for things should match what they do
|
# ? Mar 19, 2014 02:18 |
|
Maluco Marinero posted:You would like to use Dart instead? How would we even start to kill something like Javascript? it is a little late now. there were some opportunities in the past. microsoft tried to kill js back when they had 99% browser market share, but their replacement was vbscript, which was unambiguously worse. sun made hotjava, where applets were so lightweight you didn't really need anything else. but they didn't want to be in the browser business, and their deal with netscape created the nsapi jvm disaster
|
# ? Mar 19, 2014 02:19 |
|
and a good thing too, imagine if every browser today was required to be a jvm application Marty McFly in 2014-A: "what the gently caress is a smartphone??"
|
# ? Mar 19, 2014 02:27 |
|
Mr Dog posted:and a good thing too, imagine if every browser today was required to be a jvm application this is a joke post, right? there have been full-featured browsers implemented w/ java on blackberry. phones so limited they make your iphone look like a supercomputer, that could still browse the internet well not to mention the insane success of dalvik
|
# ? Mar 19, 2014 02:29 |
|
reminder: hotjava ran pretty well on a 110 MHz sparcstation 4 the internet is really really old guys
|
# ? Mar 19, 2014 02:31 |
|
is there type inference yet
|
# ? Mar 19, 2014 02:32 |
|
if only apple had pushed hypertalk into the browser, then you could all complain that it doesn't understand every english preposition
|
# ? Mar 19, 2014 02:36 |
|
Notorious b.s.d. posted:i dont know, maybe it is just how every sane language from the last forty years has worked
|
# ? Mar 19, 2014 02:38 |
|
oh wow modena looks really nice, i was about to ask if java 8 had fixed the "godawful looking gui" problem
|
# ? Mar 19, 2014 02:43 |
|
yes, the full-featured java browser on the blackberry 8300 i had in high school that took 30 seconds to start and ran out of memory and crashed regularly trying to render somethingawful
|
# ? Mar 19, 2014 02:45 |
|
http://cache.fxexperience.com/wp-content/uploads/2013/01/Modena-Windows.png idk if i'd call this "really nice" but its about a million times better than what was there before
|
# ? Mar 19, 2014 02:48 |
|
Luigi Thirty posted:yes, the full-featured java browser on the blackberry 8300 i had in high school that took 30 seconds to start and ran out of memory and crashed regularly trying to render somethingawful i was talking about opera. the native browser was poo poo on a shingle
|
# ? Mar 19, 2014 02:49 |
|
uncurable mlady posted:oh wow modena looks really nice, i was about to ask if java 8 had fixed the "godawful looking gui" problem modena is a javafx skin. nobody uses javafx it will not affect the broken dpi settings and ugly skins in your old awt/swing apps
|
# ? Mar 19, 2014 02:50 |
|
Gazpacho posted:i'm still trying to figure out which parts of your earlier posts about map and varargs are serious Basically JS has a non-obvious varargs implementation that is enabled for all functions and all calls no matter the arity, which is the same mechanism used to provide default values to arguments (via x == undefined comparisons in the implementation). This mix makes it that it is both impossible to provide a function that has a default value for a second argument and use it in a map, unless this second argument is expected to be an index in an array when being called by map. This means a function like ParseInt is bound to either: always be wrapped in an anonymous function, or have a MappableParseInt function that does it for you. Which frankly kind of sucks, because it's not obvious, and why not just offer ArrayToInt(array) then anyway? So pick your poison. Any of these would work:
In general, I'm just mad at JS' vararg design. I mean, many languages have varargs (from PHP to Scheme), and most of them make it obvious they're a language feature, and do it in nicer ways. PHP has func_num_args() and func_get_args(), Scheme has (define (f . varargs) ...) and will error out if you call a function that doesn't take varargs with more arguments than expected, Python has *args and **kwargs, and so on. Javascript has the feature more or less hidden, and introduces a variable called arguments that can be overwritten or declared over at any time and represents all arguments, even those already matched in the function head (except if one of them is called 'arguments', in which case it disappears as a feature). It's just bad.
|
# ? Mar 19, 2014 02:51 |
|
Notorious b.s.d. posted:modena is a javafx skin. nobody uses javafx there a reason why? i've honestly never really used java that much. the project i'm working on now involves a lot of java though so i've been getting more accustomed to it and it ain't as bad as i had thought
|
# ? Mar 19, 2014 03:15 |
|
uncurable mlady posted:
javafx was originally a sort of flash-replacement library for use in applets and installers and things. It didn't build on top of, and wasn't really compatible with, awt/swing. as a result, i have never even seen a javafx app in the wild something I did not notice until just now: java 8's javafx will let you embed (and interact with?) swing stuff in a javafx layout. maybe that will create an incentive for its use
|
# ? Mar 19, 2014 03:29 |
|
MononcQc posted:vararg sadness so, in terms of just wanting to not deal w/ the arguments array, es6 at least does this: code:
quote:Support a different mechanism for default function arguments and varargs to avoid having to conflate both uses in some cases, and also make it clear that you have to consider both in modern userland js, functions that need "default" arguments usually take a hash as a poor man's kwargs, i.e. parseInt('15', { radix: 10});. there are javascript wunderkinds who like to do "default" arguments like you mentioned, but it always leads to poor code - backbone's source is some of the worst code i've ever seen in a popular library, and part of the reason is functions that open like this i think the real problem w/ this example is, as you said, that map has an unexpected signature. that said, since javascript doesn't have any way of enforcing argument contracts, i do often end up wrapping map/reduce/forEach callbacks in an anonymous function, and if nothing else es6 will make that a bit more terse
|
# ? Mar 19, 2014 03:42 |
|
like the only languages that approach this crazy "map-readiness" standard are haskell and some of its lazy predecessors that even fewer people use, and even then if you don't happen to be binding the last argument you have to write syntax to fill out the other arguments, it's the most incoherent basis for bashing JS i can imagine
|
# ? Mar 19, 2014 04:10 |
|
Gazpacho posted:like the only languages that approach this crazy "map-readiness" standard are haskell and some of its lazy predecessors that even fewer people use, and even then if you don't happen to be binding the last argument you have to write syntax to fill out the other arguments, it's the most incoherent basis for bashing JS i can imagine ...or perl, or ruby, or python, or java, or C#, or, you know, pretty much any language in common use other than C.
|
# ? Mar 19, 2014 04:28 |
|
Luigi Thirty posted:yes, the full-featured java browser on the blackberry 8300 i had in high school that took 30 seconds to start and ran out of memory and crashed regularly trying to render somethingawful this differs from chrome in that
|
# ? Mar 19, 2014 05:09 |
|
|
# ? Jun 11, 2024 10:51 |
|
Bloody posted:this differs from chrome in that i don't know i use firefox
|
# ? Mar 19, 2014 05:14 |