Clean Code Principles
Naming, function design, levels of abstraction, comments, error handling, DRY/AHA, KISS, YAGNI, Law of Demeter and cohesion/coupling โ applied to Go payment and order code.
SOLID in Go
The five SOLID principles translated into idiomatic Go โ consumer-defined interfaces, "accept interfaces, return structs", composition roots โ with payment-platform examples and the places SOLID is over-applied.
Design Patterns That Matter
The design patterns that actually earn their keep in backend Go โ functional options, factory, strategy, adapter, decorator, pub-sub, state machine, chain of responsibility, repository, unit of work, specification โ plus the anti-patterns to avoid.
Code Smells & Refactoring
A catalog of code smells seen in payment and commerce code (money as float64, switch on type, shotgun surgery, feature envyโฆ), the refactoring moves that fix them, how to refactor safely with tests, and a worked multi-step refactor of a messy checkout handler.
Testing Strategy
How to test Go services in banks and e-commerce โ pyramid vs trophy vs honeycomb, unit/integration/contract/e2e, fakes vs mocks, table-driven tests, testcontainers, property-based tests for money invariants, mutation testing, async flows, test data builders and flaky tests.
Code Review & Engineering Standards
What to look for in code review (correctness, design, security, observability, tests), a review checklist for payment code, giving and receiving feedback, PR size, engineering standards (golangci-lint, conventional commits, ADR links, CODEOWNERS) and the architect's role.