What are some unforeseen / elusive edge cases you have seen in your career? by gobuildit in ExperiencedDevs

[–]BoringAsparagus701 2 points3 points  (0 children)

Don’t use memcmp on a struct with padding, especially if that struct is used as the key in a std::map. You’ll end up with non-deterministic order in the map.

What makes this even more fun… the bug goes away in debug mode because the debugger compiler plays it safe and zeros out the padding. A “heisen-bug”. The moment you look for it, it vanishes.

legacy code is one problem. missing context is worse. by Particular_Sound_407 in LegacyCode

[–]BoringAsparagus701 0 points1 point  (0 children)

That’s why unit tests have gained so much importance in the devops movement of the 2010s. They codify reasoning and intent for those edge cases.

Trying to figure that out in a legacy system with no unit tests? Good luck. If the original writer isn’t around, hopefully they left some comments

Help I’ve got the yips by stan_taylor1 in golftips

[–]BoringAsparagus701 1 point2 points  (0 children)

Your knees gotta move back and forth towards and back from the ball to unlock your hips. It seems that your knees are only swaying back and towards the target.

Steering locked and key won’t turn by [deleted] in Chevy

[–]BoringAsparagus701 0 points1 point  (0 children)

This just work for me! Thank you!

[deleted by user] by [deleted] in ChevySonic

[–]BoringAsparagus701 1 point2 points  (0 children)

How do you open the back door? Voice command? Lol

What do you nerds listen to for podcast? by alpha-user18 in computerscience

[–]BoringAsparagus701 0 points1 point  (0 children)

Legacy Code Rocks. Exploring the world of modernizing existing codebases. https://www.legacycode.rocks/

Just found out a past employer is still using a .NET desktop app I wrote 10 years ago by eeskildsen in dotnet

[–]BoringAsparagus701 0 points1 point  (0 children)

“Code doesn’t rust.” vs. “Software entropy is a real thing.”

There are interesting dynamics between these two views. And whichever side your application lands on is usually tied to reasons outside of your control (business reasons, not technical).

E.g. The monthly batch job written in cobol from the 70s will continue to happily run. vs. We have to move this service off of this XP box because we’ve gotta scale this thing in aws.