All challenges
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
  1. 1Vendor names are simply longer strings and harder for readers to type
  2. 2It expresses intent and keeps the domain independent of vendor details
  3. 3The compiler prefers role-based names for the port interface over vendors
  4. 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.

Play this in a 3-minute battle