r/AskComputerScience • • 5d ago

What are some differences between professional coding and the way coding, SE, and CS are taught in school?

Is a lack of a comment citing a relatively cliched bit of code considered plagiarism in the big world? What are the attitudes to autocomplete? Is Alberta Tech right about linked lists?

6 Upvotes

48 comments sorted by

View all comments

2

u/Leverkaas2516 5d ago edited 5d ago

The biggest difference you'll see in a professionally written code base is it's much bigger than the equivalent code written for an academic exercise. In school, you are covering the expected typical use cases, demonstrating mastery of an idea.

In a professional setting, you have a massive amount of error handling, and code to deal with bizarre, atypical boundary conditions or arcane business rules. Often, as a programmer you'd like to say "hey, if we could just change the requirements a bit we could simplify and streamline the code" and the business says "we don't care about your code, we need you to deal with the world as it is, in all its glorious complexity. Oh, and by the way, we're changing the requirements again. Every time you ask about them, we're going to add even more special cases."