Re:Show HN: The JavaScript Way, a new book for learning mode...
by nickthemagicman on Tuesday February 28, 2017 @05:32PM
(#13758846)
Lol, asynchronous is harder to reason about than synchronous. Plus just about anything goes in the browser. You can put anything anywhere and alot of things are global by default! And as a noob you have enough on your plate learning OOP and
REST. I'm glad I started with Ruby and Java and got really good at OOP and clean compartmentalized code before jumping into the madness that is browser land. Just my opinion.
Re:Show HN: The JavaScript Way, a new book for learning mode...
by ivraatiems on Tuesday February 28, 2017 @01:53PM
(#13756555)
I don't think "is this behavior synchronous or asynchronous" is where we should start when teaching new developers, period.
Re:Show HN: The JavaScript Way, a new book for learning mode...
by nickthemagicman on Tuesday February 28, 2017 @05:36PM
(#13758882)
Passing functions and lambdas and closures is not what newbies are learning...That's like saying: "building bridges isn't hard, you just have to learn kinematics and materials science...But you have to learn that anyway.."
With async functions, which I personally am not a huge fan of, you can get synchronous looking code if you believe that's more beginner friendly: