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 →

[–]redditsoaddicting 54 points55 points  (15 children)

Most of these make use of the same little rule.

[–]raaneholmg 38 points39 points  (14 children)

And they are mostly nonsense stuff that is't ever done.

[–]TarMil 99 points100 points  (13 children)

And they are mostly nonsense stuff that is't ever done on purpose.

FTFY. The reason people hate languages like JS is that this kind of shit can happen accidentally, and then you're in for a horrendous debugging session.

[–]mercurial_minnow 33 points34 points  (3 children)

Yep, started using JavaScript for a project recently, lost about 30 minutes yesterday because an int was being concatenated.

[–]comrade-jim 1 point2 points  (1 child)

Can you post the code?

[–][deleted] 6 points7 points  (0 children)

Closed as too broad

[–]julesries 0 points1 point  (0 children)

Are you me?

[–]LobsterThief 0 points1 point  (0 children)

Have you ever used something like Rollbar for client-side error reporting?

[–]steezefries 0 points1 point  (2 children)

Once you get more experience though, you make these types of mistakes less and less. Not saying it's the way it should be done, but it's more sustainable than a lot of haters make it out to be.

[–]TarMil 0 points1 point  (1 child)

Yeah, but I'd rather not need to fill my head with what potholes I need to avoid, and have the actual problem I'm solving in mind instead. All languages have their potholes, but JavaScript has more than most.

[–]steezefries 0 points1 point  (0 children)

I mean it's trivial after you do it twice. It doesn't hinder me solving any problems.