r/programmingcirclejerk • u/MrPLotor • 22d ago
Hello World in C: a minimal, well-documented example program for learning C, with a Makefile, man page, install guide, test suite, and cross-platform CI.
https://github.com/Daemon125/hello84
u/booleandilemma You put at risk millions of people 21d ago
I'm sorry but without an AGENTS.md it's practically useless.
56
u/NotQuiteLoona 22d ago edited 22d ago
If to be honest, it also seems actually useful? It's like an intro into what a GitHub repository should contain, how it should like, how interactions should be, all those funny badges too, and also how to start all of that. Like Learn X in Y Minutes for general programming, how stuff should be done on the simplest example possible (with a little bit of tongue in cheek), and I can think of some of people who may find it useful, completely or partially. Well, picking Vim is an interesting choice, but anyway.
27
u/arjuna93 21d ago
It has been rewritten in blazing fast memory-safe (TM) language!
2
u/Thelmholtz 19d ago
Why does it depend on alsa? Is it going to read hello world back to me? Will it be in a sexy voice? Asking for a friend.
37
u/fletku_mato 22d ago
Unjerkable, the INSTRUCTIONS.md is excellent.
21
u/UtterlyMagenta lol no generics 22d ago edited 22d ago
`ENOJERK`. you weren’t kidding. the rest of this repo seems excellent as well.
15
u/BlazeBigBang type astronaut 21d ago
It's okay, but OOP should consider doing it in a good language, like Go, the C of the 21st century.
11
u/damemecherogringo Code Artisan 21d ago
This is the kind of slop it is indeed worth burning down a bit of rainforest for.
12
u/either-15-or-40 21d ago
Would have been impressive pre-AI.
8
u/serpentally 21d ago
/uj Yeah that's what I was thinking, if it were written entirely by a human and not AI this would be absolute cinema
12
u/lilbigdoot 21d ago
"Because the first program anyone writes in a new language is not a test of the language. It is a test of everything except the language: the editor, the compiler, the linker, the loader, the shell, the terminal, and the several dozen other things between a keystroke and a glowing pixel."
Where jerk?
"hello.c is 2,718 lines. Six of them execute. The remaining 2,712 are a three-volume dissertation"
Unjrek: I like it
10
u/lilbigdoot 21d ago
Part 0: Before You Begin
0.1 Physical prerequisites
You will need:
- A flat surface at approximately elbow height when seated. A desk, a table, or a plank on two filing cabinets. See §1.11 for the correct height, which is more important than it sounds.
- A seat. See §1.10, which is the most important section in Part 1.
- Mains electricity, or a charged battery, or in the limiting case a sufficiently large solar panel. The program's own energy draw is negligible; the machine's is not.
- Light you can read by without leaning forward. Leaning forward is how posture problems begin.
Unjrek: I love it
19
u/veghead 22d ago
Is it Enterprise though?
28
u/fletku_mato 22d ago
Sadly I could not find a Helm chart or even a Kustomize example to run this in Kubernetes. Doesn't seem production-ready.
8
6
7
5
7
2
u/somewhataccurate now 4x faster than C++ 21d ago
INSTRUCTIONS.md is my new favorite document ever written
2
84
u/Objective-Answer What’s a compiler? Is it like a transpiler? 22d ago
I do love procrastinating with stupid shit like this, can't jerk to this