Hacker News new | ask | show | jobs
by t-writescode 1899 days ago
A lot of the code you're going to have to be dealing with in the wild is going to look fine, until it breaks at 2am on a Saturday and you're 3 drinks in and production is down.

You're going to hate your former cleverness then.

2 comments

There should be a rule that forbids applying this reasoning to code that isn't triple-nested template SFINAE mess, or a code-generating-code-generating-code-generating-code Lisp macro.

This pattern isn't "cleverness", it's just a readability-improving trick that's cheap to figure out. The hundred seconds you spend on it seeing it for the first time is a one-time cost.

That's why I abstain when I'm oncall (or backup).

That's what the oncall bonus pay is for.

Replace alcohol with 2 hours of sleep, then :)