Lemmy - RazBot
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 8 months ago

fuck the tests

lemmy.dbzer0.com

message-square
45
fedilink
845

fuck the tests

lemmy.dbzer0.com

Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 8 months ago
message-square
45
fedilink
alert-triangle
You must log in or register to comment.
  • JoshCodes@programming.dev
    link
    fedilink
    English
    arrow-up
    57
    ·
    8 months 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.

  • FuglyDuck@lemmy.world
    link
    fedilink
    English
    arrow-up
    42
    ·
    8 months 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@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      8 months ago

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

      Nothing neutral here

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        8 months ago

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

        • RisingSwell@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          6
          ·
          8 months ago

          That’s basically just chaotic neutral

      • RamblingPanda@lemmynsfw.com
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

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

        • Psaldorn@lemmy.world
          link
          fedilink
          arrow-up
          8
          ·
          8 months 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)

          • RamblingPanda@lemmynsfw.com
            link
            fedilink
            arrow-up
            5
            ·
            8 months 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.

    • Boxscape@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 months ago

      “maybe it’ll work, maybe it won’t, but it’ll be FUN”

      Flashback to that Tom Cruise Scientology interview 🤣:

      It really is … Fun.

      • FuglyDuck@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        8 months ago

        On a scale of one to translunar orbit, how freaking high was he?

        • xmunk@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          8 months ago

          Colombia.

  • RagingRobot@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    8 months ago

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

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      8 months 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”

      • silasmariner@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        8 months ago

        This is why I like strong type systems with exhaustivity checks

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          8 months ago

          Saaaaame. But sometimes even strongly typed stuff wont break on compilation time

          • silasmariner@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            8 months ago

            'spose that’s true enough

  • xep@fedia.io
    link
    fedilink
    arrow-up
    33
    ·
    8 months ago

    Real programmers test in production.

    • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      65
      ·
      8 months ago

      You mean like this?

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        39
        ·
        8 months ago

        They were under a lot of pressure.

        • Boxscape@lemmy.sdf.org
          link
          fedilink
          arrow-up
          11
          ·
          8 months ago

          They were under a lot of pressure.

          It was sink or swim.

          • Honytawk@lemmy.zip
            link
            fedilink
            arrow-up
            8
            ·
            8 months ago

            No time to cave in

      • Boxscape@lemmy.sdf.org
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        8 months ago

        You mean like this?

        Or like this?

        What does that mean, 'To play us out'?

        • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          4
          ·
          8 months ago

          Fuck yeah

          • onlinepersona@programming.dev
            link
            fedilink
            English
            arrow-up
            3
            ·
            8 months ago

            Fuck yeah

            Anti Commercial-AI license

            • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.comOP
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              8 months ago

              AMERICA 🇺🇲🇺🇲🇺🇲🇺🇲🦅🦅🦅🦅❗❕❕🗣️🗣️🗣️🗣️🗣️🔊🔊🔊🔊🇺🇲🦅🦅🇺🇲🦅🇺🇲🦅🍔🍔🍔🍔🍔🍔 FREEDOM 🗣️🗣️🗣️🗣️🔊🔊🔊🔊🔥🔥🔥🔥🥶🥶🥶🥶🥵🥵🥵🥵🦅🦅🦅🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🇺🇲🦅🦅🇺🇲❗🇺🇲🇺🇲❗🦅❗🦅❗❕❗❕❕❗❕❕❗🇺🇲🇺🇲🇺🇲🇺🇲🗣️🗣️🗣️🔊🔊🔊🔥🔥🔥🔥 DELIVERING DEMOCRACY TO THE DESERT 🦅🦅🦅🦅❗🔊❗❗❗🔥🇺🇲🇺🇲🔥❗❕🔊✈️✈️✈️✈️✈️💣💣💣💣💣💣💣💣💣☢️☢️☢️☢️☢️💥💥💥💥💥🦅🇺🇲🦅🇺🇲🔥🔥🔥🥶🥶🥶🥵🥵🥵🦅🦅🦅🇺🇲🇺🇲

    • cheddar@programming.dev
      link
      fedilink
      arrow-up
      16
      ·
      8 months ago

      Users will test, don’t waste your energy.

  • MisterFrog@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    8 months ago

    While I know that these days, bugs in code can cause real-world harm (personal info leaks, superannuation records lost, lol google), I find it humorous to think of the equivalent, even worse outcomes in my discipline (chemical/process engineering).

    “Didn’t do any checks, fuck it, I know this calculation is fire 🔥”

    Later: 🔥🔥💥

    • mitchty@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      8 months ago

      It’s more: I have routed a few pipes in our test system and it’s now spitting out water known to be contaminated but now should have some extra sprinkles in so it’s fine.

      What I’m saying is it’s even worse than didn’t do any checks. It’s willfully ignoring existing checks intentionally.

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    21
    ·
    8 months ago

    tests are for confirming your code STILL works if someone ever changes something

  • Phen@lemmy.eco.br
    link
    fedilink
    arrow-up
    20
    ·
    8 months ago

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

  • tiredofsametab@fedia.io
    link
    fedilink
    arrow-up
    13
    ·
    8 months ago

    I physically reacted to this post with a combination of disgust, anger, and fear. Do tests. All of the tests. Randomize the order in which your tests run. Cover all branches.

  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    13
    ·
    8 months ago

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

    • shastaxc@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      I love going into a PR with 3 approvals already and shitting all over it

  • hollyberries@programming.dev
    link
    fedilink
    arrow-up
    11
    ·
    8 months ago

    Tests? Pfffft. I am the test.

    And while I’m here: https://blog.jim-nielsen.com/2024/sanding-ui/

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      8 months ago

      Users are the acceptance testers.

    • Kissaki@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      8 months ago

      It baffles me when people use flex layout when it’s clearly visually a grid layout. Nothing here is flexing with varying element sizes and auto-fill-wrap-break of items.

      A colleague of mine prefers flex too. But to me, grid is so much more intuitive and simple.

      https://css-tricks.com/quick-whats-the-difference-between-flexbox-and-grid/

      • morrowind@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Why do you need either? Just throw the both in the html

        • tiredofsametab@fedia.io
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

          People can pull <table> from my cold, dead hands.

          (though I’m usually only using it to display some status just for me and not for external consumption; the UI side can have a JSON if it ever comes to that).

          I used to be a full-stack dev, but I’ve been pure backend for so long now, everything I knew is outdated or deprecated.

          • kjaeselrek@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            8 months ago

            deleted by creator

      • hollyberries@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Tbh I’m not a web person (more of a backend person) and don’t know the recommended practices. display: grid; is a good friend of mine xD

        • Kissaki@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 months ago

          I think using display: grid; as your default is the better default, so you’re all set. :)

  • whotookkarl@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    8 months ago

    Weak code lacks tests

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

  • fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    “Tester, c’est douter”

  • velvetThunder@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

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

  • off_brand_@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    Just wow bug free code y’all smh

  • PenisDuckCuck9001@lemmynsfw.com
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    The best way is to try it over and over until it works and then assume it works but then go insane wondering where all the edge case bugs are coming from.

    I wrote a test one time.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 784 users / day
  • 4.76K users / week
  • 8.95K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 1.37K Posts
  • 47K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org