3 ms·
C, to me, requires a lot of discipline about good coding style and conventions. I personally like that a lot, even though, of course, it sometimes causes one to
by tronje 11y ago
C, to me, requires a lot of discipline about good coding style and conventions. I personally like that a lot, even though, of course, it sometimes causes one to shoot oneself in the foot. But, and I can't point to exactly why, I don't think I want to change anything.
Maybe Rust or something new will come along sometime soon to fix all the issues that exist with C.
Oh, and for those who haven't seen it, there was a cool guide to writing neat, modern C on here a few months ago.
https://matt.sh/howto-c https://matt.sh/howto-c
Worth a read in my opinion.
- userbinator 11y agoI personally like that a lot, even though, of course, it sometimes causes one to shoot oneself in the foot. But, and I can't point to exactly why, I don't think I want to change anything. I feel much the same way, and I think it's the general principle of freedom over security that makes it fun. You can do lots of things that other languages wouldn't allow, and despite not needing to most of the time, the fact that such power is there if you want to use it is what I like. It's a bit of a refreshing environment compared to all the other "safe" languages.
- adwn 11y ago> [...] I think it's the general principle of freedom over security that makes it fun. That's okay, just please don't have this attitude while writing production code. If my system is compromised because of yet another buffer overflow exploit in some C library, I don't care if you felt the wind in your hair while programming it.
- ue_ 11y ago>https://matt.sh/howto-c https://matt.sh/howto-c I think Keith Thompson's (not related to Ken Thompson) critique of the link you posted is an even better read: https://github.com/Keith-S-Thompson/how-to-c-response https://github.com/Keith-S-Thompson/how-to-c-response
- hatsunearu 11y agohowto-c has a bunch of problematic opinions which aren't liked by the community. The crap about never using ints, longs, etc has been debunked over and over.