Being a good software engineer is not just about coding, it’s about solving problems most effectively and efficiently. To do so, you need to learn and apply Software Engineering principles. In this video, we have discussed the 6 most important principles of software engineering.
1) DRY (Don’t Repeat Yourself)
This means that every piece of data should have a single reference point or single source of truth (SSOT), such that changing a single part of that data doesn’t require changing logically unrelated elements.
2) KISS (Keep It Simple Stupid)
Experience has shown that complexity causes bugs because there are unnecessary parts to keep track of and fewer engineers can understand how they connect. KISS makes your code cleaner and less likely to have bugs. Such code is also easier to debug and maintain.
3) YAGNI (You Aren’t Gonna Need It)
YAGNI comes from the software development methodology called Extreme Programming (XP). What it means is Always implement things when you need them, never when you just think that you will need them in the future.
4) SOLID
It consists of design principles that first appeared in Robert C. Martin’s 2000 paper entitled Design Principles and Design Patterns. We will talk about this SOLID principle in detail in another video They are:
Single-Responsibility Principle
Open-Closed Principle
Liskov's Substitution Principle
Interface Segregation Principle
Dependency Inversion Principle
5) SOC (Separation of Concerns)
This refers to the fact of assigning a separate responsibility to each function, class, or component.
6) LOD (Law Of Demeter)
The Law of Demeter (or the Principle of Least Knowledge) is a design guideline for developing software applications. and this defines how objects communicate with each other. The Law of Demeter principle states that a module should not know the inner details of the objects it manipulates.
Music by Yurii Kohut from Pixabay
(https://pixabay.com/users/lvymusic-27...)