logoalt Hacker News

agentifyshtoday at 4:48 PM2 repliesview on HN

i recall very early in my career i did exactly this. i took what worked duplicated it—my reasoning being that it was far safer to reuse what has been battle tested and leave refactoring at a later stage

it wasn't received well and senior developer told me that 'good developers know exactly what patterns to use all the time before writing any piece of code and that he will clean up my mess'

long story short his refactoring caused what was otherwise a stable system into a complete mess and it reminded me of Nassim Taleb's book


Replies

dimgltoday at 7:02 PM

> long story short his refactoring caused what was otherwise a stable system into a complete mess

Yeah that totally happened

nicoburnstoday at 4:51 PM

It's definitely an "it depends" thing. It's easy to overabstract. On the other hand, I've also met junior developers who just didn't know how to use function parameters.