Hacker News new | ask | show | jobs
by mattkrea 3937 days ago
Do you write test cases? If not I'd recommend it. The decoupling required for effective tests leads you into modularizing things you may not have otherwise. I have seen myself that after this started code re-use in general has jumped due to the modules already sitting around where previously I may have just written somewhat similar functionality from scratch all over again in a new project.