How do you choose the right design pattern in your development? The answer lies in the difference between design patterns and design principles. Venkat Subramaniam explains how he focuses on design principles to pick the right design patterns. In his JavaOne session, he describes how to identify the design principles and discusses six core principles.
To help you navigate this JavaOne session, I hyperlinked the six principles. You can bookmark these for future reference!
DRY - Don’t Repeat Yourself
YAGNI- You Aren’t Gonna Need It
SRP - Single Responsibility Principle
OCP - Open Closed Principle
LSP - Liskov’s Substitution Principle
DIP - Dependency Inversion Principle
Related blogs about JavaOne sessions:
JDK 9 Language, Tooling and Library Features
Refactoring to Functional Style with Java 8
Java 8 Code Swim
Lambdas with Collections and Method References