To become a good C programmer (2011)
fabiensanglard.net
To become a good C programmer (2011)
1–10 of 16 posts
Re: To become a good C programmer (2011)
#2Integer conversions, literals, unhygienic macros, inconsistent library, overflows, zero-ended strings are all very very fastidious to work with.
I really hope that Zig will grow up because it seems the best promising alternative to C right now. In 20 years or so it might even get a significant market share... Then it will be the turn of POSIX and by 2100 low level system programming will be fixed
Re: To become a good C programmer (2011)
#3As much as C is fantastic to work with, as the general idea of a low/high level language whose compilers are easy to implement, its pain points are annoying. Integer conversions, literals, unhygienic macros, inconsistent library, overflows, zero-ended strings are all very very fastidious to work with. I really hope that Zig will grow up because it seems the best promising alternative to C right now. In 20 years or so…
Re: To become a good C programmer (2011)
#4As much as C is fantastic to work with, as the general idea of a low/high level language whose compilers are easy to implement, its pain points are annoying. Integer conversions, literals, unhygienic macros, inconsistent library, overflows, zero-ended strings are all very very fastidious to work with. I really hope that Zig will grow up because it seems the best promising alternative to C right now. In 20 years or so…
I don't want to be that guy, but have you tried Rust? If so, what makes it not the C replacement for you?
Re: To become a good C programmer (2011)
#5Re: To become a good C programmer (2011)
#6Re: To become a good C programmer (2011)
#7As much as C is fantastic to work with, as the general idea of a low/high level language whose compilers are easy to implement, its pain points are annoying. Integer conversions, literals, unhygienic macros, inconsistent library, overflows, zero-ended strings are all very very fastidious to work with. I really hope that Zig will grow up because it seems the best promising alternative to C right now. In 20 years or so…
Re: To become a good C programmer (2011)
#8K&R is full of gems, cannot recommend that enough for C. Great not only as reference but initial learning. It’s also so humbling that something 40+ years old (published ‘78) is still used so frequently today.
Re: To become a good C programmer (2011)
#9Earlier quoted context omitted.
I don't want to be that guy, but have you tried Rust? If so, what makes it not the C replacement for you?
Rust is far more complicated in every aspect.
It’s always good to hear others experience.
Re: To become a good C programmer (2011)
#10FFS, use C11 or newer. Even if you're writing for consoles and weird microcontrollers, the compilers have mostly caught up.