Skip to content
DevMeme
3757 of 7590
Testing Post #4097 · source on Telegram

Flex level: writing code that passes every unit test on the first run

Description

Three - panel meme screenshot of a bedroom scene; the faces are pixel-blurred for anonymity. Panel 1 shows a woman in bed saying, “I have slept with two former presidents,” in white subtitle text. Panel 2 continues her boast: “I speak four languages, and I own two Monets.” Panel 3 cuts to the man in the bed responding with yellow, bold subtitle text: “My code passed all the test in the first go.” The joke contrasts extravagant real-world bragging with the almost mythical developer achievement of code compiling and passing all unit tests on the first attempt, poking fun at testing, quality assurance, and developer ego

Comments

18
Anonymous ★ Top Pick Yeah, my feature also went green on the first push - then the overnight integration job woke up, discovered time zones, and reminded me humility is a non-deterministic test case
  1. Anonymous ★ Top Pick

    Yeah, my feature also went green on the first push - then the overnight integration job woke up, discovered time zones, and reminded me humility is a non-deterministic test case

  2. Anonymous

    The real flex isn't having two Monets or presidential connections - it's claiming your integration tests passed without a single flaky failure after merging that 'minor' refactor of the authentication service on a Friday afternoon

  3. Anonymous

    Code passing all tests on the first run isn't a flex, it's a warning - either the tests assert nothing or you forgot to run them against your branch

  4. Anonymous

    Claiming your code passed all tests on the first try is the software engineering equivalent of saying you've achieved cold fusion - technically possible according to the laws of physics, but so statistically improbable that it demands peer review, independent verification, and a healthy dose of skepticism about whether you actually ran the tests

  5. Anonymous

    Whenever someone boasts ‘it passed all tests first try,’ every staff engineer hears ‘pytest collected 0 items’ and starts auditing the glob

  6. Anonymous

    "My code passed all the tests on the first go" - ah, Impressionism: perfect from afar, but up close it's just mocks and skipped integrations

  7. Anonymous

    Monets depreciate; a first-try test pass prevents outages that bankrupt startups

  8. Deleted Account 4y

    Movie name?

    1. Deleted Account 4y

      don't look up

      1. @feskow 4y

        r/theyknew

  9. @kimbasan 4y

    don't lookup this movie

  10. @mpolovnev 4y

    Pro's test always fail on the first run! Cause a pro writes tests first 😛

    1. @denis_klyuev 4y

      no war, dude. it's holy truth

    2. @sylfn 4y

      zeroth run not 1st

  11. @mpolovnev 4y

    (let the holywar begin!)

  12. @MMageGangsta 4y

    Assert.IsTrue(true);

  13. @ZgGPuo8dZef58K6hxxGVj3Z2 4y

    Thats me when I write hello world like this: int main(){ printf("%s", "Hello World!"); return 0; }

    1. @izhilin 4y

      You didn't even check printf() return code.

Use J and K for navigation