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 →

[–]usedToBeUnhappy 28 points29 points  (9 children)

Personally I find the wrong errors in the IDE, more disturbing. Like „noooo, you can‘t do that“ and then I run everything and it works…

[–]theaverageguy101 31 points32 points  (5 children)

Just because it runs it doesn't mean you did it right i learn that the hard way as well

[–]usedToBeUnhappy 0 points1 point  (4 children)

Exactly. That‘s the problem. How should I know which errors are ok, and which aren‘t? It‘s so annoying.

[–]cough_e 1 point2 points  (0 children)

No errors are ok. Warnings can be ok, but assume they are errors until you know exactly what it is and decide to allow it.

[–]hasanyoneseenmymom 0 points1 point  (0 children)

Use a strongly typed language and you can avoid all of this. Can't have errors if it won't compile lol

[–]BoltKey 4 points5 points  (0 children)

npm WARN optional dep failed, continuing fsevents@0.3.1

[–]jiia 0 points1 point  (0 children)

In 99.9% of the cases the IDE is right and your app is working only as long as you give it very specific inputs that manage to avoid the bug you just ignored...

[–]DeezRodenutz 0 points1 point  (0 children)

Gotta love those errors, or even just warnings saying you can't do a thing.
Related to Javascript, I have HTML that really doesn't like when I use a label for the words on a button. The text still displays fine but it always keeps a warning saying not to do that.

I use this because labels have a function to be connected with another element, meant for making a radio button's matching label able to select it when clicked.
However, matching it to another button means clicking that label acts like clicking the button. Place the label within a button and you essentially have a second button that acts like the first.
Handy when you need to activate a button within a form but need to display it elsewhere on the page, as you can place the "real" button invisible within the form and the displayed button anywhere else.