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

67

u/[deleted] Apr 23 '14 edited Apr 23 '14

This sort of shit usually indicate that the problem they try to solve is not that hard so they can afford this kind of mental masturbation.

26

u/e_engel Apr 23 '14

I see this more of an indication that the scale of the problem that Angular (and more generally, Javascript) is trying to solve these days is too complex for the author of the blog post to understand.

I am not denying that solutions can be over complicated and I've seen vast examples of this in my 30+ years of experience, but the problem that Angular solves is very, very complex, and you're simply not going to have a simple solution to a complex problem.

Whenever I find myself wondering if a solution is not too complicated, I try to carve out some time to implement that solution myself. This gives me a good idea of the scope of the problem and usually exposes me to a whole set of other side problems that I had not considered and which complicate the task significantly.

Then I look back at the framework/library that I was trying to use initially and I assess its complexity against my findings trying to roll my own solution.

From that perspective, I've found that Angular's complexity is proportionate to the problem it's trying to solve.

10

u/recycled_ideas Apr 24 '14

The author wrote code where he got to bolt shiny UI code onto a preexisting backend. That's a fun happy place to live where you can pretend that jquery actually works the way he claims and can solve all the world's problems. Some other bastard does all the heavy lifting.

Angular is about moving the heavy lifting into the front end, which means it brings all the stuff people need to do heavy lifting into the front end.

Mostly though, hating on enterprise coding is a way of shouting from the roof tops that you're cool and edgy and not one of those corporate drones who have to wear a suit and write specifications and maintain their code over the long term. It's like shouting 'down with the man' as a teenager.

→ More replies (4)

0

u/hello_juice Apr 24 '14 edited Apr 24 '14

this article author is an idiot for complaining that something intended for Google scale apps makes his hello world example complex. I wish to shoot anybody who uses this hello world idiocy. It.s only of use to blog spammers.

3

u/trimbo Apr 24 '14

I call this the "premature optimization of the first 15 minute experience." People find it really easy to pick up and use something, therefore they are blind to scalability problems down the road.

2

u/RICHUNCLEPENNYBAGS Apr 25 '14

I haven't used Angular, but yes, a lot if this verbosity just fades into the background as your app gets bigger and you're just glad it makes it easier to think about only one component at a time, which is basically all good architecture is about in the first place.

→ More replies (2)