What C Coding Style Do You Use (k&r, C89, C99, Etc.) and Why?
Posted2 months agoActive2 months ago
Techstory
calmneutral
Debate
20/100
C ProgrammingCoding StandardsSoftware Development
Key topics
C Programming
Coding Standards
Software Development
The post asks about the C coding style used by HN users and their reasoning, sparking a discussion on coding standards and personal preferences.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
32m
Peak period
2
0-1h
Avg / period
2
Key moments
- 01Story posted
Oct 29, 2025 at 8:59 AM EDT
2 months ago
Step 01 - 02First comment
Oct 29, 2025 at 9:31 AM EDT
32m after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 29, 2025 at 9:51 AM EDT
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45746271Type: storyLast synced: 11/17/2025, 8:08:21 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
For my own projects, my preferred style isn't purely any of the ones you list. It's a mongrel style. I do it that way because I choose my style elements to most closely match the way my brain works.
I havent coded in C in over 10 years now. I view it as a dead language. If you really need C-like language. Definitely go rust, no question.
Today if im not coding in python, it's html/css templates being used by python.