Hacker News new | ask | show | jobs
by xiaoma 3682 days ago
Over 90% of the first 100k LOC I wrote was ES5 JavaScript or CoffeeScript. I don't actually recall even a single instance when I was bitten by a bug related to lexical scope on the job. Maybe the problem is people expecting JavaScript to work like Java or some other block scoped language.

Async bugs, on the other hand, were nightmarish at times.

1 comments

Did you write the same 100 klocs of code in a language with lexical scoping before coming to js?
Another 100 klocs of code before my first 100 klocs of code? That wouldn't have been possible...