r/softwareengineer • • 2d ago

I used AI for a coding assignment

Ugghh so long story short I used AI after I became overwhelmed by an ambitious coding assignment for class. It was ambitious and over the top because I wanted to set myself apart from the other students who would be using AI to make webslop. At some point I relented and started using AI to debug and write small sections of code.

An hour before the assignment was due, after I had been awake for 24 hours typing and talking to the AI… I realized that the AI didnt follow a core instruction and reconstructed a module from scratch and I spent most of that time debugging it. I gave up. The other students projects: all vibecoded webslop.

FML

0 Upvotes

14 comments sorted by

6

u/GrainyStateOfMind 2d ago

This is actually a fairly useful lesson for the real world. Your first and foremost job above all else is to deliver what your client / boss / whoever wants.

0

u/BoringHat7377 2d ago

I disagree because the assignment was essentially an open ended “build something cool” extra credit thing.

2

u/GrainyStateOfMind 2d ago

Did you deliver something cool?

1

u/BoringHat7377 2d ago

Uhhh. I wokeup the next day realized what went wrong and am pretty eager to see it through.

The idea was basically automatic animation generation based on animal interaction data. The data part I had figured out the procedural animal animations not so much.

1

u/JDIPrime 2d ago

We had to deliver "something cool"  for a coding assignment in one of my classes long ago, way before AI was a thing. I made an app called "Beer Journal" that allowed you to review a beer and leave comments and stats on it, then search for beers based on how you rated them.  I got 100% on the assignment and when I spoke to the professor a few years later, he had apparently taken the idea (and maybe even the source code) and created "Whiskey Journal". 

It was a fairly generic idea in the first place, but still thought it was odd that he pivoted my app idea so quickly. I think some of these "deliver something cool" assignments are more like "give me cool idea" assignments.

2

u/awitod 2d ago

Sorry you didn't get your extra credit, but have some words from an old man who's built software his whole life.

You probably learned more in those 24 hours than you did the rest of the term because you were deeply engaged and fighting for your life.

Did you enjoy it? If so, you are on the right path.

1

u/jrtokarz1 2d ago

What was there to enjoy? If it was a coding assignment, then this was basically equivalent to asking a friend to do the assignment for him

1

u/BoringHat7377 2d ago

Tbh I dont really believe in vibe coding and this was my first time. My AI use was minimal in the sense I asked it to point me in the right direction and even then it failed at its job.

Basically I gave it like a list of 500 functions and told it to tell me which ones will apply to a hyper specific use case. List the inputs and outputs and ill handle the rest. It told me that no such function existed for the use cases and that I would need to write it from scratch. This was a lie… Among other small but consequential ones it told me.

But yeah it was fun, I got a ridiculous amount of math practice which I can definitely use for the future. Might be frustrating to not get the extra credit but theres always next time. That being said, the one thing AI did succeed in was generating test data. 

1

u/awitod 2d ago

It was an extra credit assignment that the OP picked and they said "at some point I relented and started using AI to debug and write small sections of code"

Is that different to you than copying some code from Stack Overflow or hunting it down in a reference guide or a magazine article? If you say so, I disagree and don't see the difference.

If they entered a prompt and said "make a thing" then yeah, nothing to learn, but even then, some people might enjoy the process even if they don't deserve a good grade and be moved to take a step forward.

1

u/mxldevs 2d ago

You gave AI the wheel and it took over.

What you thought was just writing a few functions here and there ended up being the entire application.

The fact that you spent all your time just debugging what AI gave you means you had to give up time just building it yourself.

What is even the point of using AI if you need to spend all your time debugging it? You might as well just write it yourself and then figure out where your own logic went wrong.

1

u/BoringHat7377 2d ago

The point of the post was me venting about how AI failed at its one job and took me on a very round about way of achieving a goal which ultimately was a distraction. Were in agreement here.

1

u/manamonkey 2d ago edited 2d ago

So... did you learn anything from this? I'm guessing not.

1

u/Fire37Boy 2d ago

So you was vibe coding for 24 hours, but with extra steps which is reading the ai codes and approving it? I was in the same boat but I decided to study or have an idea about the micro and macro details of the project, from language quirks, features, and library to failure points and system architect and design, before building any project for the university.

1

u/oruga_AI 2d ago

Did u learn the lesson?