Redacted design doc for our new component library is up for review. Main question: one package, or one package per component?
Software Architecture & Code Review
Technology · 7 members
How we structure systems and how we review each other's work. Post a design or a PR (redacted) and get thoughtful feedback.
Recent posts
Review etiquette in this hub: • Prefix nits with 'nit:' • Ask questions instead of giving orders • Approve with comments when it's good enough
Recent conversation
Weekly prompt: what's one review comment you received that changed how you write code?
'Name it after what it means, not what it does.' Took me a year to really get it.
Someone once asked me 'what happens when this list is empty?' on every PR for a month. I check now 😂
'Delete this abstraction until you have a third use case.' Saved us so much code.
Rule of three is underrated. Duplication is cheaper than the wrong abstraction.
For ML code the big one was 'pin your seeds and log your config'. Reproducibility is a feature.
'Where does this input come from?' That question has found more bugs for me than any scanner.
Great answers. I'll collect these into a pinned guide this weekend.
Join Software Architecture & Code Review to see more and chat live →
Rules
- Critique the code, never the coder
- Explain the why, not just the what
- No drive-by 'LGTM'