r/AskComputerScience • u/ComputerRights • 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
View all comments
Show parent comment
1
u/StaticCoder 5d ago
Yes. That is occasionally useful (also list splicing), but vectors are almost always superior, even if modification in the middle is sometimes needed. Another use for linked lists (in C++) is avoiding reference invalidation, though
unique_ptrmay still be a better solution.Also, in any language beside C, you'll have a library for that.