100% agree. As I’ve said before - many people think DRY (“don’t repeat yourself”) means syntax or structure, when it really means concepts.https://twitter.com/rtfeldman/status/1092885754265489408 …
(sometimes it's not clear that you're branching on data! Maybe the data is a result of a bunch of branched logic.)
-
-
Hmm. I find the line between code & data is fuzzy in many codebases - i.e., a hash gets passed in with a bunch of optional params that alter behavior. Code or data? Sorta both???

-
exactly. But that's why we get paid the big bucks, to figure out refactors that clarify these issues :)
-
I just did a refactor that was able to pull conditionals out of the implementation this way, that's why it came to mind
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.