Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Related: my favorite pull requests are the ones that remove more lines of code than they add. People think you need to hoard old code that’s not used anymore like it’s made of gold. It’s not. You aren’t gonna need it, and if you do, you can find it in the git history.


Antoine de Saint-Exupéry — 'Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.'


I push that so hard. Put the removal in an isolated, clearly named commit that will be easy to search later, tag that commit so it never gets garbage collected, then take a deep breath and say goodbye.

You'll be better off without it and 99.9% of the time you won't have to retrieve it later anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: