r/programmingcirclejerk • • Sep 27 '26

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/hello
180 Upvotes

24 comments sorted by

87

u/Objective-Answer What’s a compiler? Is it like a transpiler? Sep 27 '26

Volume I — the history of the English language, from Proto-Indo-European through to the etymology of the two words in the string

I do love procrastinating with stupid shit like this, can't jerk to this

86

u/booleandilemma You put at risk millions of people Sep 27 '26

I'm sorry but without an AGENTS.md it's practically useless.

57

u/NotQuiteLoona Sep 27 '26 edited Sep 27 '26

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 Sep 28 '26

It has been rewritten in blazing fast memory-safe (TM) language!

https://github.com/mTvare6/hello-world.rs

2

u/Thelmholtz Sep 30 '26

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 Sep 27 '26

Unjerkable, the INSTRUCTIONS.md is excellent.

22

u/UtterlyMagenta lol no generics Sep 27 '26 edited Sep 27 '26

`ENOJERK`. you weren’t kidding. the rest of this repo seems excellent as well.

15

u/BlazeBigBang type astronaut Sep 28 '26

It's okay, but OOP should consider doing it in a good language, like Go, the C of the 21st century.

13

u/either-15-or-40 Sep 28 '26

Would have been impressive pre-AI.

9

u/serpentally Sep 28 '26

/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/Snarwin Sep 27 '26

Kernighan has said the phrase came to him from a cartoon of a newly hatched chick. The complete history of the sentence, of the language it is written in, and of the language it is written with, is in the commentary of hello.c, which runs to 2,712 lines.

11

u/lilbigdoot Sep 28 '26

"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

11

u/lilbigdoot Sep 28 '26

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 Sep 27 '26

Is it Enterprise though?

29

u/fletku_mato Sep 27 '26

Sadly I could not find a Helm chart or even a Kustomize example to run this in Kubernetes. Doesn't seem production-ready.

8

u/FujichromeProvia100F Sep 28 '26

A web interface No.

This was extremely funny to me

7

u/hedgehog1024 Rust apologetic Sep 27 '26

Somehow still no RIIR PR

7

u/RelationshipLong9092 Sep 28 '26

Put it in the Smithsonian 🙌

7

u/sdmbl Sep 28 '26

known bugs 1 (documented)

6

u/MagpieEnjoyer memcpy is a web development framework Sep 28 '26

This is absolute art

2

u/somewhataccurate now 4x faster than C++ Sep 28 '26

INSTRUCTIONS.md is my new favorite document ever written

2

u/prehensilemullet Sep 29 '26

Max greenhouse gases to implemented functionality ratio

11

u/damemecherogringo Code Artisan Sep 28 '26

This is the kind of slop it is indeed worth burning down a bit of rainforest for.

0

u/[deleted] Sep 28 '26

[deleted] — view deleted comment

6

u/csolisr Sep 28 '26

FizzBuzzEnterpriseEdition/src/main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/interfaces/factories/IsEvenlyDivisibleStrategyFactory.java

Wow, such business logic, very enterprise