exercism/elixir/name-badge/HINTS.md

1.2 KiB

Hints

General

1. Print a badge for an employee

  • This is a base case where we can assume that none of the input data is nil.
  • If you need to refresh your memory about working with strings, read about them in the official Getting Started guide.

2. Print a badge for a new employee

  • Strings are always truthy and nil is falsy.
  • There is a macro that returns one of the two options, depending of whether it was given a truthy or a falsy value.

3. Print a badge for the owner

  • Strings are always truthy and nil is falsy.
  • There is a macro that returns one of the two options, depending of whether it was given a truthy or a falsy value.