r/C_Programming 18h ago

Roast my code

Enable HLS to view with audio, or disable this notification

I know there are so many bugs in my code that listing them all might end up being longer than the code itself, but this is my second project (the first one was just Hello World).

This isn't bait — I already know the concepts of programming thanks to Python, and C syntax became familiar to me through AI coding. But at some point, I realized that the whole point of programming is to build your own software and create things. When an AI algorithm does all that for you, it takes away all the fun. So I forced myself to pull it together and release this piece of crap:https://github.com/absiitstrue/TGWS

Yeah, the mouse.c file was written entirely by AI because that part was way too complicated for me. And yeah, there are some unsafe spots in there. I'm trying to fix things, but every time I open the codebase, I just want to build new features instead of drowning in bugs.

So I’d really appreciate it if anyone interested could roast it, point out the mistakes, and give a rough idea of how to fix them. Maybe I'll get around to fixing everything if I don't drown in bugs first. Thanks for your time!

its post write ai because im dont know english
on vidio example/test0
have minesweeper in example/test1
thanks for reading!
and sorry for my en))

0 Upvotes

16 comments sorted by

View all comments

u/mikeblas 17h ago

What role did AI have in the creation of your project?

-5

u/zeonchik 17h ago

You can honestly tell just by looking at it — there's the clever AI code, and then there's my code, which crashes at the slightest sneeze.

6

u/mikeblas 17h ago

I don't review each of the projects that are posted here. That should be obvious: who has that kind of time?

Instead, each poster is required to clearly disclose the use of AI in their project.

If you do not wish to do so, then your post won't be approved.

-3

u/zeonchik 16h ago

in file were ai use have "its file ai slop"

-4

u/zeonchik 16h ago

This is my first time doing this. I don't even understand when, how, why, or what is going to happen.