6
jhems
2y

So, I encountered a classic case of the infamous "it works on my machine" excuse today. 🤦‍♂️ Seriously, folks, can we please put an end to this lazy and unprofessional behavior?

Picture this: I had just completed a feature in my code and passed it on to the QA team for testing. Confident that everything was running smoothly on my local environment, I expected a smooth sailing experience. But boy, was I wrong!

The QA team began testing the feature on different environments, and that's when the chaos ensued. What worked seamlessly on my machine seemed to transform into a monstrous bug fest on theirs. Panic set in, and I couldn't help but feel a mix of embarrassment and frustration.

Lesson learned: testing code thoroughly across various environments is crucial. No, seriously, it's an absolute must! That "it works on my machine" excuse is just a ticking time bomb waiting to explode in your face.

From now on, I pledge to dedicate more time to thorough testing and consider the diverse environments our code will encounter. Let's save ourselves and our colleagues the headache and embarrassment caused by such oversights. Together, we can put an end to the reign of the "it works on my machine" excuse once and for all!

Comments
  • 2
    I agree that you should test your code across many environments.

    But what do you do when a tech illiterate grandpa visits your website which runs Windows CE that he purchased in 1973?
  • 2
    So from now on you will test your code before you send it for testing?
  • 2
    If it's backend code, Docker to the rescue!
  • 0
    @duckWit Docker isn't a one fix suits all kinda tech u know. You could use it all you want and still end up with crap/buggy code.
  • 1
    @Sid2006 yep. Didn't say it was. But it does make one single environment for all by running the same image in each container. That's how it addresses the "it works on my machine" really well.
  • 0
    Same shit here. Deployed the binaries and all the necessary configs for the security system to grant binaries correct permissions. Works in Qemu. I send the same exact configs and exact manual where to put everything and... It does not work.
  • 0
Add Comment