
Learning by copy-paste
Frontend First
00:00
How to Avoid Duplicating Code
I think we like clean and tidy things because we've all worked on like the legacy code base, where it's just you can't ship anything. And so we always want to avoid that when we're writing code. You start duplicating things and it's very easy to feel a pull or a nudge to say, I've got four buttons here, and one of them has like the wrong border radius or something. That's really tough,. It's like, the goal is not to make an abstraction necessarily the goal. Maybe there is no abstraction, like at any given moment in time, there's some common set across the duplication that could be abstracted but that shouldn't necessarily be
Play episode from 07:13
Transcript


