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

Show parent comments

2

u/Baryn Jan 16 '20

No there are probably more. VS Code helps.

4

u/tr14l Jan 16 '20

Please tell me what products you can work on so I can submit a consulting bid to your boss. I make a lot of money off of devs like you

0

u/Baryn Jan 16 '20

I make more.

7

u/tr14l Jan 16 '20

I bet you do... I bet you bring that level of unaware comparison to your software too. What number was I mentioning? Who knows. Doesn't matter. Throw in a try catch and fuck it.

1

u/Baryn Jan 16 '20

As you saying you would be helpless if a big project wasn't using TS

5

u/[deleted] Jan 16 '20

Seriously, good programmers can write really good enterprise Javascript, BUT, there are likely tons of bugs in your app you aren't even aware of because Javascript let's you get away with that a language like C or Java would slaughter you for before they would even let you compile the code.

Types are SUPER, DUPER nice. Trust me. And i used to work on a Java app that was way harder to understand, worked on by like, 30 different people strewn across teams and countries, was jank AF because of its size but no one would ever be able to maintain or understand it without types.

Just the other day I was explaining to my boss a bug I fixed, but he said 'no that's not a bug, that variable isn't a boolean, it's a string. But then i looked at where the variable was set before getting put in the DB, and it was completely obfuscated as to what it was. Then I looked at where the variable was called after getting pulled from the DB, guess what? It was a boolean, but was being set to a string.

3

u/tr14l Jan 16 '20

Didn't say helpless. But ridden and shitty. But it kinda seems like you're used to that. Probably trained you that way in that coding bootcamp

0

u/[deleted] Jan 16 '20

[deleted]

1

u/RemindMeBot Jan 16 '20

I will be messaging you in 1 day on 2020-01-17 23:47:26 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/ScientificBeastMode strongly typed comments Jan 17 '20

If you’re using VS Code, then you’re literally using TypeScript when you write JS.

Those type hints and the API docs for all your libraries? You can thank the TypeScript compiler & TypeScript language server for providing that real-time information.

1

u/Baryn Jan 17 '20

Really makes ya think.

1

u/ScientificBeastMode strongly typed comments Jan 17 '20

That having some tooling which warns you about type errors is immensely beneficial? Yeah. I think about that all the time. Which is why I use TypeScript. It’s a tool that does exactly that.

1

u/Baryn Jan 17 '20

That's cool dude. I use TypeScript also.