Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Andromxda 🇺🇦🇵🇸🇹🇼 ( Andromxda@lemmy.dbzer0.com )  to Programmer Humor@programming.devEnglish · 2 years ago

fuck the tests

lemmy.dbzer0.com

message-square
20
link
fedilink
493

fuck the tests

lemmy.dbzer0.com

Andromxda 🇺🇦🇵🇸🇹🇼 ( Andromxda@lemmy.dbzer0.com )  to Programmer Humor@programming.devEnglish · 2 years ago
message-square
20
link
fedilink
alert-triangle
You must log in or register to comment.
  • JoshCodes ( joshcodes@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    39
    ·
    2 years 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 ( xep@fedia.io ) 
    link
    fedilink
    arrow-up
    27
    ·
    2 years ago

    Real programmers test in production.

    • Andromxda 🇺🇦🇵🇸🇹🇼 ( Andromxda@lemmy.dbzer0.com ) OP
      link
      fedilink
      English
      arrow-up
      49
      ·
      2 years ago

      You mean like this?

      • Boxscape ( Boxscape@lemmy.sdf.org ) 
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        You mean like this?

        Or like this?

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

        • Andromxda 🇺🇦🇵🇸🇹🇼 ( Andromxda@lemmy.dbzer0.com ) OP
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          Fuck yeah

          • onlinepersona ( onlinepersona@programming.dev ) 
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 years ago

            Fuck yeah

            Anti Commercial-AI license

            • Andromxda 🇺🇦🇵🇸🇹🇼 ( Andromxda@lemmy.dbzer0.com ) OP
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 years ago

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

  • schnurrito ( schnurrito@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

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

  • Phen ( Phen@lemmy.eco.br ) 
    link
    fedilink
    arrow-up
    15
    ·
    2 years ago

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

  • hollyberries ( hollyberries@programming.dev ) 
    link
    fedilink
    arrow-up
    10
    ·
    2 years ago

    Tests? Pfffft. I am the test.

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

    • Kissaki ( Kissaki@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years 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 ( morrowind@lemmy.ml ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

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

        • tiredofsametab ( tiredofsametab@fedia.io ) 
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          People can pull 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.<table></table>

          • kjaeselrek ( kjaeselrek@lemmy.ml ) 
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            deleted by creator

      • hollyberries ( hollyberries@programming.dev ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years 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 ( Kissaki@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

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

  • tiredofsametab ( tiredofsametab@fedia.io ) 
    link
    fedilink
    arrow-up
    9
    ·
    2 years 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 ( jjjalljs@ttrpg.network ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

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

    • shastaxc ( shasta@lemm.ee ) 
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

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

  • velvetThunder ( velvetThunder@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

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

  • off_brand_ ( off_brand_@beehaw.org ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Just wow bug free code y’all smh

  • PenisDuckCuck9001 ( PenisDuckCuck9001@lemmynsfw.com ) deleted by creator
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 years ago

    deleted by creator

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: !programmer_humor@programming.dev

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 482 users / day
  • 1.49K users / week
  • 5.08K users / month
  • 8.16K users / 6 months
  • 464 local subscribers
  • 34K subscribers
  • 1.63K Posts
  • 26.9K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code