|
|
|
|
|
by angryteabag
3627 days ago
|
|
As a novice developer, coming from Java, I was taken aback by how forceful and messy JS's async programming style is (I started with node.js then moved to the browser). Callbacks, promises, generators are all there to essentially make async code sync, which seems to make the code hard to follow, difficult to scale, modularise and debug. I think JS took this approach because of the limitation of older browsers, which were unable to use threading, so as to not block IO they forced concurrency using queues requiring async style code. We must have just stuck with it because it's just been around for long enough and it would be hard to get everyone to change. it's 2016 and I like being able to use the return values of my methods without sweating. PLEASE, for the love of god, replace JS with something with the same cushy syntax but makes sense. Then again, I could just be bad at programming and not know what I am talking about - I sincerely hope that is the case. |
|
</rant>