Introducing SOLID programming
If you’re a traditional developer, you may have heard of SOLID programming before. SOLID is a very common set of principles that are used across the IT industry to produce well-architected code. If you’re an automation programmer, you probably haven’t heard of the concept before, and that’s due to the immature implementation of OOP in PLC programming.
When I was first introduced to SOLID programming, I was incredibly confused about its purpose. My young, inexperienced self simply could not fathom that OOP did not ensure quality code. After all, as long as you’re following proper OOP principles, you should be producing quality code, correct? Well, the answer to that is “Wrong.” Quality code stems from well-architected code.
A quality program is a program where things can be easily added or removed, bugs can be easily found, and code can be easily changed without the risk of breaking other code. This...