What are your programming hot takes?

3 years ago by 257m to c/programming

load all comments
million 175 points 3 years ago

Refactoring is something that should be constantly done in a code base, for every story. As soon as people get scared about changing things the codebase is on the road to being legacy.

path: 0 3007589, hotness: undefined, score: 175, children: 19
brettvitaz 30 points 3 years ago

Only if the code base is well tested.

Edit: always add tests when you change code that doesnโ€™t have tests.

path: 0 3007589 3008669, hotness: undefined, score: 30, children: 1
mark 3 points 3 years ago

And also try to make tests that don't have to change if you refactor in future (although there are some exceptions)

path: 0 3007589 3008669 3017213, hotness: undefined, score: 3, children: 0
programming
programming

@programming.dev

login for more options
28165
3518
3471

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


go to feed...