r/programming • • May 15 '15

A website coding itself live

http://strml.net
4.9k Upvotes

418 comments sorted by

View all comments

Show parent comments

2

u/AbstractLogic May 15 '15

I respect where the front end world is trying to go. But javascript just doesn't have enough forced structure or even more to the point it is virtually impossible to enforce structure unless you do a gazzillion code reviews. The thing I like about .net (or OO in general) is the "open for expansion closed for modification" principal. That is impossible to implement in javascript so its a wild west environment.

I appreciate and have aw for front end teams who know how to organize and strive for frontend code structured like its backend. But 98% of the frontend dev I have ever come across is not even a glimmer to the structure of the backends. I respect what the do... it's just not something I am aiming for.

2

u/[deleted] May 15 '15

Sorry, but you're wrong about JavaScript here. there are standards, read Douglas Crockford's JavaScript: The Good Parts.

Yeah, it's easy to write shit JS and it's easier to write shit JS than it is shit Java or C++. But bad code is bad code and blaming JavaScript for it is sort of like blaming the hammer when you're the one that hit your thumb with the hammer.

2

u/Astrognome May 15 '15

It's like blaming the hammer that has 100 different heads, and only one is correct.

2

u/[deleted] May 16 '15

the hammer doesn't have 100 different heads. I can hold the we upside down and still hit a nail on the head - it doesn't mean it's right. it's a misuse of the tool. you're still blaming the tool but should hold the actual developers accountable. they're the ones that don't bother to find the GOOD standard sources on JavaScript like (again) Douglas Crockford's JS the good parts, etc.

→ More replies (2)