- How complex is a screw?
What does a single screw do? Does it hold books?
No, but it can be used in a bookshelf that does. - How complex is a rivet?
What does a single rivet do? Does it transport oil across oceans?
No, but it can be used in an oil tanker that does. - How complex is a single lego block?
Whatever does a single lego block do?
Everything one writes in code, every single function or component or class, needs to be neutral like that, too. Reusability of your code does not come from what it does. It comes from what it doesn't do. It comes from what it consciously avoids doing so as not to interfere or restrict the range of unexpected ways in which it can be used.
This post does not yet have any comments.