Click here to Skip to main content
15,892,674 members

Survey Results

Do you feel pressure to make your code look as good as code posted by experts?

Survey period: 24 Feb 2020 to 2 Mar 2020

Do you see really well written code and think "I should write code that good"?

OptionVotes% 
I put pressure on myself to write the best code I can29836.12
Yes, I feel pressure to write code that's as good as what you see online698.36
Sometimes, maybe, depends on the situation16419.88
No, not really20624.97
My code is already better than anything I see online8810.67



 
GeneralRe: What expert ? Pin
Eek Ten Bears25-Feb-20 2:23
Eek Ten Bears25-Feb-20 2:23 
General"Yes, I feel pressure to write code that's as good as what you see online" Pin
OriginalGriff23-Feb-20 19:48
mveOriginalGriff23-Feb-20 19:48 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
Ravi Bhavnani24-Feb-20 12:12
professionalRavi Bhavnani24-Feb-20 12:12 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
Daniel Pfeffer25-Feb-20 1:51
professionalDaniel Pfeffer25-Feb-20 1:51 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
Eek Ten Bears25-Feb-20 2:30
Eek Ten Bears25-Feb-20 2:30 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
OriginalGriff25-Feb-20 2:37
mveOriginalGriff25-Feb-20 2:37 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
Nelek25-Feb-20 9:12
protectorNelek25-Feb-20 9:12 
GeneralRe: "Yes, I feel pressure to write code that's as good as what you see online" Pin
kalberts25-Feb-20 3:46
kalberts25-Feb-20 3:46 
The good thing about not making end-of-line comments is that in VS you can set all the newline and indent rules exactly as you prefer them, go to the end, delet and reinert the final brace. If you need to hand the code over to someone with different ideas, change the newline and indent rules and repeat, before you hand over the code.

Of course you can do this even with EOL comments. But EOL comments should be nicely lined up, e.g. from col 70, not to draw the attention away from the code statements. Reformatting tends to mess up the nice lineup. But then again, in many current development environments, the fashion is to frown at EOL comments. If you adhere to that, there is no problem.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.