Skip to content
DevMeme
766 of 7435
When Bad Code Passes the Build
CodeQuality Post #870, on Nov 28, 2019 in TG

When Bad Code Passes the Build

Description

A minimalist graphic representing a common developer experience. The image is vertically aligned on a white background. At the top is a grey, upward-pointing arrow (like an upvote button), followed by the number '-1' in grey text, and then a grey, downward-pointing arrow (a downvote button). At the very bottom, there is a prominent green checkmark. A faint watermark for 't.me/dev_meme' is visible at the bottom left. This visual metaphor, combined with the post's caption 'When you write a bad code but it works', captures a specific conflict. The '-1' score from the voting arrows symbolizes disapproval from peers during a code review for writing 'bad code'. However, the green checkmark represents the code passing all automated checks, such as unit tests or a CI/CD pipeline, because it is functionally correct. The humor lies in the validation of a successful build despite the poor quality of the underlying code, a situation that often leads to accumulating technical debt

Comments

7
Anonymous ★ Top Pick The CI pipeline is green, but my soul is red with the shame of the code I just merged. At least it's someone else's problem in three months
  1. Anonymous ★ Top Pick

    The CI pipeline is green, but my soul is red with the shame of the code I just merged. At least it's someone else's problem in three months

  2. Anonymous

    An accepted answer sitting at - 1 is the purest demo of eventual consistency: fixed the bug in O(time-to-prod), violated four SOLID principles, and my reputation still went ACID-compliant negative

  3. Anonymous

    After 15 years in the industry, I've learned that -1 is actually the most honest error code - at least it admits something went wrong, unlike those HTTP 200s with {"success": false, "error": "unknown"} in the body that your third-party vendor swears is 'working as designed'

  4. Anonymous

    Ah yes, the -1 index: where Python developers see 'last element' and C developers see segmentation fault. It's the Schrödinger's index - simultaneously a feature and a bug until you check which language you're actually writing in. Senior engineers know this checkmark represents the moment you realize your 'clever' negative indexing just passed code review because everyone assumed it was intentional Python idiom, not a ported Java loop gone rogue

  5. Anonymous

    Green check at -1 on Stack Overflow: it works if you disable TLS and run as root - accepted by the OP, vetoed by everyone’s threat model

  6. Anonymous

    An accepted −1 is Stack Overflow’s version of “business sign‑off”: it satisfies one stakeholder and violates everyone else’s SLOs

  7. Anonymous

    When a 'senior' suggests parsing HTML with regex: upvote? Nah, -1 ✓ - the only production-grade fix

Use J and K for navigation