Multiple ChoiceBeginner 45s
Port naming by role
Why is it better to name a port after the role it plays (e.g. OrderPricing) than after the technology (e.g. StripeClient)?
Options
- 1Vendor names are simply longer strings and harder for readers to type
- 2It expresses intent and keeps the domain independent of vendor details
- 3The compiler prefers role-based names for the port interface over vendors
- 4Stripe technically requires that its own vendor name appear somewhere in the port name
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.