lysdexic@programming.dev to Programming@programming.devEnglish · 2 months agoGood Refactoring vs Bad Refactoringwww.builder.ioexternal-linkmessage-square10fedilinkarrow-up12arrow-down10cross-posted to: hackernews@lemmy.smeargle.fans
arrow-up12arrow-down1external-linkGood Refactoring vs Bad Refactoringwww.builder.iolysdexic@programming.dev to Programming@programming.devEnglish · 2 months agomessage-square10fedilinkcross-posted to: hackernews@lemmy.smeargle.fans
minus-squareSnarwin@fedia.iolinkfedilinkarrow-up1·2 months agoWell, remember, a code smell isn’t something that’s inherently bad, it’s “a hint that something might be wrong”. I’m not saying that anyone should flag lambdas as a problem in code review, just that when you see one, it’s probably worth taking a second to ask yourself if a named function would make more sense.
Well, remember, a code smell isn’t something that’s inherently bad, it’s “a hint that something might be wrong”.
I’m not saying that anyone should flag lambdas as a problem in code review, just that when you see one, it’s probably worth taking a second to ask yourself if a named function would make more sense.