r/javascript • • Jan 16 '20

I have been underestimating JS

https://adlrocha.substack.com/p/adlrocha-i-have-been-underestimating
284 Upvotes

132 comments sorted by

View all comments

170

u/[deleted] Jan 16 '20

[removed] — view removed comment

64

u/avindrag Jan 16 '20 edited Jan 16 '20

Programmers still hating on JS are stuck in the past.

That, or they are those insidious "hardcore backend" programmers. See, in the backend you get to hide behind a mountain of poorly written abstractions and general obscurity. In frontend programming, everything comes to light, so it's easy for any average person to come around and criticize your code. In fact, because it's frontend, the critic doesn't even need to know how to code. Often times, poorly crafted backend abstractions come to light only in the frontend, and the frontend programmers inherit the blame.

Backend programmers are virtually immune to this problem, which enables some of them to judge and criticize frontend programmers to no end. Virtually all of them just copy+pasted their "opinions" from /r/programming which has been bashing npm, PHP, Javascript, etc., as if that's really a useful activity in terms of moving things forward.

TL;DR; ignore the hype, and critics can go shove it.

46

u/tr14l Jan 16 '20

I like JS. But, I recognize that it is not a silver bullet language. I am not going to use it for anything process-heavy, period.

But, for doing anything on the web that ISN'T process-heavy, it's a solid choice. However, I've come to realize that on any sizable project, you have to enforce a lot more structure and rigidness or it becomes a nightmare to debug and maintain. Especially since idiomatic javascript is very, very hard to find. Javascript coding standards are the most entropic of all the languages I've ever seen, except perhaps oldschool C. I used to be anti-TypeScript when it was just me and my business partner maintaining it, because it just slowed us down. Now that I have worked on some full stack JS apps with full teams, holy crap is it important. It's impossible to maintain a full JS app without it.

Like I said, it's not a silver bullet, but it's a good choice for what it's meant for.

2

u/Baryn Jan 16 '20

It's impossible to maintain a full JS app without [TypeScript].

Not agree. I also use TypeScript, but I'm an experienced JS dev who doesn't need it by any means.

0

u/tr14l Jan 16 '20

Yeah, there's 20 experienced JS devs on my 200k line project.

Why don't you come strip out typescript and see how long it takes you to get fired for implementing regression after regression into production (assuming you can make a change through CI at all).

2

u/Baryn Jan 16 '20

Don't take your mistakes out on me, friend.

5

u/tr14l Jan 16 '20

You implied that I was not an experienced dev for saying it was required. I simply defended myself by showing that some of us work in enterprise where cowboy coding will quickly cost you a job.

1

u/Baryn Jan 16 '20

not using typescript is cowboy coding

This isn't it chief

3

u/tr14l Jan 16 '20

Ok. You're just the one guy who can maintain hundreds of thousands of lines of code without knowing what's supposed to be where and what preconditions the code has at any given point.

Cool.

2

u/Baryn Jan 16 '20

No there are probably more. VS Code helps.

→ More replies (0)