|
|
|
|
|
by jugg1es
1674 days ago
|
|
I never understand why people criticize using interfaces for most functionality. How else do you write effective unit tests? Interfaces with dependency injection make unit tests far easier to write. Smartly designed interfaces also make code easier to read and understand. Lastly, adding new interfaces is trivially easy, so why not? |
|
Similarly, walls of text are bad.
I use line breaks after every sentence to fix that.
I see no reason why not.
This way you can clearly tell apart sentences.
Adding new lines doesn't require any more time than just writing a space.
So why not just do it always?
By following this rule I never wrote a wall of text again!