r/programming • • Apr 23 '14

You Have Ruined JavaScript

http://codeofrob.com/entries/you-have-ruined-javascript.html
283 Upvotes

327 comments sorted by

View all comments

-2

u/[deleted] Apr 23 '14

It's almost like the library writers are purposely doing a parody. Poe's law and all that. I don't do JS or Java, but dear god, I can only imagine trying to deal with that.

1

u/Cuddlefluff_Grim Apr 24 '14

It's a design pattern.. The article argues from a standpoint of a single coder with probably very little experience in software architecture. Using frameworks like this addresses problems that probably has little effect for the lone coder writing a single page app, but it has far reaching positive influences for large code-bases with multiple developers. The article clearly argues from ignorance.

2

u/[deleted] Apr 24 '14

I guess the question at that point becomes a question of whether Javascript is really the appropriate language for software of that size? I know designers who worked for large corporations (working for Best Buy, for example) and it seems that they never had to use such a framework and got along fine without the need for a huge Enterprise system for JS.

That's only one example, of course, so I can't set a trend or statement on common useage, and assuredly, I have limited experience, so I won't say you're wrong, but my intuition is that in terms of language set, features and principle design concerns, JS isn't the right language to be hoisting multi-level factory patterns onto.

What it looks like, to me, is more that someone came from a Java background, and decided to shoehorn patterns that work for Java, being both Enterprise and very strongly class-based OO, into a language that's more script-based (I don't mean to denigrate JS here, just that in terms of purpose, it's more constrained), and prototype oriented.

I guess, in the long run, we'll see how it plays out. If this pattern really does answer a need for situations in the JS dev world, then it will be taken up and applied. If it isn't, and it truly is overkill, and the JS devs feel it is and have the freedom to choose their frameworks, then it won't be taken up.

My JS friend pointed out that it's not as though most developers using JS don't get to call their shots. There's a lot of freedom in the dev world right now, so the individual has a lot of leeway to push a different line if they don't like being forced into using this type of thing. If that's the case, then I can't worry too much, but if it's a case where some guy is stuck in an environment where they are forced to use a jackhammer where a chisel would do, I'd have a few empathetic nods in their direction, at the very least.

0

u/[deleted] Apr 23 '14

[deleted]

6

u/[deleted] Apr 23 '14

I know that.

I'm saying I code in neither JS (the main language of the topic of the post) nor Java (the Enterprise way of programming that the author is complaining is being "ported" into JS projects -- I suppose, technically, he's not talking about Java so much as general Enterprise programming, which can just as much be done in C# or some other higher level language, but I believe he's really talking more about the Java way of doing things).

I don't mean to say they are the same, merely that I code in neither of them.

1

u/[deleted] Apr 23 '14

Ah, right. I even read the article. My brain must be fried from all of the Java coding I've done today... :-)

1

u/[deleted] Apr 23 '14

Haha :) I'm sure you hear it a lot, though.

3

u/BonzaiThePenguin Apr 23 '14

JS !!!!= Java
JS not not not not = Java
JS not not not not = Java
JS = Java

Also if you read the article you'd realize it talks about JS and Java.

1

u/achegarv Apr 24 '14

try{ S !!!!= Java JS not not not not = Java JS not not not not = Java JS = Java} catch (Exception e){ e.printStackTrace() System.out.println("OH GOD NO!");}

Assignment of Java to JS Failed at BonzaiThePenguinComment:4 OH GOD NO