A few weeks ago, I joined a new project.
On my first few code reviews, I started getting many comments from senior developers.
^ SRP( Single Responsibility principal)is king
• If variable is not used more than one time better don't extract value in variable
• Don't Repeat Yourself (DRY)
• Method name should be a verb
• Class name should be a noun
• REST controllers should be plural
• Variable names should be self-explanatory
• Functions should not be more than ~20 lines
• Use the correct access modifiers (even for no-argument constructors)
• Avoid duplication — follow the DRY principle
At first, I thought: “The code is working… why so many comments?”
Then slowly I started realizing something important.
In personal projects, we usually focus on making the code work.
But in real production systems, the focus is on how the code will be understood and maintained by other developers for years.
Every review comment started teaching me something new:
how to name things better, how to keep functions small, how to make code expressive, and how to structure systems using Spring Boot, Domain Driven Design (DDD), and Hexagonal Architecture.
One idea that really stayed with me is this:
Writing clean code is like creating art.
Anyone can write code that works, but writing code that is simple, readable, and elegant takes practice and craftsmanship.
Every day I’m improving and learning something new from the review process.
Grateful to be in an environment where learning and better engineering practices are valued.
Still learning, but enjoying the journey of becoming a better software engineer. 🚀
#SpringBoot #CleanCode #SOLID #DDD #HexagonalArchitecture #SoftwareEngineering #Learning
It's beyond syntax but understanding if this is solving the right problem right now. Love the lesson here.