Follow

"I want to make sure this value is at maximum 16384. So I have to do min(value, 16384)"

I ALWAYS get this wrong. I absolutely always write max instead of min, and fuck up. Just like I just did.

Hello I'm a professional programmer and I've been programming for >20 years. Please kill me

@jon_valdes Dates are even worse for me. "I want the newest 30 but no earlier than T" 🤯

Which is #1 case for me to write unit tests.

"it_is_at_most_16384" is a perfect unit-test. Then just write the implementation and trial-and-error the right setup.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!