• 1 Post
  • 105 Comments
Joined 2 years ago
cake
Cake day: August 6th, 2023

help-circle





  • Maalus@lemmy.worldtoProgrammer Humor@programming.devSenior Wisdom
    link
    fedilink
    arrow-up
    11
    arrow-down
    4
    ·
    2 months ago

    The only moment you write comments is when you are doing something extremely weird for a specific reason that will not be immediately obvious and you want to warn the person doing a refactor in the future. In any other case, writing self documenting code is the way. If you are unable to do that, then your code needs to be rewrtitten.









  • It doesn’t mean extravagant, it means “a lot of food to eat”. I know how to cook. The intuition of how much I need to cook comes with more experience, but it means I’d need to go through months of me cooking too much and either throwing it away, or eating the same thing for a long time. When you cook for two or more, the dishes just disappear. You can skip a day, your partner will eat it though. So then you do, and suddenly four days worth of meals are gone.


  • Yeah, for sure. The problem is cooking for one. If you are inexperienced, you tend to overcook and then you either waste that or eat the same thing for five days. Also picky eaters sometimes can’t eat the same thing two days in a row, let alone more. Buuut if you treat cooking as “a job” that pays more than ordering out (where you don’t pay with your time), then it is really worth it for sure.





  • Who tests the useless survey? Everyone with regression tests. Like dude, everything you talk about has been written “in blood” from years of hosting production systems. If the useless survey is needed, then write a test for it, or a testcase to manually try it. Don’t just upgrade, see that the app is up and push to prod, that’s not testing, that’s asking for trouble.


  • Okay, let’s be angry at the company and frown a lot at what happened. Gurr, bad company, evil.

    And now think of what you’d rather have - a working system, or a reason to be angry? If you have something that integrated with something else, lock it down at a specific version so you control the upgrade and know those versions work 100% of the time together. “Latest” is just asking for trouble - be it in a docker image, in dependencies or elsewhere. It’s absolutely not a “best practice” if it isn’t even a code smell or an outright bug. You could’ve had a slightly outdated version, which won’t be “exploitable” - you wouldn’t have enough time to exploit anything in that time, especially with smaller companies and obscure exploits.

    Instead of putting out the fire, you could’ve been now looking into the upgrade, seeing on UAT or Test or whatever that forms aren’t supported, chilling till they are supported or complaining that they aren’t.

    Upgrades breaking shit is like programming / devops 101, and a huge reason for technical debt in very old projects. Leaving all that to chance is just irressponsible.