Liste des Groupes | Revenir à cl c |
On 04/04/2025 16:10, Muttley@DastardlyHQ.org wrote:Any sufficiently complicated code requires comments. Thats why comments exist.On Fri, 4 Apr 2025 13:39:06 +0200>
David Brown <david.brown@hesbynett.no> wibbled:On 04/04/2025 11:40, Muttley@DastardlyHQ.org wrote:Ah, the typical arrogant programmer who thinks their code is so well writtenOn Thu, 3 Apr 2025 15:58:05 +0200>
David Brown <david.brown@hesbynett.no> wibbled:Human readers prefer clear code to comments. Comments get out of sync ->
code does not.
Thats not a reason for not using comments.
It is a reason for never using a comment when you can express the same
thing in code.
>
If that's your problem, write better code - not more comments.
that anyone can understand it and comments arn't required. Glad I don't have
to work on anything you've written.
Arrogance would be judging my code without having seen it. Writing code that is clear and does not require comments to say what it does is not arrogance - it is good coding.
I'm guessing you've never written any sufficiently complicated code whereRubbish. A lot of the time what is being done is just as obtuse as why.>
That can /occasionally/ be the case. But if it happens a lot of the time, you are writing poor code. It's time to refactor or rename.
Yup, you are one of *those* devs.int main()>
{
colour_to_hex(10);
return 0;
}
UB. It's /your/ fault.
It really isn't. Get out of your bunker some time.Just assuming they'll always pass parameters within limits is not just>
cretinous, its dangerous.
Nope. It is how software development works. If you don't understand
Les messages affichés proviennent d'usenet.