Essentially, I know exactly how generic my code needs to be by noticing that I’m tempted to cut and paste some code, and then instead of cutting and pasting it, designing a generic solution that meets just those two specific needs. I do this as soon as I’m tempted to have two implementations of something.
A great way of looking at code reuse and when to make generics.
[Read More]


A young lady with a cupcake and a phone
You can’t have a white xmas without a snowman!
A campfire with marshmallows
A
A
A weapons rack, ready to go