Skip to content

Instantly share code, notes, and snippets.

View ProLoser's full-sized avatar
💭
You're absolutely right!

Dean Sofer ProLoser

💭
You're absolutely right!
  • Sony Interactive Entertainment (PlayStation)
  • LinkedIn in/dean-sofer
View GitHub Profile
@ProLoser
ProLoser / Complexity.md
Last active January 17, 2018 00:45
Code Complexity

Code Complexity Anti-Patterns

This document is designed to illustrate different examples of code complexity I've encountered and potential solutions to combat it. Code complexity can keep changing through the lifecycle of code, but one of my primary goals I try to keep in mind above all else is refactorability. No matter what, code will eventually become dated and need refactoring. Documentation, organization, cleanliness, unit tests are all aspects that help contribute to refactorable code. While quick prototypes and one-time use codebases will typically not be as concerned with code quality and complexity, long-lasting applications and libraries should be mindful of some of these anti patterns and work to reduce them when possible.

All of these are my own opinion and should not be treated as rules, just as suggestions.

In alphabetical order: