• @RagingRobot
    link
    102 hours ago

    Tests are just booby traps for the other engineers so they don’t break your code by mistake.

    • DacoTaco
      link
      3
      edit-2
      2 hours ago

      Its funny cause its true. I often design tests to be “if a case/enum value is added this test will explode and tell them to add code here”

  • @[email protected]
    link
    fedilink
    63 hours ago

    I get a small amount of joy from clicking the “request changes” button and blocking some doofus from merging lazy untested code.

  • @whotookkarl
    link
    56 hours ago

    Weak code lacks tests

    Alt: if strength relies on unity I need to switch to game dev

  • JoshCodes
    link
    fedilink
    English
    3912 hours ago

    Run it in your head, find the edge cases yourself, fix the bug… weakling.

    Or do what I do in real life which is patch in new bugs and even a security flaw or two.

  • xep
    link
    fedilink
    2512 hours ago

    Real programmers test in production.

  • FuglyDuck
    link
    English
    3313 hours ago

    the energy of a chaotic neutral?
    “maybe it’ll work, maybe it won’t, but it’ll be FUN”

    or chaotic evil?
    "naw. fuck y’all’s weekend.

    • Psaldorn
      link
      2412 hours ago

      Merging failing tests so everybody else has failing tests and wastes time figuring out why.

      Nothing neutral here

      • @jaybone
        link
        711 hours ago

        I haven’t played DnD in like 20 years. Is “Chaotic Dickhead” an alignment now?

      • @[email protected]
        link
        fedilink
        112 hours ago

        That’s what the pipeline is for. It’s not that hard to pinpoint the commit that lead to the errors.

        • Psaldorn
          link
          612 hours ago

          If I rebase my branch with main I do not expect any failing tests. If you waste my time merging shit code, fuck you. Fix your shit.

          Unless prod is on fire and the CEO is prowling (even then, I’d argue standards should be maintained)

          • @[email protected]
            link
            fedilink
            312 hours ago

            I don’t say this is good practice, you shouldn’t even be able to merge to main with failing tests. I’ve implemented an emergency flag to do this, but I don’t want to use it in normal, daily business.

  • @[email protected]
    link
    fedilink
    1812 hours ago

    Oh I trust my code, but I don’t trust my coworkers not to break something on the very next commit.

  • @[email protected]
    link
    fedilink
    English
    512 hours ago

    You can’t trust others to not break your wonderful code. Write tests for the regression.