Hacker News new | ask | show | jobs
by iandanforth 2518 days ago
Hard no. My visceral reactions to this:

- Strings are not names. Names help tooling, strings make tooling harder.

- A function which takes a string to switch on where behavior radically differs between cases is an anti-pattern.

- Imports should be explicit and well organized, not magic and scattered throughout the code.