“What if it changes?”
&quot;What if it changes?&quot; is a reasonable question to ask. But every time you do you are walking a tightrope. My rule of thumb is that we look at what is in use TODAY, and then write a decent abstraction around that. If something is used once, ignore any abstractions. If it&#x27;s used twice, just copy it, it&#x27;s better. If it&#x27;s used 3 or more times, look at writing an abstraction that suits us TODAY not for the future. Bonus points if the abstraction allows us to extend easily in the future, but nothing should be justified with a &quot;what if&quot;.<p>The reason a lot of Java or C# code is written with all these abstractions is because it aids unit testing. But I&#x27;ve come to love just doing integration testing. I still use unit testing to test complex logic, but things like &quot;does this struct mapper work correctly&quot; are ignored, we&#x27;ll find out from our integration tests. If our integration tests work, we&#x27;ve fulfilled our part of the contract, that&#x27;s all we care about. Focus on writing them and making them fast and easy to run. It&#x27;s virtually no different to unit tests but just 10x easier to maintain.