4 ms·
Exactly. Python and JavaScript is a perfect demonstration of "worse is better". Python 2 is a vastly better language than JS, avoiding nearly all of its design
by orangecat 12y ago
Exactly. Python and JavaScript is a perfect demonstration of "worse is better". Python 2 is a vastly better language than JS, avoiding nearly all of its design misfeatures and having actually useful built-in types and standard libraries. Yet while Python spent a decade to go from 95 to 99 percent purity, JS took over the world through sheer ubiquity.
- mixmastamyk 12y agoJavascript won the "language lottery" when it was created for the web browser, how would another language capitalize on that?
- cookiecaper 12y agoExactly. JavaScript has attained ubiquity through convention only. It has nothing to do with its intrinsic qualities or deficiencies. A great many languages are preferable to JavaScript.
- goldfeld 12y agoGiven that the functional programming story in JavaScript is much more developed, "vastly better language" may be true as long as you only consider the object-oriented side of it.
- Derbasti 12y agoHow is it "much more developed", without providing generators, coroutines, or comprehensions? Just having to use functions to emulate all of these (and many more) is not what functional programming is all about.
- oleyb 12y agoECMAScript 6 has generators, and they are already available in Node.js.
- 1ris 12y agoJavascript seems to go the opposite way of python: instead of ironing the warts out, it adds them. The DOM-API is nonsensical and ugly? Why not add language features so we can implement it in pure JS? Sounds like a great idea.
- JeremyBanks 12y agoHow does that relate to ES6 generators?
- mikegirouard 12y agoWhile I agree mostly with your point, I think the DOM example isn't going to work. The DOM is a spec and doesn't really have anything to do with JavaScript.
- anton-107 12y agoThe DOM API has nothing to do with JS.
- alexchamberlain 12y agoSo we need to get Python embedded into a couple of major browsers? Edit: Asked on twitter for any work on this: https://twitter.com/alexchamberlain/status/471268158872252417 https://twitter.com/alexchamberlain/status/47126815887225241...
- ciupicri 12y agoThere used to be something for Internet Explorer 4 and above. All you had to do was to set the language attribute of the <script> tag to Python. See "Python Programming On Win32: Help for Windows Programmers", page 437 [1]. [1]: http://books.google.ro/books?id=fzUCGtyg0MMC&pg=PA437 http://books.google.ro/books?id=fzUCGtyg0MMC&pg=PA437