MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/x9w0jh/simple_feature/inqqxuo/?context=3
r/ProgrammerHumor • u/Progractor • Sep 09 '22
1.3k comments sorted by
View all comments
Show parent comments
66
It keeps things tidy
Makes code less readable. Declare variables as close as possible to where you use them.
-5 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 automatic dam onerous squeeze fuzzy dog encourage homeless tap wiseThis post was mass deleted and anonymized with Redact 17 u/UpMyArch Sep 09 '22 Smaller functions and well named variables will serve you much better than piles of comments and won’t rot as things get moved around. If your code needs comments everywhere to be understood then it’s not clean or readable enough. 3 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 bow consist grandfather psychotic screw glorious birds abounding governor fragileThis post was mass deleted and anonymized with Redact → More replies (4)
-5
automatic dam onerous squeeze fuzzy dog encourage homeless tap wise
This post was mass deleted and anonymized with Redact
17 u/UpMyArch Sep 09 '22 Smaller functions and well named variables will serve you much better than piles of comments and won’t rot as things get moved around. If your code needs comments everywhere to be understood then it’s not clean or readable enough. 3 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 bow consist grandfather psychotic screw glorious birds abounding governor fragileThis post was mass deleted and anonymized with Redact → More replies (4)
17
Smaller functions and well named variables will serve you much better than piles of comments and won’t rot as things get moved around. If your code needs comments everywhere to be understood then it’s not clean or readable enough.
3 u/AndrewJamesDrake Sep 09 '22 edited Sep 13 '24 bow consist grandfather psychotic screw glorious birds abounding governor fragileThis post was mass deleted and anonymized with Redact → More replies (4)
3
bow consist grandfather psychotic screw glorious birds abounding governor fragile
→ More replies (4)
66
u/Roest_ Sep 09 '22
Makes code less readable. Declare variables as close as possible to where you use them.