r/cprogramming • u/jscottbee • Jun 10 '26
Releasing old code I have written on GitHub. Should I use AI to cleanup and comment first?
Hello,
I'm planning on releasing some old code I have written on GitHub. Should I use AI to clean up and comment, and document first? The code was written over 30 years, with me at different times and stages in my life that would have reflected on my style or lack thereof, at the time. Most of the first batch is an editor library and editors I have written with it. This is all hobby code, but I worked on it seriously over the years.
0
Upvotes
30
u/jumpingmustang Jun 10 '26
I wouldn’t. It’s your work, own it. Who are you trying to impress? Why devalue decades of work with the robot? It’s a reflection of you and your progression and skill. Way cooler to me than having your art drawn over by somebody else.
3
u/Itap88 Jun 10 '26
Depends on why you want to release it. To show your journey? Leave it as is. To show the inner workings of a project or just brag? Clean it up, but you don't have to do it all at once if it feels like a lot.
But if it's not worth cleaning up yourself, it's not worth cleaning up at all.
22
u/sindisil Jun 10 '26
No. If someone wants to get a slopified view of your code, let 'em do it themselves.
I agree with u/jumpingmustang the real value of the code is as an artifact of human creation.
12
u/arkt8 Jun 10 '26
If you will release the code under an Open Source license... think first if worth to put in GitHub... consider alternatives like Codeberg.org, SourceHut or even Gitlab.
0
u/sreekotay Jun 10 '26
Voice of dissent here - I think it's useful and good.
I did the same thing recently: had some code I'd written 10+ years ago I'd always been meaning to release.
Used an LLM to clean up some make files and do some light documentation and a runner to test it.
The alternative was going to be bit rotting privately.
https://github.com/sreekotay/bffsree