Skip to content

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

Comments

That looks nasty, but surprisingly hard to fix with loops because everything is of different types. If I were fixing it I'd look to some kind of code generation solution, even if just a hacky python script parsing a CSV.

(addShapedRecipe is just begging to have ASCII art as its canonical form)

Most of them are of the types button and item though.

AboutSource Built by g1lg1l

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