Module 09 · System Design · The low-level design round
Design a parking lot (the first whole round)
Design a Parking Lot · Open board
The questions and the classes they land on, the two rules for picking a spot, a lot that says no, and the follow-up.
Before you start. You need two lessons and four small words. A class is a blueprint for objects. A field is one piece of data an object holds. An object’s state is the values its fields hold right now. Nouns and verbs (from requirements to classes) showed how to circle the nouns and verbs of a requirement, keep the nouns with their own identity and state (the entities), and give every rule to the one class that has the facts. Swap the rule, keep the class (Strategy and Factory) showed a strategy: one job with several interchangeable rules, each in its own class, all answering the same method call, so the lot can be handed a different one. This lesson runs both as one interview round.
Lesson 41 of 73 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year, or $19.50 for your first year with LAUNCH50, ends 1 Nov, 18:30 UTC.