How To Write A Good Code!
Last updated
Last updated
A Developer Should Know: Writing good code could help improve quality, timing, and migration for the owner, and another member of the Team. But if we do anything in our major, we must have a mindset to improve it.
With the list below, when facing and receiving mention of another developer.
Variable
Reduce The Scope Of The Variable's Impact.
Rule Of Object
Single Responsibility Principle(A part of SOLID)
Style Code
Give It's A Correct Naming
Object Relationship
Make Method With Depend On Something Else
OOP
Wait A Minute With Inheritance
Condition
Make Codition Could Be More Simple Rather Complicate
Size
Don't Make Class/Struct With Too Big
Flags Variable
Avoid Create Flags
Behavior
Avoid Using Data Type To Sperate Expression
Delete
If Dead Code, Just Delete Don't Add AnyComment
Dependencies
Be Aware Of The Direction Of Dependence
Value
Make Value To Enum If We Can
Comments
Write A Thoughtful Comment Review