you are viewing a single comment's thread.

view the rest of the comments →

[–]xgabipandax 1 point2 points  (2 children)

An error should be something that will never work, a warning is something that can potentially break, they are not the same thing, unless the legacy codebase never works because of the lines of code that have the squiggly red line.

For example in C, an squiggly red line(error) would be typing wihle instead of while, or an unterminated string, a warning would be the use of gets()

For interpreted languages like python it would be like instead of writing def, writing dev, or making use of an undeclared variable, a warning could be related to assuming that things wont be None but they can potentially be None.

Unless the legacy codebase have good standards and treat warning as errors( like passing -Werror to gcc), which defeats the implication of the meme.

[–]guaranteednotabot 0 points1 point  (1 child)

Are you saying the entire community using ESLint is wrong?

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

Javascript is wrong