Comment Re:Readability (Score 1) 453
Object-oriented programming was retrofitted into Javascript, and it shows. Typical bad Javascript has global variables that should be local, shared data that should be in closures, no proper objects, and no comments.
Thank you. Every time a developer wants to turn a js project OO I want to gouge their eyes out. Once I created a cross-dependency map of all the different "classes" that were in a library I had to debug. There were a least half a dozen complex circular dependency chains. If people think JavaScript lends itself to ugly code, they haven't seen developers who try to turn it into Java.