top | item 46539527

A reference-grade C "Hello World" project

5 points| synalice | 1 month ago |github.com

3 comments

order

Someone|1 month ago

- You may want to look at https://www.gnu.org/software/hello/ for inspiration. One thing it does that this doesn’t is internationalization.

- if you’re going to check for errors, you should not discard errno if fputs fails

forgotpwd16|1 month ago

Every language/framework should had something like that. Yes, cookiecutter exists but it's much nicer having a pre-ready base that can just `git clone` and start hacking.

synalice|1 month ago

A (deliberately) over-engineered, reference-grade C "Hello World" project that aims to follow most modern best practices.

I feel like this could be a pretty good template for many new C projects in 2026. Some choices are intentionally opinionated, and I'd be interested in hearing where people disagree.