3 ms·
I get that this is not a popular opinion these days, but I like C. Quite a bit, actually. I can get stuff done reasonably quickly, don't have to futz around w
by big_chungus 7y ago
I get that this is not a popular opinion these days, but I like C. Quite a bit, actually. I can get stuff done reasonably quickly, don't have to futz around with multiple inheritance (C++) or where to call out to C anyway (python). There is so much more tooling behind C than Rust, or Go, or Zig (though I've been looking at Zig as a replacement). C isn't as bad as everyone makes it out to be, for personal stuff. I'd be a little more careful in group projects, but there's a reason it's still around. You do have to be careful and do a good design, but you should be doing a design anyway.
Some day, C will be deposed. Something better will show up and gain traction. On that day, I will happily switch to the new better thing; but for now, C meets my requirements pretty well.
- journalctl 7y agoIt’s not unpopular to like C, and nobody ever said C is bad for personal stuff. Legitimate criticisms of a tool aren’t meant to be taken personally. I can say: “C happily lets you write off the end of arrays”, which is a valid concern, 100% true, and has no bearing on whether or not you should use the language.
- non-entity 7y agoI didn't even realize C was so unpopular till recently. I kinda figured industry wise, C++ was much more common, but there seems to be a lot of stuff still written in C (i.e. many widely used kernels). I can understand was people would be apprehensive to C, but C++ just seems extremely bloated and I just haven't been able to get into it.
- krapp 7y agoI can see the value in C, especially for API wrappers and such, but it's entirely possible to just use a minimal set of C++ and avoid bloat. Simple templates, a vector math library with operator overloads, function overloads and std::vector alone are most of what you'll probably want to use from C++. Maybe std::unordered_map as long as you preallocate space for it. It doesn't have to be hairy.
- Keyframe 7y agoI like C as well. I’ve been working it for a long-ass time, enough to be comfortable with it. Two immediate things I would love would be overloading (but maybe not) and something lighter compared to ICU4C when dealing with text processing. There are nice things like SDS, but not even close to what ICU does. It might not even be possible to do everything ICU does in less weight anyways.