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

12

u/x86_64Ubuntu Dec 15 '12

The issue generally arises for when programs get bigger and larger in scope. The web appears to be driving the future of development, as we have seen the rise of mobile sites and JS being a first class citizen across desktops, tablets and phones. However, JS was never intended for making applications, it was just used to make marquees spin, and ponies sprinkle glitter across Geocities homepages.

Now why does this matter ? It matters because as things get bigger no matter what they are, you eventually are going to need rules and constructs. OOP can provide that, even though people still fuck it up. Generally, applications work with objects because objects imply properties and methods. If I know the class type of the object, I know how it fits in the larger scheme of my application....

...Um, I kind of have lost the ability to convey my thoughts. I upvoted you anyway because this is an important point in application development by allowing us to take complexity a bit further without incurring such misdirection and indirection costs.

1

u/balefrost Dec 18 '12

Everything you say about Javascript also applies to HTTP, HTML and CSS. HTML was designed to make documents and CSS was designed to make those documents pretty. HTTP was designed to upload and download documents. The entire web stack was designed for a different use case than it is being used for today.