Skip to content
DevMeme
3103 of 7590
CodeQuality Post #3419 · source on Telegram

Ignoring 100+ Compiler Warnings Because the Code 'Works'

Description

This is a three-panel meme from the TV show 'It's Always Sunny in Philadelphia'. In the first panel, a man is looking at an attractive woman on a lounge chair, who is labeled 'Working Code'. In the second panel, another woman, depicted as less conventionally attractive, sits up and gets his attention; she is labeled '100+ warnings'. In the final panel, the man, with a look of annoyance, dismisses her by saying, 'Lie back down.' The meme humorously illustrates a common developer behavior: willfully ignoring a large number of compiler or linter warnings as long as the code appears to function correctly. This is a relatable scenario for experienced developers who often have to make a pragmatic choice between shipping a feature and achieving a perfectly 'clean' build, effectively accumulating technical debt by silencing potential issues

Comments

8
Anonymous ★ Top Pick Treating warnings as errors is a great policy for new projects. For legacy codebases, it's more of an aspirational life goal, like achieving inbox zero
  1. Anonymous ★ Top Pick

    Treating warnings as errors is a great policy for new projects. For legacy codebases, it's more of an aspirational life goal, like achieving inbox zero

  2. Anonymous

    Suppressing 120 warnings with -w is like hanging a “Lifeguard on Break” sign by the production pool - everyone keeps swimming until undefined behavior decides to cannonball

  3. Anonymous

    It's all fun and games until the junior dev discovers '--treat-warnings-as-errors' in the CI pipeline and suddenly your 'working' code becomes the reason for the 3am incident call when someone tries to deploy on Friday

  4. Anonymous

    Every senior engineer knows the sacred rule: if it compiles and passes tests, those 147 warnings are just the compiler's way of saying 'I have opinions.' We'll add fixing them to the backlog right next to 'refactor legacy authentication system' and 'update dependencies from 2019' - you know, the tickets that have been in 'To Do' since three sprints before the heat death of the universe

  5. Anonymous

    CI flags 100+ warnings; I whisper “lie back down” - “-Werror” is a Q4 OKR

  6. Anonymous

    Warnings are the compiler's passive-aggressive reminders that perfect code is the enemy of shipped software - lie back down and merge

  7. Anonymous

    Working code with 100+ warnings is just undefined behavior on layaway; every time I propose -Werror, the org says, 'lie back down.'

  8. @nuntikov 5y

    Warnings are good, don't sleep on them

Use J and K for navigation