YO

AI Reviews

Every review, in one place.

Senior-staff feedback on your designs — modularity, SOLID adherence, patterns, and tradeoffs.

Design a Parking Lot — Review

86
Modularity84

Strong separation between models and services. Consider extracting pricing as its own module.

SOLID78

OCP respected via strategy. SRP could improve in ParkingLot — booking + pricing overlap.

Patterns90

Strategy + Factory used appropriately. Observer is a natural next step for notifications.

Tradeoffs70

No discussion of concurrency tradeoffs. Mention optimistic vs pessimistic locking on spot allocation.

Naming88

Clear, intention-revealing names. `assign` and `release` read well.

Extensibility82

Adding new vehicle types is easy. Pricing extension would need a config-driven registry.

Interviewer comments

Clean modular structure with appropriate use of Strategy for pricing. The biggest gap is around concurrency tradeoffs — in a real interview, you'd be asked to defend optimistic vs pessimistic locking on spot allocation. Strong work overall.