Clean Code: It Does Really Spark Joy

Why do I Care About Clean Code?

Benefits of Clean Code in My Software Engineering Project

Clean Code Principle In Practice

One Function Only Serves One Responsibility

Comment Only If It’s Really Necessary

Use One Word/Term to Represent One Concept

Be Consistent

Do Code Review

code review example in our project
sonarqube review
linter job in gitlab ci

Minimize Code Duplication As Possible

Error Handling

One Test Function Should Cover Only One Case

How Clean Code Really Changes My Mindset on Writing Code?

Conclusion

References

Bad Codes Sources

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store