Hacker News new | ask | show | jobs
by croon 2105 days ago
Anyone can write a sequential .py file with redundant if/else statements. It takes more than 1 hour to learn how to refactor that into concice functions or objects. It takes more than 100 hours to learn how to golf that into 30 bytes.
1 comments

"Simple software" does not mean "golfed". Quite the opposite, actually.

What the grandparent is suggesting is using simpler architectures, not necessarily smaller (in the code-golf sense) code.

Fair point, but at least part of golfing is cutting out anything redundant (although much more than that, which can get into obfuscation territory). Code I'm impressed with is generally when it gets the job done in the most concise/simple (while readable) manner. That is by rule done by the most experienced programmers.

To paraphrase Pascal:

> I would have written a shorter letter, but I did not have the time.