Blåhaj Lemmy - Choose Your Interface

imagine if the entire function is a single if-else statement which they kept adding onto, but could never refactor lest everything crashes down and burn.

You’re dredging up some bad memories 😅

Saw one once called something dangerously innocent like “run_validation” that turned out to be a 5K like hand built deserializer (no libraries used when then absolutely should have) with so many nested levels the editor put “expand this line?(2kb)” warnings at the end of most lines.

In the original author’s defence the garbage being deserialized was an Eldritch horror. We eventually moved to JSON.