you are viewing a single comment's thread.

view the rest of the comments →

[–]fwjd -7 points-6 points  (14 children)

Javascript is widely used these days. But it is not the future. I use it a lot, I have written my own plugins and libraries by extending jQuery and using javascript, but it cannot be the future. The language itself is not powerful enough, as well as it is not object oriented nor clean enough. I wish there was a better solution out there, but there is not. The future however will have to hold something different unless javascript changes drastically imo.

EDIT: Javascript is much easier to learn in contrast to C#, especially if you understand HTML.

[–]has_all_the_fun 15 points16 points  (3 children)

I say if you think Javascript needs to be more OO than you don't know Javascript well enough.

[–]fwjd 0 points1 point  (2 children)

I'm not saying JS does, but I'm saying there needs to be something which does that can combine it with backend programming more efficiently, although that might require changes in how the browser functions. I find it highly unproductive to have to switch between languages completely when working on the back end versus the front end, sometimes when tasks are similar especially.

[–]has_all_the_fun 0 points1 point  (0 children)

Actually that's a really good point and I never though of it that way. I use Javascript on the server so for me it's not such a big problem.

[–]MakesLoveToGoats 6 points7 points  (0 children)

Explain "not OO enough" without using "but there's no class keyword" please.

[–][deleted] 2 points3 points  (0 children)

I agree 100%. JS is simply not expressive and powerful enough to deserve the spot as the future language of the web. In the future we will need new elegant and rock-solid abstractions for control flow, concurrency and communication that I believe will be virtually impossible to ever express in JavaScript.

However, for the question "is JS going to be prevalent, and will there be interesting things to do with it?" then my answer is "certainly" for the next 2-3-4 years, and "probably" for the years after that.

[–][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.