shlogg · Early preview
Nolan Miller @nmiller15

Refactoring For Simplicity In Software Engineering

Refactored my app for simplicity, removed 26 lines of logic-based code from presentational component & cleaned up UI. Next step: more refactoring and UI tweaks.

Sometimes, you reach a point while you’re coding a project where you realize that the road you’ve gone down needs some correcting. And that’s where I was today.
I was starting to get overwhelmed with every change that I would have to make to implement UI logic. So, I figured… “Hm. It’s probably time to refactor my whole application.

  
  
  Simple is Better

Yesterday, I talked about making my state global. So I did some research.
I could use redux… which I always have problems with when using it to conditionally render. I could use React’s baked in solution useReducer, or I could pick from t...