Re:Why don't they implement Python and Ruby on the web brows...
by winteriscomming on Friday December 16, 2011 @06:10PM
(#3362746)
JS has lots and lots of fundametal issues. Weird OO implementation (argue all you want but prototype inheritance is not what the prevailing wisdom is on how to do OO), no type system (at least give the option!), no packages/modules, no generics.
Don't people want dev tools to better help them building and refactoring web code? Web dev is like 15 years behind server development.
Re:Why don't they implement Python and Ruby on the web brows...
by bzbarsky on Saturday December 17, 2011 @12:11AM
(#3363470)
Of course some of these things are being fixed (e.g. modules are being added; there has been talk of optional types). At least when Google or Microsoft aren't dragging their feet and sabotaging the process.
As for generics, I'm not sure what you're looking for there; it's pretty simple to write generic functions in JS, or indeed any language with duck typing, no?
Re:Why don't they implement Python and Ruby on the web brows...
by slurgfest on Saturday December 17, 2011 @03:43AM
(#3363835)
I really don't think it's fair to insist that if anyone doesn't think Javascript is the optimal solution to every client-side web programming problem, they are themselves 'the problem'.
"There are worse things than Javascript" is not a great argument for why nobody should ever try to improve the situation.
JavaScript is far from the best language ever created, but it's also far from the worst.
The biggest pain in the ass working with JavaScript on a day to day basis is not JavaScript itself -- most of its follies can be avoided by good programming practices -- it's the DOM.