Testability is crucial
Before I decide to add a function I always ask myself, "how can I test this?" Although a plain question, it forces me to re-evaluate the change I wish to make. It also helps me express my code in a more thought out manner.
Before I decide to add a function I always ask myself, "how can I test this?" Although a plain question, it forces me to re-evaluate the change I wish to make. It also helps me express my code in a more thought out manner.