Please do not attempt to simplify this code
1–10 of 647 posts
Re: Please do not attempt to simplify this code
#2Re: Please do not attempt to simplify this code
#3However, it does give me some comfort. When it’s not gamed, do other HNers also feel that a high comment:code ratio probably indicates quality?
There are reasons why this may be the case. (More thought, more time and a large team etc)
I don’t advocate using this measure to reward anyone because it would be gamed immediately.
Re: Please do not attempt to simplify this code
#4More seriously I’ve done this style unintentionally before in JavaScript for a similar situation with plenty of branching logic. Stuff that easily could have been have the lines but not as easy to verify by hand. I’m happy to see it being formalized for certain scenarios.
Re: Please do not attempt to simplify this code
#5Re: Please do not attempt to simplify this code
#6Re: Please do not attempt to simplify this code
#7The comment:code ratio is higher than anything I write or that I’ve seen. However, it does give me some comfort. When it’s not gamed, do other HNers also feel that a high comment:code ratio probably indicates quality? There are reasons why this may be the case. (More thought, more time and a large team etc) I don’t advocate using this measure to reward anyone because it would be gamed immediately.
Re: Please do not attempt to simplify this code
#8The comment:code ratio is higher than anything I write or that I’ve seen. However, it does give me some comfort. When it’s not gamed, do other HNers also feel that a high comment:code ratio probably indicates quality? There are reasons why this may be the case. (More thought, more time and a large team etc) I don’t advocate using this measure to reward anyone because it would be gamed immediately.
And then there's something I recall running into, a decade ago:
using namespace std; // using namespace standardRe: Please do not attempt to simplify this code
#9Re: Please do not attempt to simplify this code
#10The comment:code ratio is higher than anything I write or that I’ve seen. However, it does give me some comfort. When it’s not gamed, do other HNers also feel that a high comment:code ratio probably indicates quality? There are reasons why this may be the case. (More thought, more time and a large team etc) I don’t advocate using this measure to reward anyone because it would be gamed immediately.
And if your code is clean, you shouldn’t have a bunch of redundant comments explaining the obvious.