Code Review Check List
Code Review Check List ,
I can categorize the code Review Check list in Java and DB side
Java Side :
DB Side
Tools :
Sonar Qube -Static Analysis
JUnit -Unit Test
Check Style - Format /Comment
I can categorize the code Review Check list in Java and DB side
Java Side :
- Comments and Format should be in all the places
- Single Responsibility Function level and class level
- Operation and Class should small
- Avoid the Duplication
- Acceptability and modifier should be in all the places
- Release Resource should be mandatory
- Try to use static block for common stuff like create the current date and loading the property
- Try to minimize the Synchronized statement/block
- Avoid to use the printstacktrace and System .out. in the program
- Avoid to use constant inside the loop
- Avoid to create the unneccessary object
- Use Checked Exception in recoverable condition and Runtime exception in Program/logic errors
- Dont ignore the exception
- Dont return null instead return empty object
- Use Enum instead of Constant
- Unit Test must be exists in all the classes /method level
- Try to use composition over inheritance
- Try to implement SOLID Principle
- Try to use DP as much as possible
- Avoid the Batch processing logic in the program
- use logger for capturing the log details
- Property should be externalize instead of inside the war/ear.
- Validate the input before perform any manipulation
- All the request/response(transfering remotly) should be serilizable
- Utalization of any resource through pooling instead of create manually
- Remove unused code from Program
- Try to remove the empty method
DB Side
- Query should be properly tune
- Implement the Cache
- Lazy load instead of eagar
- Search Fields should be indexed
- Try to implement the sharding in DB level
- Try to avoid the DB trigger
- Create the View in DB to retrieve the data from multiple Table (Read Only)
Tools :
Sonar Qube -Static Analysis
JUnit -Unit Test
Check Style - Format /Comment
Comments
Post a Comment