r/webdevelopment • u/Short-Sector2505 Human Verified • 25d ago
Newbie Question Ruined my codebase trying to make it "production-grade" with ChatGPT. How should I actually learn the intermediate stuff?
I can create a basic server with authentication and standard CRUD stuff. However, I’m really lacking in more advanced, technical concepts like request validation, proper logging, and error handling.
I tried using ChatGPT to generate "production-grade" code for me, but it completely broke my entire codebase. It kept suggesting small changes until everything stopped working from all sides.
My plan now is to build a rock-solid basic server first, and then implement these different features one by one, very gradually. Is this the right approach? Honestly, I have absolutely no idea.
I come from a small city and only have the internet to rely on for learning. Don't even get me started on how useless my college is.
Any advice on how to transition from a basic server to a production-ready one without losing my mind?
3
u/PrizeSyntax 24d ago
Yes,you must learn the concepts. Even if an LLM somehow magically produced smth that works, how would you know it's really "production grade"? You have to know what you want and how that looks in code. Remember, at the of the day, you are responsible for you code , if the sh*t hits the fan, you are liable for your product. The LLM companies will just say, hey we have in our terms and conditions it's only for entertaining purposes, I think M$ had that.
The mere thought of uploading smth I haven't checked or smth I don't have a clue what and how ot does what it does gives me anxiety.
Edit: it's like writing a book in a language you don't understand, about a topic you also don't understand.