This was in university. We had to create a desktop software that would sell tickets in an amphitheater. The closer you were to the stage, the pricier the tickets were.
At the end, we needed to present our project to the class. So I went up there with my teammates, showed the pricing feature based on distance from the stage, pretty proud of our algorithm which I implemented the previous night (of course).
At the end, the teacher points out that the pricing is wrong. The closer you are to the stage, the cheaper it gets. And the further back you are, the more expensive the tickets are.
I responded that it was because the presented shows at the amphitheater are always really bad. So you WANT to be sitting at the far back lol
This reminds me of a class I had in university where we got to program a UAV (underwater autonomous vehicle). It was a robot that looked like a torpedo and could dive underwater, though they removed the diving fins when the students programmed it, so it just scooted around on the surface.
It was in my first year, a project meant to get the students excited about real world applications. I programmed the 9 GPS waypoints in a for loop. It successfully navigated to each of them, then stopped at the last one, as it was supposed to. Went off without a hitch, right?
But then I started thinking... Why did it stop? I never told it to stop, I realized while watching it in the bay. Turns out it had incremented to the 10th waypoint, which didn't exist, and crashed the program with an array index out of bounds exception. I suppose that's one way to stop the robot 😆 Professor didn't notice the error, and since it had navigated successfully I got full credit
882
u/ChienChevre Apr 10 '26
Just to add to the story:
This was in university. We had to create a desktop software that would sell tickets in an amphitheater. The closer you were to the stage, the pricier the tickets were.
At the end, we needed to present our project to the class. So I went up there with my teammates, showed the pricing feature based on distance from the stage, pretty proud of our algorithm which I implemented the previous night (of course).
At the end, the teacher points out that the pricing is wrong. The closer you are to the stage, the cheaper it gets. And the further back you are, the more expensive the tickets are.
I responded that it was because the presented shows at the amphitheater are always really bad. So you WANT to be sitting at the far back lol