|
|
|
Ask HN: How often do you really reuse your code?
|
|
9 points
by humble_dev
3938 days ago
|
|
As most of developers, I try to create as much reusable code as possible. But in reality, I rarely use my code again. I could easily say that less than 5% of my code will be reused in the future. I wonder how it looks for other people, is it worth to make your code reusable in the first place? |
|
Custom CMS - 100% reuse - always start with a rolling base and constantly improving it though WP sites have cut into this - people think WP is better - get what you pay for.
Random 1-offs - how many times I've had to build a newsletter system... Base system gets copied and installed with specifics changed - where to pull the email list from, mailgun or aws for sending, etc...
Server config could be considered "code reuse" - I'll almost always refer to another server I built or run myself to copy apache / php / whatever config sections as a starting point.