Coupling

From ym2149.org
Revision as of 11:55, 12 October 2024 by Andrzej (talk | contribs)
Jump to navigationJump to search
  • manufactured concern to protect developers who are afraid of refactoring and would rather maintain a pile of hacks
    • seems particularly prevalent in the web ecosystem but also leaking outside of it
  • when shared code does not support your use case, change it so that it does
    • unit tests should be in place to ensure existing use cases remain supported
    • tangled conditional logic, as ever, can be avoided via polymorphism
  • there is always the option of inlining shared code that isn't fit for purpose