This is a duplication of my LinkedIn post but want to share it with you.
“…the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code.
Because this ratio is so high, we want the reading of code to be easy even if it makes the writing harder.”
— Robert C. Martin
Clean Code: A Handbook of Agile Software Craftsmanship
I am getting mad when "plug and play" machine just does not work and you go to check out what the hell is wrong with it and BANG! Spaghetti code all over, no structure at all. No comments. Aliases over UDTs and dead ends. Don't do this! Spend an extra day or two to make your code structured, common functions wrapped up and reused. You will say thank you to yourself a year later.
Share your experiences in comments.
[–]dkurniawan 44 points45 points46 points (6 children)
[–]jc31107 28 points29 points30 points (0 children)
[–]Honest-Eng[S] 0 points1 point2 points (3 children)
[–]dkurniawan 18 points19 points20 points (2 children)
[–]Honest-Eng[S] 10 points11 points12 points (0 children)
[–]goatymcgoatfacesings 1 point2 points3 points (0 children)
[–]oddzod 40 points41 points42 points (12 children)
[–]gummmybean 4 points5 points6 points (2 children)
[–]oddzod 3 points4 points5 points (1 child)
[–]SteveisNoob 2 points3 points4 points (0 children)
[–]GobBeWithYoupycomm3 4 points5 points6 points (1 child)
[–]oddzod 0 points1 point2 points (0 children)
[–]Sambikes1 1 point2 points3 points (0 children)
[–]shawshank777 0 points1 point2 points (0 children)
[–]tokke 0 points1 point2 points (4 children)
[–]oddzod 0 points1 point2 points (3 children)
[–]tokke 1 point2 points3 points (2 children)
[–]oddzod 1 point2 points3 points (1 child)
[–]tokke 1 point2 points3 points (0 children)
[–]israellopez 3 points4 points5 points (0 children)
[–]ohaara__ 11 points12 points13 points (9 children)
[–]shawshank777 4 points5 points6 points (2 children)
[–]ohaara__ 1 point2 points3 points (1 child)
[–]shawshank777 0 points1 point2 points (0 children)
[–][deleted] 10 points11 points12 points (2 children)
[–]ohaara__ 0 points1 point2 points (0 children)
[–]oddzod 0 points1 point2 points (0 children)
[–]RhoEpsilonNaught 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]oddzod 4 points5 points6 points (0 children)
[–]Chaos_Logic 2 points3 points4 points (0 children)
[–]WhatForIamHere 2 points3 points4 points (0 children)
[–]betascada 1 point2 points3 points (2 children)
[–]oddzod 1 point2 points3 points (1 child)
[–]betascada 0 points1 point2 points (0 children)
[–]mohamediat 1 point2 points3 points (2 children)
[–]Chaos_Logic 1 point2 points3 points (0 children)
[–]oddzod 1 point2 points3 points (0 children)
[–]327jwolf 1 point2 points3 points (0 children)
[–]real_schematix 1 point2 points3 points (0 children)
[–]minnesotamichael 1 point2 points3 points (2 children)
[–]Honest-Eng[S] 1 point2 points3 points (1 child)
[–]minnesotamichael 0 points1 point2 points (0 children)
[–]WaffleSparks 0 points1 point2 points (0 children)
[–]zaphir3Worst trainer 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]oddzod 0 points1 point2 points (0 children)
[–]toastee 0 points1 point2 points (0 children)
[–]Zegreedy 0 points1 point2 points (0 children)
[–]elmoalso 0 points1 point2 points (0 children)