Skip to content

Instantly share code, notes, and snippets.

@armw4
Last active March 15, 2020 15:15
Show Gist options
  • Save armw4/d6245427a17cabaf440c0610fb8fdd6d to your computer and use it in GitHub Desktop.
Save armw4/d6245427a17cabaf440c0610fb8fdd6d to your computer and use it in GitHub Desktop.
My Empirical Formula for Stability to Code to Refactor...a Ratio if you Will

by Antwan Wimberly

25 June, 2019

Time for Red, Green, Refactor Must Present Itself (When in Doubt, Do as the Romans Do)

If production code already works (conforms to requirements and is deemed fast enough for end users...which makes it stable) and does not have code coverage, leave it be until the opportunity presents itself to add code coverage and change the code (System Under Test) at will, or a bug occurs related to that code, or it is deemed not performant enough at a later date. ☝🏽

If production code has code coverage and conforms to requirements but could be better and you have time to improve it, proceed to refactor it. The tests will serve as feedback.

Conclusion

Otherwise, it's business as usual (work life balance all the things). Try to allocate sufficient time to add test coverage for new requirements as you’re writing new code but be aware of the scope of the project and when it ideally needs to ship to production. From there’s it’s a balancing act. I’m a natural born ♎️ so I’m innately capable of conducting this balance of a daily basis ⚖️. All hail Egypt 🇪🇬. My African and European heritage have served me well (let freedom ring...U.S.A.!!!).

Deeper than rap - Rick Ross of Miami, FL

@armw4
Copy link
Author

armw4 commented Dec 5, 2019

@armw4
Copy link
Author

armw4 commented Mar 15, 2020

Typo

balance on a daily basis.

You get the point by now 🐆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment