r/ProgrammerHumor • • 3d ago

Meme checkBuildSettings

Post image
3.8k Upvotes

89 comments sorted by

View all comments

Show parent comment

4

u/raunchyfartbomb 3d ago

Oh, you used a ternary instead of an if? That’s warning because for some reason the new visual studio doesn’t like it.

Your using “new X()” instead of “new()”? Gtfo

Your extension methods for IServiceProvider don’t exist within a project named “System”? (IDE0130)

Some warnings are noise.

9

u/Prawn1908 3d ago edited 3d ago

Nothing pisses me off more than those stylistic warnings. I have my own style that makes sense to me and my coworkers and we follow strictly, and we're not going to go refactor our whole codebase every time Micro$lop adds new syntactic sugar to C#. I hate languages that try to impose their own style on me, and integrating that into the compiler at the same level as real warnings about potential dangers is offensive.

However, those warnings get suppressed, not ignored.

5

u/generally_unsuitable 2d ago

Exactly. You turn them off explicitly because 278 stylistic warnings will hide one real warning that causes issues.