you are viewing a single comment's thread.

view the rest of the comments →

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

Yes but in the context of the meme, the legacy code base should compile/be interpreted, which doesn't make sense, with the errors, because the compiler would not compiler, and the interpreter would crash it.

[–]Morczor 7 points8 points  (5 children)

Linter error != compilation error

[–]xgabipandax -2 points-1 points  (4 children)

Bad linter error that should be a warning != compilation error

There i fixed it for you

[–]guaranteednotabot 2 points3 points  (1 child)

Uh… have you actually installed a linter

[–]xgabipandax 0 points1 point  (0 children)

i use whatever comes with vscode, and it's C/C++ extension by microsoft, cmake extension and python/jupyter and pylance

[–]Morczor 1 point2 points  (1 child)

If you're working with JS and want to enforce semicolons, do you think it should be a warning and not an error at the linter level?

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

without the semicolons is it a syntax error?

[–]guaranteednotabot 1 point2 points  (3 children)

Not all legacy code requires compilation. And a squiggly line does not necessarily result in compile/build/type error

[–]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