Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
cesc19891044yIn the real world there's a lot of ugly code everywhere and people get paid for that.
It is just a moral dilemma which one as a programmer decides to live with.
Dont be so hard with yourself, you're learning.
yarwest28244yI would say that you should earn points for following the assignment, and additional points for pretty code. But then again exams are on a time limit so that is something that should be incorporated.
I guess this is where projects come in since they can be graded for code quality more easily.
Well, the thing about project work here is that we get graded after effort.
So we had a project with the whole class (20 people) for an semester. Depending on how many lines, methods or classes you wrote, you got your grade.
Then maybe you should make it a point to write the ugliest piece of shit code you can in those clases. Make the teachers earn their pay... 🤓😱😬
'Basically working' is how development happens in my experience.
As a developer, my job is to deliver a project. It isn't to write pretty code, it's to write whatever code is necessary to meet the project requirements.
Most of the time you can plan what you're going to do, so delivering can be done with pretty code, but sometimes it can't - and that's when you make technical debt.
Sometimes you need to take on a bit of debt, but you always have to pay it back, with interest.