Skip to content

Comment on Ask HN: Examples of bad open-source code to learn what to avoid?parent

Comments

But: avoid premature optimisation, it could lead to overly complex abstractions.

Simple, clear structures with little repetition are ideal.

Copy pasted data is painful to work with but still relatively easy to maintain and fix.

Overly complex and unintuitive abstractions are the most difficult to maintain and improve.

But it's very repetitive code and uses identifiers like "var3" and "var4".

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.