News for hackers. Stuff that matters.
Re:DRY is an over-rated programming principle? by layer8 on Thursday July 07, 2022 @01:38PM (#32016973)
Maybe, but SPOT is a more memorable acronym than SPOK (or whatever). It allows you to talk about the “SPOTs” where stuff is defined.

One could also use “SPOTify X” to mean “reducing X to a SPOT”. :)

Re:DRY is an over-rated programming principle? by slowmovintarget on Thursday July 07, 2022 @09:36PM (#32021997)
How about "reduce coupling" in that function, "increase cohesion" in this other function. The DRY principle is intending to get you thinking of coupling and cohesion, which, when gotten backward dramatically increase complexity.

The mechanism to "SPOT that code out, bro!" can be applying varying techniques for reducing coupling, and tightening cohesion. A proper review on a merge request should be making more specific comments about how, not a hand-wave to say "DRY that sucker up."

One final comment: DRY is three characters, therefore obviously more efficient :p