So, what was up last week, when all of tech suddenly decided that writing software isn't good or useful or interesting?
Cuz, I gotta say, that sucks, and you're all wrong.
So, what was up last week, when all of tech suddenly decided that writing software isn't good or useful or interesting?
Cuz, I gotta say, that sucks, and you're all wrong.
Like, I really don't get why so many of you are so eager to have statistical models write code for you.
I've been arguing for literally my whole career that the actual writing isn't the hard part of software development. But wow, did everyone take that in the wrong direction recently.
Understanding the system is the hard and valuable part. And I genuinely don't know how you think you're going to do that if you never get to do any of the safe and easy interactions with the system.
@dr2chase @ljrk @matzipan @jenniferplusplus @scottjenson It's pretty important to avoid noisy comments, IMO. The vast, VAST majority of useful comments I've ever written or encountered (only some of which I wrote earlier) have been about WHY the code is there and written the way it is. Even for abstruse "clever" circumlocutions where you write down what that impenetrable snarl does, you're stepping all over your own hair if you don't also explain why you had to create the Gordian knot in the first place.
I mean, write down what whole blocks or functions do, sure -- by all means, document your API properly -- but comments are much less impactful and much easier to skim past if there's too much spurious chaff about what the code does tanking your SNR.
@Llammissar @dr2chase @matzipan @jenniferplusplus @scottjenson Yup. If the code is hard to read, a comment is not a proper fix, fix it in code instead.
Code should be as expressive as possible and only things not able to be expressed in code should be written in comments. Otherwise you also easily run into wrong comments which were either wrong from the start or became wrong due to change anomalies resulting from the redundancy: If comments contain redundant information, a change in code may forget to update the comment and result in misleading comments.
I do admit, this is maybe a bit tainted through my background in code audits/security. In my experience, most comments are just wrong. And in many cases dangerously wrong. But reading those comments could mislead the reviewer to think the code was right. At some point I started stripping comments from code pre review because most comments are just distractions from the real problem and not design explanations – which they should be.