Hacker News new | ask | show | jobs
by kamaal 1328 days ago
Less complex in lots of situations means being explicit, not being too template'y, not being too generic, abstract and writing code that is supposed to be a kind of meta that takes in a config and does several things for several inputs.

Writing less complex code in lots of situations just means writing lots of code. Which is diametrically opposite to the original statement of less code being better.

1 comments

Being kind of meta, taking config, and doing several things for several inputs are good examples of ways to reduce the amount of code--when used appropriately. Being explicit reduces code too. Over abstracting and premature optimization can result in bloated spaghetti code.