Skip to content

TeddySmith.IO

Menu
  • Home

Category: Refactoring

Refactoring 101: If/Switch Statements

October 26, 2023 Author: teddysmithdev Category: Refactoring

We’ve all written if/else statements that we are not proud of lol. Sometimes we try to play god in our code and handle everything! This creates if statements that contain endless chains of nested logic. This is even compounded more by OOP where single if/else is used throughout the entire…

read more

Primitive Obsession Code Smell: How To Spot and Fix

October 26, 2023 Author: teddysmithdev Category: Refactoring

Primitive obsession is slang for “you use too many simple types like numbers and strings to store data”. With classes, it’s harder because you must think more intently about what you want. It’s very easy to just start adding primitives to our code and things can get out of control…

read more

Recent Posts

  • Mastering Longest Common Subsequence: The Key to Dynamic Programming on LeetCode
  • Binary Search on the Answer: A Powerful Algorithmic Pattern
  • Cracking LeetCode 150: Mastering Reverse Polish Notation Evaluation
  • Union-Find Essentials: Unlocking the Power of Disjoint Sets
  • Number Of Provinces – 547. LeetCode

Check out my Youtube

Categories

  • Adobe Experience Manager
  • Algorithm Patterns
  • Algorithms and Data Structures
  • C#
  • Career
  • Clean Code
  • CSS
  • Design Patterns
  • Java
  • Javascript
  • LeetCode
  • LINQ
  • React
  • Refactoring
  • SQL
  • Uncategorized
Copyright © 2025 TeddySmith.IO. All Rights Reserved.
Screenr parallax theme by FameThemes