Declare interfaces IF and WHEN they are needed, not ahead of time ‘just in case’

If you’ve worked with me or followed me for a while it probably shouldn’t surprise you that I agree with Hadi’s tweet below 👇🏻 …

My approach is always to only create interfaces IF and WHEN they are needed and to avoid doing too much upfront ‘just in case’ design.

A lot of developers fail to realize that even though interfaces are very simple to create initially, using them is not a ‘one-time cost’. Interfaces add architectural complexity and have a real ongoing cost so by all means add them when needed but not before…

Leave a Reply

Your email address will not be published. Required fields are marked *