Code Review Checklist (Brain Backup/Export)
Tags: design, programming, devtips, learning
Published: 2018-10-18 20:09:35

---
title: Code Review Checklist (Brain Backup/Export)
published: true
description: 
tags: design,programming,devtips,learning
---

Code Review Checklist:

1. Logging
1. Monitoring
1. Scale
1. Traceability
1. Troubleshooting
1. Reporting
1. UX
1. Incorrect problem definition
1. Time management
1. Ignoring other features.
1. Focusing on today needs.
1. Alerting
1. Metrics
1. Testing
1. Deployment
1. Code cleanup
1. Latency
1. No design review
1. No customer review
1. Concurrency
1. Simple bugs
1. Mutation
1. Readability
1. Naming
1. Documentation (motivation)
1. Audit
1. Security
1. Complex if-then logic
1. Suspicious loop 'break'
1. Negative logic
1. Regexp - long input could cause issues.
1. Nulls
1. More than 3 arguments
1. Line length
1. Shared resources abuse
1. Cache (think hard)
1. Variable name length
1. Commit message
1. Squash if needed
1. Build time change
1. "Random" usage smell
1. Open Close principle
1. Code duplication
1. OverComplexity (ex. Types where string is enough)
1. UnderComplexity (ex. strings where type is required)
1. Bulk test fail smell
1. Backward compatibility
1. Forward compatibility
1. API no version
1. Incorrect db type usage
1. Adding indexes instead of search engine view
1. Ignoring Failures
1. Expecting feature would work
1. Too verbose error handling
1. Sensitive info in logs
1. Missing "main" flow
1. Feature toggle (if needed)
1. Dependencies (collisions? new one?)
1. Comments smell
1. Dependent Teams
1. Plural/Singular correctness
1. Consistency with codebase conventions
1. Revert implications
1. Either simple MultiReturn or Single
1. Time to understand code smell

[Update] Post AgentDenton comment: The way I use the list is just scan from time to time to ignite some neurons running in my rather dead brain, so when I get to code reviews, I use those few friendly code review neurons.  Meaning I don't sit or use this list explicitly in code reviews, it's just the sitting on the back of my rather unorganized brain waiting for a code review to appear! ;)

I have yet to see a feature that was coded with the right requirements, if the developer did not question hard the requirements, it seems like always there is a slight change in requirement's if you think about the problem hard enough, if not reviewed properly, sometimes the requirements change altogether.  If you didn't monitor, log, make sure you have tracing, back office in place, you will suffer in future.  Did it effect reporting? if yes take care of it.  Is the UX correct? Did you estimate the task correctly time wise.  Are you focusing on today's need's too much, neglecting the future? it would cost you more than you think.

Clarification `No "main" flow` - I always like to see little `mains` so I can see the flow, (that is instead of a function that calls a function that calls a function).  If someone manages to get a proper concise short "main" then everyone looking at his logic would know what the system does.

No chance I get to all above during a code review, that's why it's sitting on the back of the mind and not on the frontal cortex, I trust our unconscious brain to pop up the right thing at the right time, and if not, it's time to meditate to increase the chances of that happening. ;)