Skip to content
DevMeme
4539 of 7435
The Developer's Dilemma: To Test, or Not To Test
Testing Post #4980, on Nov 1, 2022 in TG

The Developer's Dilemma: To Test, or Not To Test

Description

This meme uses the 'Daily Struggle' or 'Two Buttons' format, showing a character sweating nervously as they face a choice between two large red buttons. One button is labeled 'Write comprehensive unit and integration tests,' representing the responsible, correct path. The other button, glowing more enticingly, is labeled 'YOLO push to main and pray.' This meme perfectly captures the internal conflict developers face under tight deadlines. It highlights the constant battle between adhering to best practices and succumbing to the pressure to deliver code quickly, a choice that often leads to accumulating technical debt. The humor is in the relatability of this high-stakes, low-quality decision-making process

Comments

10
Anonymous ★ Top Pick My code has 100% test coverage. It's one test that asserts `true` is `true`, and it passes every time
  1. Anonymous ★ Top Pick

    My code has 100% test coverage. It's one test that asserts `true` is `true`, and it passes every time

  2. Anonymous

    Tarjan just returned one giant strongly-connected component named ‘entire-codebase’; pretty sure that’s compiler-speak for “call an exorcist, not a refactor.”

  3. Anonymous

    The only difference between a circular dependency graph and a summoning circle is that one accidentally invokes undefined behavior while the other intentionally invokes ancient demons - and honestly, after 15 years in this industry, I'd rather debug Abraxas than untangle another legacy module system where everything imports everything else 'just in case'

  4. Anonymous

    Every senior architect has stood in that pentagram at least once - usually around 2 AM during a production incident, desperately trying to understand why changing module A somehow broke module E through a chain of imports that would make Lovecraft proud. The real horror isn't the circular dependencies themselves; it's realizing your 'microservices' architecture has secretly evolved into a distributed monolith where every service imports every other service, and the only way to deploy is to sacrifice a junior developer to the CI/CD gods while chanting 'it works on my machine' three times

  5. Anonymous

    If your import graph draws a pentagram, you haven’t built modules - you’ve summoned a strongly connected component; toposort won’t run, and the only dependency injection that helps is holy water

  6. Anonymous

    Nothing says 'not a DAG' like needing a pentagram to compute build order - swap the Horn of Abraxas for Tarjan’s SCC and a little Dependency Inversion

  7. Anonymous

    Circular deps forming a pentagram? That's not modular design - it's your CI/CD pipeline's invocation of eternal build hell

  8. @RichStallman 3y

    It's possible. Better to be on the safe side.

    1. Deleted Account 3y

      lol

    2. @beton_kruglosu_totchno 3y

      I need explanatory squad for this.

Use J and K for navigation