• jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    19
    ·
    13 hours ago

    There’s a lot of fear at my job about changing code. I’ve been trying to tell them to start writing automated tests. Or at least a linter to check for syntax errors. They’re all like “ooh that sounds hard maybe next quarter”

    Meanwhile, a trivial change requires a whole day because the developer has to manually test everything.

    I just unilaterally added checks to code I have ownership over, but anything shared I’m getting “maybe in two quarters we can prioritize this” from management.

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      At my job:

      We do have a linter and tons of automatic tests. Changes are generally quite safe, not a lot of manual tests are necessary.

      Meanwhile, a trivial change requires a whole day because the developer has to adjust dozens of tests and get them through a pipeline that takes hours to run.

    • emergencybird@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      I haven’t been in the field for too long but my very first job had extensive ci/cd pipelines setup. At first I was kind of annoyed by having to write tests and having my code auto refused by lint checks. Now that I experienced a job that didn’t have any automated testing, I realized how much I love TDD. Nearly all my personal projects have ci with at the very least lint checks.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    21
    ·
    17 hours ago

    Reminds me of the time my whole website started spinning because I forgot to close a tag.

  • funkless_eck@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    15 hours ago

    I commented out a line in the game I’m building and the enemy could suddenly control my character. Cool cool cool cool cool

  • snek_boi@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    15 hours ago

    This totally happens in code where functions have plenty of side effects. And thats why functional programming can lead to fearless refactoring!