Readit News logoReadit News
richhhh commented on Learning to read Arthur Whitney's C to become smart (2024)   needleful.net/blog/2024/0... · Posted by u/gudzpoz
gitonthescene · a month ago
Hard disagree on code being read more often than it is written. I’ve never seen any study of this and in my experience it is not true. Most code reviews end up being perfunctory. Even calling that “reading” is generous.
richhhh · a month ago
Anytime you need to change something you have to understand it first. I’ve not seen any evidence that this can be done without reading the code first.

I’ve personally never worked in an environment where code was only thrown out and replaced instead of modified.

richhhh commented on Learning to read Arthur Whitney's C to become smart (2024)   needleful.net/blog/2024/0... · Posted by u/gudzpoz
qayxc · a month ago
This isn't about Ivory tower politics or gate keeping. It's just a fact. Software development changed and Whitney started his career 45 years ago.

If you need help understanding what I mean, look at the credits of computer games released in the 80s and early 90s. You'll usually find a single programmer, with maybe one or two others, who contributed specialised parts like sound/music processing or special effects. No one cared about your particular programming style, because there were no big teams, no code reviews, no PRs. If you had questions, your fellow programmer would simply sit down with you and go over the details until you got familiar with their style and -code.

> failure to adapt to the shop standards usually means your position ends

Well, he runs his own company and has been his own boss for the past 32 years so again - this simply doesn't apply to him.

richhhh · a month ago
It does if any of his customers ever care about maintaining the kind of code after his death.

Code is read more than it is written, and most of us don’t and wouldn’t write in this style. This could mean he’s much smarter than the rest of us, or he could just be a jerk doing his own thing. In either case I’ve never had a good experience working with coders who are this “clever”. Real brilliance is writing code anyone can understand that remains performant and well tested. This is more like the obfuscated Perl contest entries. I guess it’s cool that you can do it, but good sense dictates that you shouldn’t.

As to OPs endeavor to understand this style, it is an interesting learning approach, but I think reading a lot of code in many styles that are actually used by more than one guy is likely to get make you “smarter”.

richhhh commented on Learning to read Arthur Whitney's C to become smart (2024)   needleful.net/blog/2024/0... · Posted by u/gudzpoz
richhhh · 2 months ago
Kerrnigan’s law seems to apply:

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it?

u/richhhh

KarmaCake day18December 18, 2020View Original