←back to thread

873 points belter | 1 comments | | HN request time: 0.297s | source
1. nerdralph ◴[] No.42949362[source]

> Very few abstractions exist in general application development. Just write the code you need.

I don't try to foresee abstractions (premature optimization), but I often encounter them when adding to a codebase. A recent example would be a tool that uses property info from a public database. The first version was hard coded to the database from one jurisdiction. When I added support for a second jurisdictions, abstractions helped avoid code duplication.