5. Dragon ADR Init Name

  • ADR - Architecture Design Records

5.1. Problem

  • Create Dragon and name it "Wawelski"

5.2. Option 1

>>> dragon = Dragon('Wawelski')
  • Good: easy to use

  • Bad: less verbose than keyword arguments

  • Verdict: candidate

5.3. Option 2

>>> dragon = Dragon(name='Wawelski')
  • Good: easy to use

  • Good: more verbose than positional arguments

  • Bad: too verbose for such simple example

  • Verdict: rejected, too verbose for such simple example

5.4. Decision

>>> dragon = Dragon('Wawelski')
  • Because: easy to use

  • Because: verbose enough for now