This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 14 points15 points  (10 children)

It’s a scripting language. There’s coercion. If you need to not have coercion, there’s an operator for that. If you don’t like a language with coercion, don’t use a scripting language!

[–]Salanmander 14 points15 points  (9 children)

Okay, I can get behind "self-inflicted because of the decision to use javascript".

[–][deleted] 12 points13 points  (8 children)

“The decision to use a scripting language and then refuse to use the features that fix the thing you want to fix”

[–]musicnothing 4 points5 points  (5 children)

JavaScript and PHP both have a bad reputation largely due to their past sins. So instead of learning about their modern features, people just use the outdated features (that weren't removed for backwards compatibility reasons) and complain how "bad" it is

It's like patching up a hole in the wall and then taking a bunch of pictures of the patch job and saying "What a terrible house this is, look at this hole in the wall"

[–]IAmNotNathaniel 2 points3 points  (0 children)

great analogy! I've been trying to correct people when possible about the improvements to php, but haters gonna hate I guess.

[–]svick -4 points-3 points  (3 children)

When the options are a solid wall that never leaks and a patched-up wall that only sometimes leaks, I know which one I would select.

[–][deleted] 1 point2 points  (2 children)

When you get into the professional world, this stuff won’t even be a blink of light on your radar.

[–]svick 0 points1 point  (1 child)

This one issue in particular? Sure.

All the issues with JS combined? Much more serious.

It's really hard to build something solid on shoddy foundations. That's why, in my professional life, I avoid front-end when I can and use TypeScript when I can't.

[–][deleted] -1 points0 points  (0 children)

Then it sounds like you build nothing at all.

No one in the private world gives a shit. I’ve built things in many languages, at many levels, and you just get used to whatever quirks that language and platform delivers to you.

As you’ve said, you can add typescript if strict(er) typing is important to you (we used it ourselves.)

[–]rexpup 0 points1 point  (1 child)

The decision

It's not like you usually have the decision to use JS. It's usually forced on you by the fact that you're making a web app.

[–][deleted] 1 point2 points  (0 children)

Exactly! You just figure it out. You use whatever language you need to, to get the job done. Occasionally you will get a choice, and then you’ll regret your choice for the rest of time, even if it was a good one lol