5 ms·
Javascript, really? Why not Python?
by Grazester 9y ago
Javascript, really? Why not Python?
- edem 9y agoThat's a very good question.
- copx 9y agoJS is the new lingua franca, what C used to be. And unlike C it is easy to get started programming in it. Thus a good choice for an intro language if you ask me.
- copperx 9y agoLearning to program is hard enough without having to worry about hoisting, truthiness, function vs block scope, prototypes, the many rules of this, "classes" that don't behave like classes, and other quirks unique to JS. Do you need to know all of the corner cases in order to write a simple script? No. But good luck trying to get someone to debug a JS program without a solid foundation. JS is a pedagogical disaster.
- UncleMeat 9y agoA lot of these things don't matter to new people. Prototype based inheritance vs class based inheritance will confuse exactly zero new people, since they will have zero prior experience with class based inheritance. Heck, if the goal is to teach algorithmic thinking and imperative programming (Stanford classes are 10 weeks long) then different forms of OOP don't matter at all. Hoisting is weird, but is one of those things that can be worked around by teaching proper patterns and is no more mysterious to new people than whitespace errors in python or the magic word "static" in java or operator overloading in C++ or nightmarish type error messages in haskell.
- paulddraper 9y agoHow could you pass up an opportunity to use npm, browersify and webpack?
- droidist2 9y agoCompared to pip/pip3/conda/virtualenv, npm is very straightforward
- paulddraper 9y agoNever heard of conda, and Python has been stable enough that I haven't (yet) ever uses virtualenv.
- copperx 9y agoFinal exam: Create a working webpack config by hand, on paper.