Code should be the one version of the truth, don’t add comments

Ben HoskingDyn365CE4 years ago16 Views

 

“Code never lies; comments sometimes do.” — Ron Jeffries

Code should be self documenting, the purpose of classes, methods and variables should be obvious that you can understand it in six months time.

The reason I don’t like comments in code is because you have to maintain the code and the comments. I have seen examples where developers have changed the code but not…

Continue Reading Hosk’s Article on their blog

Code should be the one version of the truth, don’t add comments

“Code never lies; comments sometimes do.” - Ron Jeffries Code should be self documenting, the purpose of classes, methods and variables should be obvious that you can understand it in six months time. The reason I don’t like comments in code is because you have to maintain the code and the comments.

Blog Syndicated with Hosk’s Permission

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...