r/AskProgrammers • • 1d ago

Am I crazy?

I'm working on a project at work. Relatively large database (for me), 35-40 tables, multiple levels of users, large-ish group 3000 users. My background is mechanical engineering and systems engineering, not software, but I have built a fair number of systems and smaller databases for 1-20users. My approach was write the schema, write the rules, workflow, permissions, test scenarios. Since this system is larger than anything I've done, and it's just me writing it, I want to not f*ck it up and have a plan to work on.

My IT guy told me everything I've done is a complete waste of time and I should have just "written a prompt and let CoPilot write the whole thing, it'll take like 2 minutes"

That has GOT to be wreckless, dangerous and ... insane right? I am planning on using Claude for a bunch of bulk coding, but not just giving it a prompt and letting it go. I've broken the system down to specific modules, and tests for each. My plan is to build one, read and understand the code, run my tests, and get a second user to try and break things. Then move on to the next module.

Am I crazy???

15 Upvotes

38 comments sorted by

8

u/EndlessPotatoes 1d ago

Getting AI to do it IS reckless, dangerous, and insane if you aren't experienced enough to do it to the required level yourself.

Best to figure it out yourself, and if you need to, use AI to help explain things to you or critique your plan and implementation. Do understand, though, that AI can have some strange ideas about how things should be done. It's only when you press it on the issue that it decides it's just regurgitated poor design from its training data. You likely wouldn't realise if it's giving you a bad plan.

Then in the future once you have a solid grasp of what you're doing and what you shouldn't do, then think about using AI to do it.

An experienced professional delegating to AI is offloading.

Anyone else delegating to AI is just outsourcing.

2

u/77Diesel77 1d ago

I like that framing. In mech at previous companies weve brought in consultants that had GREAT ideas and they gave us a plan and then left. It then took us 2-3 months to decipher what they came up with to figure out that their plans were impossible or just broken. Using AI to just over-the-wall a full system feels like a lot like that. 

I literally teach a class on planning and systems-engineering. I knew AI was getting better, but his reliance just seems terrifying. I'm a little worried to find out what other systems he's built that were fully ai-gen code

8

u/dkopgerpgdolfg 1d ago edited 1d ago

My background is mechanical engineering and systems engineering, not software

The field aside, the keyword "engineer" is very relevant.

insane right

Yep.

The software sector, both before "AI" and now, has a long-standing problem that too many morons are around. Too many hype whores and ultra-capitalists, too little people that have any resemblance of an engineering mindset, rigor, and/or any field-specific skill in creating good software. Plus the lack of required state certifications and consequences of fuckups, etc.etc.

Please continue your current path. We need more people like you.

2

u/77Diesel77 1d ago

Thanks. The guy is incapable of doing anything without copilot anymore and I was thinking this was just another one of his obsessions. I had little to no respect for him prior, but he was adamant that doing any documentation or planning before hand was irrelevant and a waste of time. Which... I just can't wrap my head around how any one could think that. My thinking is I get half way through and hit by a bus, then at the very least the next dev has a blueprint for what I was thinking. Or it works and I move on, then they have the intentions and a framework to figure it out. 

4

u/No_Profession_3125 1d ago

Even if you were, would it matter?

1

u/77Diesel77 1d ago

It's a sanity check. If I am crazy, then maybe I'd change my approach. If I'm not crazy and him suggesting I get 10-15k lines of code autogenerated in 2 minutes with a vague prompt is legitimately unhinged then I'd be more comfortable moving forward and continuing to ignore him.

 This project is right at the edge of my abilities and I was expecting a couple months writing/review in between other projects. The discussion I had with him was that this should take less time than getting a coffee and documenting a plan is actually bad practice. Half am I crazy half am I working at a place that exists in the twilight zone

3

u/BidoofSquad 1d ago

it sounds like it’s CRUD bullshit that Claude could shit out in an hour or two not gonna lie

1

u/77Diesel77 1d ago

It's got a fair bit more than CRUD. State logic, time logic, concurrency controls, compliance auditing. And update and delete arent allowed by requirements for the audit tracking needs

1

u/Kitchen_Dust2389 23h ago

Seems like a lot of that does not belong in a db lol

1

u/77Diesel77 18h ago

Thanks for spamming every reply with meaningless garbage. 

3

u/goomyman 1d ago

Your both right. Use AI to create a plan. Review the plan and use AI to implement the plan.

Using AI isn’t reckless.

1

u/77Diesel77 1d ago

I'm not an advocate for zero ai. I'm definitely planning on getting Claude to help. But his approach was literally don't plan anything just give copilot a prompt and tell it to be like something else (which as far as I can tell doesn't exist for my specific case). I was thinking using AI by just pointing it in a vague direction and say "gimme code" is reckless.

1

u/Kitchen_Dust2389 23h ago

"Doesn't exist for my specific use case" lol nothing new under the sun

1

u/77Diesel77 18h ago

Doesn't exist in a free open source, findable and relevant model. Nuance not exactly your strong suit?

3

u/nicolas_06 1d ago

In order of priority/importance

  1. be sure to understand the requirements and what the application should do first. Listen to you client, your users, ask lot of questions, get an understanding of the business.
  2. come up with an architecture/design that works well for the requiements/design and that ideally can adapt to new needs
  3. on specifics get your key concepts right like your DB schema and main queries
  4. implement
  5. optimize/adapt as necessary.

Honestly AI can help at every step.

You can ask AI for what is the typical debase / architecture / framework for this kind of application/need. You can ask what type of schema work well for this kind of needs like if you need to go the classical third normal form or if you want denormalized data for some critical queries for your app. You can also ask what is the typical important concept for the kind of app you are building. You can ask AI to review your choice and design too.

Later on, when you have a full specification, AI can check if everything is consistent and you can ask it if it find any issue and discuss it. You can also ask it to generate the code from the spec, likely with small batches.

When you test the application for performance for critical/typical queries, AI can put in place the testing framework and give you the performance report for your simulated users and depending of the result you can decide for the necessary hardware or see if you need to optimize some queries. AI can likely propose some solution or redesign/optimisations as needed.

You will do just fine. AI or not

I would say that 30-40 tables, 3000 users, it doesn't look like an application with that heavy usage. A decent design shouldn't be stressing the hardware too much. You don't speak about millions of users and most likely the 3000 users are not clicking everywhere all the time 10 time per second neither.

So the real focus really for me, AI or not, is to be sure you get what the application should do for the users, what are the requirements and ensure you have enough database knowledge to come with a decent design.

You also to get all the side things rights, like a decent CI/CD, release cycle, tests to validate things, logs to be able to debug users issues, monitoring, possibility to fallback if there an issue with the new release... This kind of stuff. All the processes around that will give confidence and peace of mind to everybody and show you are a serious software engineer.

1

u/77Diesel77 1d ago

Awesome thanks. Fortunately I'm both client and dev on this one so I can take my time. I've written some apps for iPhone and Android and took my time with them. This one is way bigger, and I don't want to mess it up. Thanks!!

4

u/armostallion2 1d ago edited 1d ago

I think you wasted time.

I am a professional software dev, I work on my company's billing api and the CMS that consumes it. I spend anywhere from $400 to $900 a month on llms, we use Claude Code and Github Copilot.

I usually start all my units of work prompting away. I ensure that I've given the agent all of the context, namely, adding the appropriate code repos to the convo and including all the asks from the business, all of the requirements, and then giving it additional context and bias by recommending or suggesting things right out of the gate.

I ask it to give me its thoughts first on what the approach should be. Opus 5.5 Extra High effort, usually nails it every time. I just iterate with it over its own work once it gets everything wired up.

It can even control the browser now, so after some guidance (I tell it to stop and ask questions whenever it's unsure about something), I have it doing all of the markup and other client-side code for me through our custom CMS which has its own abstraction of jsonified sql. Saved me days of work this past week.

We're no longer at the point of "but it hallucinates all of the time and makes mistakes". Yes, it'll get things wrong from time to time and that's why you're still needed. Knock it out and deliver higher quality work in less time, I don't see a problem yet. I spend the bulk of my time looking at the pre-published PR diffs and iterating there.

p.s. Earlier, when I said I give the llm all of the requirements, it's connected to our Slack, so I'll tell it to review the last couple of days of conversation with person x, y, and z, and look at the screenshot of the Jira ticket I shared, etc, for example.

p.p.s. The latest personal breakthrough for me was having it control my browser to keep an eye on our application logs after a deploy to make sure everything was business as usual. Took the burden off having to check it every 5-10 minutes at various sev levels to ensure I wasn't missing anything critical related to my change.

Keep an open mind, use the tools; you don't have to throw away your agency and judgement.

1

u/Kitchen_Dust2389 23h ago

Exactly, if you have an idea of what you want then a normal development cycle is fine with prompting only

1

u/smartcave 1d ago

You're thinking about it right. What your guy suggested was reckless.

But the agents can still be useful. Once you've specified what needs to exist and written tests that verify it, you can ask Claude to implement it. You will still need to review what Claude produces but it's quite capable of giving you a large fraction of the code you'd need to write. Then review all the generated code to see if it looks like what you would have written yourself, because you don't know which large fraction of what you want you get until after you review it

1

u/77Diesel77 1d ago

Awesome, thanks. I'm trying to treat the project as sub-modules that I can work through piece by piece. Even if AI could do it all in one, running fully custom non-peer reviewed code on my system I didnt build that no human has ever read just feels super wreckless 

2

u/bluefish1432 1d ago

I don't think you're crazy - if you want to build something that doesn't break and you're more comfortable with your eyes and hands doing the work than you are with running an agent in a harness, it's completely reasonable to take the approach you are.

What would be crazy is running CoPilot carelessly in two minutes like your coworker suggested without having the fluency and experience required.

2

u/zztong 1d ago edited 1d ago

While AI may well have done a decent job, I think you'll enjoy certain advantages for having taken an active hand in developing the schema. That's the bedrock of your application. What I might suggest is that have have a nice conversation about that schema with an AI to see if it has any advice. That is, you would welcome another set of eyes from a human architect, so why not have an AI take a look. You don't have to allow it to make changes. The resulting discussion, where it makes suggestions and you defend your design, might either improve your confidence in the schema or improve the schema itself.

I've not really come to trust CoPilot, mostly because it wasn't very swift when I first started to work with AIs. (Poor reasoning.) It might have gotten better, but I've not given it a second chance.

2

u/minneyar 1d ago

Well, that depends. Do you want a solution that is quick and dirty and mostly works, but will have weird bugs and you'll never be able to debug the parts that don't work? Are you under a time crunch and it has to be done right now, and you have something else you have to work on that is higher priority? Well, Claude is great at helping with that.

If you've got a clean, working solution, and you understand it well, and you learned something from what you made, then no, you didn't waste your time. I feel bad for programmers who apparently hate programming so much that they're willing to pay a bot to do their job for them, but badly.

Imagine a professional carpenter who, when thinking about making a table, decides to just go get one from IKEA instead. Sure, they've saved time, but was it worth it?

2

u/pvera 1d ago

I have been in this racket for 27 years and Claude still shows me that I don't know as much T-SQL as I think I do. Right this minute I am working on the second project I have had Claude build from scratch, including the database, and it works magnificently.

1

u/NefariousnessOwn8377 1d ago

Your approach is fair, best for it to be reviewed by a developer

1

u/ConnectAffect2346 1d ago

Well first of all the amount of tables doesn't really say how the edge cases are covered inside your system or if you made all the functions and procedures properly but i can definitely say that it is 10 times better to make the project yourself and invest into it few weeks to learn more and to grow as you build it rather than to let it be fast made, since i made few relational databases i did use ai to make one but it made zero sense to me and it didn't cover a lot of things i wanted so instead of trying to make it work somehow, i rather chose to make it again with my own hands alone, while ai might be good thing for certain other aspects, for security and data layers the best course is to just make it alone and test it out a bit if you want to make sure it is doing what you want it to do, while i am still a student i just wanted to share my experience from the smaller projects i made thus far and the experience i had from ai, while i may not have years of experience in the IT sector it should count for something, so i hope i helped 🙂

1

u/SadBookkeeper6220 1d ago

Nah, you’re right. The shit you are in is deep.

1

u/HomemadeBananas 1d ago edited 1d ago

I think the fastest and best approach is probably something in between.

Usually my workflow now is planning with the help of Claude a lot more than how you describe it. Claude is pretty good at coming up with a plan, then you can review and iterate before you let it start building, writing tests, doing some verification after.

If it’s some area in particular I’m more worried about, I review the tests too, I’ll say write tests for this case, verify this.

I wouldn’t just give some vague prompt and let it go off right away but also wouldn’t do so much before I even start chatting with Claude.

3000 users isn’t that many where I’d worry you’re gonna have some scaling issues, you need caching layers all perfect, you might miss some DB index and then it’s gonna be some big issue or something like that.

1

u/Immediate_Form7831 1d ago

You're not crazy. I feel that most people who complain about agents producing slop are exactly the crappy engineers who don't know how to actually work with an agent. You don't just prompt the agent and "let it go", you tell the agent what problem you are trying to solve, ask it to make an implementation plan, review it, ask questions about why it made the choices it made, ask it to make a clear plan of what PRs to write and what goes in which PR, then take one PR at a time and make sure you understand what the purpose is. Then, only then, you tell it to actually write some code.

Also, that second user? Ask your agent to produce counter-examples where your tests break. If you are testing that your code behaves correctly under condition X, ask the agent to produce an example where the test breaks if condition X does not hold. Agents are really good at that.

The software engineers which have a future in the business are those that take the coding agents and stand on them to be better software engineers. Any schmuck can use an agent to produce mediocre crap, but if you really want to make good stuff, you still need to know what you are doing.

1

u/kingvolcano_reborn 1d ago

I think your approach is fine, especially as you are learning. Maybe use an AI to review your schema and tests and test and see if it can find any weak spots? Also maybe involve it more in the future to discuss ideas and suggestion you have. Treat is as someone knowledgeable to brainstorm with, not something to offload all design and creation to.

1

u/Own_Age_1654 1d ago edited 1d ago

Assuming this isn't just some temporary project, or an R&D prototype where it's more important to move quickly than to have stability and data consistency, that's indeed absurdly reckless. Fast and loose is not what you want for your core data model, much less for authentication.

Even with AI, I wouldn't be surprised to see a thoughtful engineer spend even multiple days thinking through authentication if their requirements are nontrivial, unless they closely fit a shape they've already done recently.

As a bonus thought, for most single-person projects, dozens of tables is surprisingly many, and my ears also perked up when you said "multiple levels of users". Are you sure you're not over-engineering this? Over-normalizing? Putting things in tables that could just as happily simply be embedded JSON? Modeling things that don't need modeling at all? Supporting auth use cases that don't technically need to be supported? You'll rarely regret simplifying your architecture, but you'll often regret making it more complex.

1

u/ern0plus4 1d ago

Drop your full code to AI, and ask to describe it, detailed. You'll get a doc, which contains all your intent, design decision etc. If AI is wrong, just help them, and also consider make that part more simple.

1

u/Capital_Distance545 1d ago

Time is more important than quality since AI came out.

1

u/Kitchen_Dust2389 23h ago edited 23h ago

You should be able to run an engineering cycle just like you would manually using AI.
You do not need to be super hardcore about everything, just make sure you have the appropriate testing and checks before releasing to production (like you would anyway)

Use Fable 5.2 to plan it out. Do not try to handcode everything. Likely you already understand the appropriate places things should go. Use english and then engage fable to create it, the only thing crazy is that your IT guy said use copilot. Use a proper harness with proper access

1

u/lmayde 23h ago

I'd say the AI definitely could have done this as long as you are skilled enough to check it's work.

Also that seems like a lot of stuff that doesn't belong in the database to me.

1

u/NewInflation2121 19h ago

Your aren't crazy. I think AI has enabled a lot of ego driven managers and b-list coders to over estimate both their importance and intelligence. Somehow they got thru life without learning any lessons about taking too many shortcuts.

It's like letting any idiot build a house before we had any building codes.

I'd just wait, they'll create a massive problem, screw themselves, tank the company & reputation of these tools, then find something else to be irresponsible over.

1

u/LeDYoM 13h ago

No, you are not. The IT guy is.

1

u/Irazema_Radawick 8h ago

Quality engineer here, not a dev either. I did smaller version of this for our nonconformance tracking and it didn't write login or permissions myself, the tables went into play so SSO and the roles come from idP. I still bilt the append-only history by hand since we couldn't allow edits or deletes either.

My schema doc basically became the setup checklist.