Comment on Opinions on how to deal with duplicate code.

sip@programming.dev ⁨1⁩ ⁨year⁩ ago

I prefer the FP approach where I create smaller functions that I compose together in larger functions or methods wich rarely repeat themselves elsewhere identically. Forcing extractions and merging of such functions often leads to weird code acrobatics.

source
Sort:hotnewtop