by crgwbr · 1y ago · 0 comments
Yes, if they aren't in the code, it just means the programmer has figure out and carry that around mentally when reading or writing code.
My point is that the CarBuilder is not a real type that relates to the business, but something that we had to create to encode some behaviour/rules.
Some function that validates that a dict is a valid car is much more explicit that lots of different builder classes in my opinion.