Category Archives: Readability

Using the Strategy Pattern to Reduce Complexity in Your JavaScript

Problem: Do you ever find yourself writing a lengthy switch statements or if statements structured like a switch. Luckily there is the Strategy Pattern to help alleviate this complex, sometimes unintelligible code. You may have also noticed that this code … Continue reading 

Also posted in Javascript | Tagged , , | 17 Comments