August 25, 2021
> most people aren't doing math around the value 2^31, but they do a lot around the value 0

Very true. I have shifted from looping 'N-1 to 0' to looping 'N to 1', naming the loop variable ith and not i, making 0 a natural sentinel value for ith in C-style (ith = N; ith > 0; --ith).

The above is part of a late realization for me, as to how under-used and mis-used naming conventions are in programming. I appreciate "object-oriented style" C even more now for this reason (bespoke code in commercial settings, I wouldn't know about glib/gtk).

Maybe -betterC with template support suffices for most programming use-cases (and we should be using dynamically typed languages for everything else).
1 2 3 4 5 6 7 8
Next ›   Last »