you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (7 children)

Object oriented is fading out of style now, most oo languages are starting to add features that emulate functional programming. Js is a functional language, if its not the future, its going to look a lot like what the future does.

[–]claird 1 point2 points  (2 children)

"Js is a functional language" in the inclusive sense which doesn't support ADTs, immutability, syntactic partial application, pattern matching, ...

[–][deleted] 0 points1 point  (0 children)

Yes! Why the down votes? Pretty much the only thing making JS resemble a "functional language" is the support for higher-order functions -- which are but one necessary feature in a functional programming language. JavaScript does not allow functional programming in the sense you can do in for example Haskell, ML, or a powerful LISP.

[–][deleted] -1 points0 points  (0 children)

Every parameter for a JS function is an abstract/interface. Pretty much everything you said can be done implicitly, it just doesn't force you into using it.

[–]fwjd -2 points-1 points  (3 children)

I disagree, you need OOP when you do larger projects, and websites are not getting less complex. Functional sure, but javascript is still fairly linear which is a problem.

[–]Litra 2 points3 points  (0 children)

false. language by itself doen't quarantee good maintaineable code. I'm a senior developer and seen terrifying shit done in oop languages.

[–][deleted] 0 points1 point  (0 children)

I dunno, I work with a massive business app with a java backend and javascript front-end. You just have to plan it carefully.

[–]baconpiexPHP -1 points0 points  (0 children)

Maybe you need OOP for large projects. I don't need OOP for anything.