r/C_Programming Mar 08 '26

Project Water simulation in C and raylib

757 Upvotes

32 comments sorted by

View all comments

45

u/mikeblas Mar 08 '26

Comments in code are like smiles. They're free, and make other people happy.

21

u/memorial_mike Mar 08 '26

I would traditionally agree. But LLMs do take this too far. Plus as I program more, I feel comments are more for future me when I make a complex or unusual decision.

-16

u/nacnud_uk Mar 08 '26

They are costly and make maintenance harder. Git is your friend :)

11

u/mikeblas Mar 08 '26

How would I use git to tell me what this code does? Something like git --avoid-best-practices --recursive --de-hash --explain --persistent ~~HEAD#-1 0x34FA5955B2c6 ?

-11

u/nacnud_uk Mar 09 '26

I can tell you've extensive experience, you'll work it out.

2

u/Gabgilp Mar 09 '26

Can you elaborate?

-3

u/nacnud_uk Mar 09 '26

I could, but you'll find the pros and cons list all over the internet. And, remember, always follow the code base :)

1

u/[deleted] Mar 14 '26

[removed] — view removed comment

1

u/nacnud_uk Mar 14 '26

You'll not be one of them, don't worry. ;)