3 ms·
I think for us laymen, the most difficult thing is to find a good reason to use C frequently. I have a few "legitimate" (in the sense that C is actually suitabl
by markus_zhang 7y ago
I think for us laymen, the most difficult thing is to find a good reason to use C frequently. I have a few "legitimate" (in the sense that C is actually suitable for those) non-embedded projects that I'd like to take on in the future when I have time to pick up C:
1 - Recreate some of the Linux command line tools, including a command line interface similar to BASH;
2 - Implement a fully functional compiler or byte-code Virtual Machine for a stripped down scripting language;
3 - Write a key-value data store
Sadly I really can't name any project that is not system programming. I saw some projects that use C for backend (CGI style?) programming or game programming but I believe there are more suitable tools for either of them.
BTW I also found it very clear to use C or a stripped down version of C++ to teach myself Data structure.
- yters 7y agoC + knowing the Linux API and what is done in kernel vs user space can lead to very efficient Linux software. Since much consumer software these days is a webapp with a Linux backend, this sort of embedded optimization can make good consumer sense.
- markus_zhang 7y agoIt's a pity that it's almost impossible for a non programmer to find a C/C++ job nowadays. Much of the deeper knowledge takes too much time and effort to master from outside of the field so I guess most people don't go this way.
- mxschumacher 7y agoA lot of widely used recent CLIs have been implemented in Go or Rust, e.g. I don't think I would choose C for such a task these days. https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep https://github.com/sharkdp/bat https://github.com/sharkdp/bat https://github.com/jesseduffield/lazydocker https://github.com/jesseduffield/lazydocker https://github.com/ogham/exa https://github.com/ogham/exa https://github.com/docker/cli https://github.com/docker/cli https://github.com/cli/cli https://github.com/cli/cli