0% found this document useful (0 votes)
54 views4 pages

25 Clean Code Tips That You Should Be Familiar

The document provides clean code tips including unit testing code, refactoring, using version control, choosing libraries wisely, avoiding too many parameters, using expression bodied members, following OOP principles, writing short methods, removing duplicate code, avoiding deep nested conditions, avoiding generic exceptions, not putting everything in a single class, using constants, formatting code, using an IDE, avoiding null returns, using meaningful names, not reinventing the wheel, keeping classes small, structuring solutions well, following naming conventions, following DRY, KISS, SOLID and YAGNI principles, eliminating extra functions, and avoiding too many comments.

Uploaded by

Vitor Bontempo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views4 pages

25 Clean Code Tips That You Should Be Familiar

The document provides clean code tips including unit testing code, refactoring, using version control, choosing libraries wisely, avoiding too many parameters, using expression bodied members, following OOP principles, writing short methods, removing duplicate code, avoiding deep nested conditions, avoiding generic exceptions, not putting everything in a single class, using constants, formatting code, using an IDE, avoiding null returns, using meaningful names, not reinventing the wheel, keeping classes small, structuring solutions well, following naming conventions, following DRY, KISS, SOLID and YAGNI principles, eliminating extra functions, and avoiding too many comments.

Uploaded by

Vitor Bontempo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Clean Code Tips

Unit test
Refactor code
Use async/await
Use version Controls
Choose libraries wisely
Don't use too many parameters
Use expression bodied members
For simple if-else use ternary Operator

mwaseemzakir

Clean Code Tips

Use OOP Principles


Write short Methods
Remove duplicate Code
Avoid deep nested Conditions
Avoid catching generic Exception
Don't put everything in single Class
Use constants instead of Magic Numbers

mwaseemzakir

Clean Code Tips

Format Code
Use appropriate IDE
Avoid returning Null
Use meaningful Names
Don't reinvent the Wheel
Keep your class size Small
Structure your solution Well
Use proper naming Convention

mwaseemzakir

Clean Code Tips


Follow DRY
Follow KISS
Follow SOLID
Follow YAGNI
Eliminate extra Functions
Don't use a lot of Comments

mwaseemzakir

You might also like