• TootSweet@lemmy.world
    link
    fedilink
    English
    arrow-up
    138
    arrow-down
    2
    ·
    edit-2
    3 months ago

    Back when I was the “new guy” code monkey at a fairly sizeable brick-and-mortor-and-e-retailer, I let the intrusive thoughts win and did some impromptu QA on the e-commerce site. (In the test environment. Don’t worry.)

    It handled things like trying to put “0” or “-1” or “9999999999999” or “argyle” quantity of an item in the cart just fine.

    But I know my 2’s-compliment signed integers. So I tried putting “0xFFFFFFFF” quantity of an item in my cart. Lo and behold, there was now -1 quantity of that item in my cart and my subtotal was also negative. I could also do things like put a $100.00 thing in the cart and then -1 quantity of something that cost $99.00 in the cart and have a $1.00 subtotal.

    (IIRC, there was some issue with McDonalds ordering kiosks at one time where you could compose an order with negative quantities of things to get an arbitrarily large unauthorized discount.)

    The rest of my team thought I was a fucking genius from that moment on. I highly recommend if you’re ever the “new guy” dev on a team and want to appear indispensible, find a bug that it would never occur to a QA engineer who doesn’t have a computer science degree to even test for.

    • The_v@lemmy.world
      link
      fedilink
      arrow-up
      47
      arrow-down
      1
      ·
      3 months ago

      A long time ago I was the guinea pig/first user for a company developed system.

      I often had my 1 year old at the time son with me when I worked on the weekend. He had a great time smashing buttons on the keyboard and randomly clicking the mouse on the test version. He found most of the bugs.

      • nilloc@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        26
        ·
        3 months ago

        You must have been lying close attention to see how they were triggered though.

        Bug reports can be tough if you can’t repeat them. I’m glad you got some bonding time with littlie though, especially if you were on the clock.

        • BatrickPateman@lemmy.world
          link
          fedilink
          arrow-up
          18
          ·
          3 months ago

          Screen recording rules.

          The amount of times colleagues would dismiss bug reports because “they couldn’t reproduce” my steps rapidly declined when they didn’t only get the steps based on the video, but also the video.

          Take that Daniel, you lazy <beeep>

          Taught our test infrastructure to record and attach those recordings to the reports, too, before the manufacture of the testing tool implemented that. Good times.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      18
      ·
      3 months ago

      Everyone has a test environment. If you’re lucky you have a production environment too.

    • redfellow@sopuli.xyz
      link
      fedilink
      arrow-up
      11
      ·
      3 months ago

      The McDonalds thing was simple. 90 cent burger, minus cheese, was -10 cents. Or something along that way. Basically the “hold the cheese” value was fixed but they forgot some items with cheese are piss cheap.

      • TootSweet@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        arrow-down
        1
        ·
        edit-2
        3 months ago

        To be fair, the team at the time was all business majors. (Is “Computer Information Systems” what they call that degree most places or just at my alma mater?) I think I was the only computer science major there.

        They’d done a surprisingly admirable job of cobbling together a working e-commerce, loss prevention, customer sercvice portal, orderfulfillment, and CMS suite. And their schooling was in, like, finance, MS Office, and maybe one semester on actual programming.

        None of them had ever learned how to count in binary. Let alone been exposed to 2’s compliment. And there were no QA engineers.

        Oh, there was the sysadmin. He had a temper and was a cowboy. If you asked him to do something, it’d be fuckin’ done, man. But you did not want to know how he made sausage. The boss asked him to set up a way for us to do code reviews and he installed Atlassian Fisheye/Crucible on a laptop under his desk. We used that for years. And a lot of the business logic of the customer-facing e-commerce site lived in the rewrite rules in the Apache config that only he had access to and no one else could decipher if they did have access.

        Those were good times. Good times.

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          3 months ago

          My school also had a major called “Computer Information Systems”. That was in the 90s. Do they still even offer that? Last I checked I didn’t see my school still offering that.

  • cheddar@programming.dev
    link
    fedilink
    arrow-up
    119
    arrow-down
    1
    ·
    edit-2
    3 months ago

    A QA engineer walks into a bar and asks where the bathroom is. The bar bursts into flames. The product owner says that the bar can be shipped anyway.

  • eestileib@sh.itjust.works
    link
    fedilink
    arrow-up
    81
    ·
    3 months ago

    I still fondly remember the QA guy on the first consumer electronics project I worked on. He didn’t do scripting or test harnesses or dependency injection, he used the product and filed good bugs telling us what would fuck up our customer’s expectations.

    A good QA person helps with product design too if you let them.

    Andy B, I’d work with you again in a second.

    • dactylotheca@suppo.fiOP
      link
      fedilink
      English
      arrow-up
      26
      ·
      edit-2
      3 months ago

      Some plans less so than others.

      Also, I like this framing of users as the enemy. Matches my experience, really.

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 months ago

    Ninety-nine billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand nine hundred ninety-nine bottles of beer on the wall,

    Ninety-nine billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand nine hundred ninety-nine bottles of beer,

    You take one down, pass it around,

    Ninety-nine billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand nine hundred ninety-eight bottles of beer on the wall.

    • TheOakTree@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      Unfortunately the bar was built on long int so it overflowed 23 times and landed on about 1.2 billion.

      One billion, two-hundred fifteen million, seven-hundred fifty-two thousand, two-hundred-something bottles of beer on the wall, one billion, two-hundred fifteen million, seven-hundred fifty-two thousand, two-hundred-something bottles of beer! Take one down, pass it around…

      One less bottle of beer on the wall :)

      • Captain Aggravated@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 months ago

        I wonder what would happen if it was a singed long, and it landed somewhere in the negatives after overflowing multiple times?

        Negative forty-eight thousand, six hundred thirty-three bottles of beer on the wall,

        Negative forty-eight thousand, six hundred thirty-three bottles of beer

        You take one down, pass it around,

        Negative forty-eight thousand, six hundred thirty-four bottles of beer on the wall

        • TheOakTree@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          3 months ago

          Well, silly me, I should have specified that I did my calculation with signed long, though it shouldn’t affect the outcome much given my rounding at the hundreds.

          I like the idea of beer debt to the wall, though!