โ˜… Improve code readability by refactoring if blocks to dedicated classes

1 ยท Freek Van der Herten ยท May 31, 2021, 1:08 p.m.
If you code bases contains a long procedure with a lot of if statements to determine which case should be handle, consider extracting each case to its own dedicated class. Here's an example from the Mailcoach code base....