this post was submitted on 12 Apr 2024
792 points (98.8% liked)

Programmer Humor

19522 readers
293 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] SolarMech@slrpnk.net 6 points 7 months ago

This, to a point.

Other things help :

  • Unit test to help catch regressions. If you are confident in your test catching a good portion of bugs from refactoring, at least you feel confident refactoring. Worst case, at least you ensured your code is testable. There is nothing worse than refactoring untestable code.
  • Self-documenting code and when it fails to self-document, comments or refer to a wiki page.