SOLID
Common mistakes
- Applying every principle everywhere and ending up with dozens of tiny classes and interfaces.
Interview questions
Is SOLID only for object-oriented code?
No. The ideas also apply to modules, functions and UI components: keep them focused, depend on contracts and avoid huge interfaces.
Which SOLID principle matters most?
Single Responsibility is usually the most useful day to day, because focused modules make the other principles easier to follow.