this post was submitted on 29 Oct 2024
60 points (92.9% liked)

Programming

17423 readers
86 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Kache@lemm.ee 9 points 2 weeks ago* (last edited 2 weeks ago) (7 children)

I don't understand, if you've got easy to delete copy-pasted code, then delete it. It'll be a nice and cathartic exercise.

But sounds like what you're really talking about is code that isn't easy to delete.

[–] Lysergid@lemmy.ml 2 points 2 weeks ago (6 children)

I don’t understand too. Are you suggesting me to drop bunch of features in the product?

[–] tyler@programming.dev 5 points 2 weeks ago (1 children)

That means it’s not easy to delete. So your initial premise is wrong.

[–] Lysergid@lemmy.ml 4 points 2 weeks ago* (last edited 2 weeks ago)

No, that means you falling into author’s bait where they misuse term “delete”. Refactoring is not equal to deleting. One can be result of another. But the truth is that extendable code needs to be modular to be extendable. And modular code is easy to refactor. Author couldn’t not name it “Write code that is easy to refactor, not easy to extend” coz it’s even more dumb

load more comments (4 replies)
load more comments (4 replies)