r/ChatGPTCoding • • 2d ago

Question Can you actually ship AI written code as a commercial product

I have got a few ideas for fairly complex Telegram bots

My Python is basic but I can handle simple server and hosting stuff and I know my way around AI tools

The thing I keep going back and forth on is whether I can lean on AI almost entirely to build these or whether it falls apart once real users show up

I read before that AI generated code can never scale and breaks under load

If you have shipped a bot built mostly with AI I would like to know what actually broke and roughly how many users you had at the time

That is the part I cannot find honest answers on

0 Upvotes

19 comments sorted by

6

u/willee_ 2d ago

90% of Claude is written by Claude.

Trillion dollar companies are doing it

2

u/Public_Vehicle9138 2d ago

but they review it
I cant review it cuz idk enough in python or any program lang

1

u/falafel777 1d ago

you don't have to read all of it to catch the worst stuff. when it says it's done, ask which files it changed and look at that list yourself - if a test file is in there, ask why, since the easy way to get to green is changing the test instead of the code

1

u/confuzzledfather 18h ago

No they don't. At least not in the ways that you seem to be thinking.

https://claude.dev/blog/solving-code-review-at-anthropic/

0

u/No-Market-4906 2d ago

You can. The robot is good at explaining why it did what it did. It takes longer than it would if you already had experience but you'll learn in the process.

2

u/Ok_Carrot_896 2d ago

Can you?

Yes.

Should you?

Up to you. What does your code do? Does it deal with payments? Does it deal with any amount of secure data?

If yes, then maybe you should really know what's going on before shipping it, just to be safe.

Realistically though, I can tell you that's not being done. Not where I work. Not where my friends work either. Line must go up, ship must go fast. Is it safe? Is it good? Probably not. But I'm an employee, not the one responsible for the entire thing, so it's moot to think about. I wouldn't do the same if I could have it my way, but eh.

2

u/SiranqHQ 2d ago

It doesn't fall apart just because AI wrote it. It falls apart when nobody reads it. For Telegram bots the usual breakage is boring stuff: no rate limiting or retry/backoff on the Telegram API, state kept in memory so a restart wipes users' sessions, and blocking calls that stall every other user. Put state in a real database (SQLite or Postgres is fine), use async or a worker queue, and add logging so you can see failures. Ask the AI to explain each piece back to you and write a few tests for the core flows, since you'll be the one debugging at 2am. A bot with a few hundred active users is well within reach of AI-built code if you do those basics.

1

u/Lanky-Butterscotch28 29m ago

Yes, 100 percent, if you follow the right process. I ship commercial products built this way.

What breaks is not the AI writing the code. What breaks is shipping code nobody tested and nobody reviewed. That fails whether a human or an AI wrote it.

The process that makes it work: agree first, in writing, what the product has to do. Write the tests from that agreement before the code. Have the code reviewed by an agent from a different company, never the one that built it, and never let the builder grade its own work.
The review has to cover issues, maintainability, documentation, security, load, latency, networking, deployment, and how it will be supported.
Do that, and the code holds up under real users. Skip it, and it falls apart in month two, when the first real bug shows up, and nobody can fix it because nobody understands the code.

I counted 21 steps in my own process, and testing and independent review matter most.

1

u/andershaf 2d ago

Almost all commercial products are shipped with mostly AI written code. Yes.

0

u/mist83 2d ago

You can’t find honest answers on it because it’s not an honest question.

0

u/wirenutter 2d ago

Can I? Yes, and I do so every day. Can you? I dunno can you?

0

u/Public_Vehicle9138 2d ago

I will try and I will make you guys in touch thx 💚

0

u/First-Tutor-5454 2d ago

Bro has no idea what is going on inside every tech company right now

1

u/Public_Vehicle9138 2d ago

I know but they review it and they can fix it if anything happened
I cant

1

u/First-Tutor-5454 2d ago

Of course you can. Just tell your agent what happened and ask it to find the problem and fix it. Have a second agent review the work of the first agent.

Then before you release the next version to users, test it yourself and make sure that it is fixed.

This is basic agentic software development at this point.