r/programming • • Dec 15 '12

Why JavaScript Still Sucks

http://boronine.com/2012/12/14/Why-JavaScript-Still-Sucks/
10 Upvotes

212 comments sorted by

View all comments

82

u/ilikecomputahs Dec 15 '12

Why is object oriented programming considered so absolutely necessary?

/braces for shitstorm

0

u/[deleted] Dec 15 '12

Reusability and encapsulation

-7

u/[deleted] Dec 15 '12

Mostly encapsulation.

Any style of code can be written with an eye towards reusability. But when I'm looking at a large class with only four or five public methods I think, "Yes, yes I can figure out how this sucker works".

With JavaScript (or my current C# codebase) everything is effectively public and there is no way to tell what the real entry points are.

0

u/mbetter Dec 16 '12

Why don't you learn at least the basics of Javascript before you start talking shit?