Ravi Vishwakarma is a dedicated Software Developer with a passion for crafting efficient and innovative solutions. With a keen eye for detail and years of experience, he excels in developing robust software systems that meet client needs. His expertise spans across multiple programming languages and technologies, making him a valuable asset in any software development project.
Ravi Vishwakarma
22-Apr-2025There are many other software design and coding principles that help guide good programming practices. Here’s a list of additional important coding principles that developers often follow:
DRY (Don't Repeat Yourself)
Why?
Helps maintain code. If something changes, you only need to update it in one place.
KISS (Keep It Simple, Stupid)
Why?
Simple code is easier to read, debug, and maintain.
YAGNI (You Aren’t Gonna Need It)
Why?
Avoids overengineering and keeps the codebase lean.
Separation of Concerns (SoC)
Why?
Improves readability, maintainability, and testability.
Law of Demeter (LoD)
In Code:
A method should call methods only on:
Why?
Reduces tight coupling and improves encapsulation.
Composition Over Inheritance
Why?
It’s more flexible and avoids deep and fragile inheritance hierarchies.
Design for Testability
How?
Principle of Least Astonishment
Why?
Helps make APIs and systems more intuitive to use.
Clean Code Principles (Robert C. Martin’s guidance)
Fail Fast Principle
Why?
Makes debugging easier and improves software reliability.
Tell, Don’t Ask Principle
Example:
Bad:
Better: