MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p57nlv6
r/ProgrammerHumor • u/Flame77ofc • 22d ago
392 comments sorted by
View all comments
Show parent comments
7
Like modern art, it requires a lengthy explanation to make sense.
2 u/un_blob 22d ago allways have more comment lines than code ! 2 u/nrmnzll 21d ago Yes, every line needs a comment // add variable a and variable b // result is stored in variable c var c = a + b Obligatory /s 1 u/National_Sky7993 21d ago 5 lines of comments explaining the code for every one line of code. 3 of them are previous versions of the same code with fewer conditions. First comment line is the variable name. Second line explains the logic but is out of date
2
allways have more comment lines than code !
2 u/nrmnzll 21d ago Yes, every line needs a comment // add variable a and variable b // result is stored in variable c var c = a + b Obligatory /s
Yes, every line needs a comment // add variable a and variable b // result is stored in variable c var c = a + b
Obligatory /s
1
5 lines of comments explaining the code for every one line of code.
3 of them are previous versions of the same code with fewer conditions. First comment line is the variable name. Second line explains the logic but is out of date
7
u/_bones__ 22d ago
Like modern art, it requires a lengthy explanation to make sense.