★ Improve code readability by refactoring if blocks to dedicated classes
Published by on
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.
Every page in Oh Dear now works on mobile. Not just slapped-on media queries, but reworked layouts: a floating action button for navigation, dedicated mobile card views for monitor lists, scrollable tables with fade hints, Read more…
Brian Lovin explains how to turn caps lock into a Hyper key that simulates pressing all four modifier keys at once. Use it for instant app switching, Raycast quicklinks, and custom window layouts. Read more