4 ms·
The biggest take-away from this, in my opinion, is that it's better to just type `struct foobar` instead of typedefing `foobar_t`. Structs should be treated dif
by Sir_Cmpwn 9y ago
The biggest take-away from this, in my opinion, is that it's better to just type `struct foobar` instead of typedefing `foobar_t`. Structs should be treated differently than scalars, and therefore you should write them differently. The #1 principle of any coding style should be to optimize for readability and clarity over writability and convenience.
Also, please limit your lines to 80 characters. https://sr.ht/toyc.jpg https://sr.ht/toyc.jpg
- nitrogen 9y ago> 80 characters Assuming indentation is counted against those 80, why not use a bigger monitor?
- Sir_Cmpwn 9y agoDid you see my link? More practically, a lot of people (myself including) will split their monitor vertically to consider lots of code at once, and talk about code in emails via patches on mailing lists and such where 80 columns is the norm.