r/computerscience • u/rikulauttia • Mar 16 '26
What’s one computer science idea you understand much better now than 5 years ago?
For me, a lot of CS ideas feel very different once you’ve actually built things.
What’s one that changed for you?
83
Upvotes
37
u/frat105 Mar 16 '26 edited Mar 16 '26
Recursion is not a process that happens "over and over again". There are a lot of terms like this that commonly get misused when you are new to the field. Parameter vs argument, deprecation vs "broken". And actually on second thought, even as you progress in your career there are a lot of concepts that have been so contaminated with incorrect usage/definition it can get worse because people constantly misattribute them in meetings/code reviews/calls, etc..
33
u/pecp4 Mar 16 '26
state machines and, more generally, graphs. once you “get” it, you see them everywhere and you wanna kick your old self in the ass for writing all those systems with distributed, implicit state.
60
u/aka1027 Mar 16 '26
Good languages don’t matter past the syntax, all code is the same once you understand the syntax.
9
u/Dr_Dressing Computer Scientist Mar 16 '26
Everything that is fundamental, I didn't understand at all, five years ago.
Languages and automata, architecture, programming on several levels, ASTs (and by extension, interpreters, compilers, transpilers, etc), databases, safety and liveness. All of these ideas are things I didn't understand at all, five years ago.
So, one collective idea I didn't understand, would be computer science as a whole. I thought it was a fancier software engineer education.
18
u/Magdaki Professor. Grammars. Inference & Optimization algorithms. Mar 16 '26 edited Mar 16 '26
Pretty much everything related to my research. If that were not true, then that would be an issue since the goal of research is to reveal a greater understanding of our universe.
So:
3
u/[deleted] Mar 17 '26
Probably the Church-Turing thesis.
2
u/Prestigious_Boat_386 Mar 16 '26
Most of the optimization tutorials tell you stuff like function calls are slow which at first made me not use functions inside the inner loops and such
Now i understand that that only applies for function calls and if I want the logic of a function I can just force inline it.
Similarly all code has two different forms, the abstract text I write and the lowered or compiled form. Every change appears differently in the two forms.
Also measuring is king. If you think you have a clever solution for a faster implementation sure write it but write the naive version using general functions first. Like a third of the time the general functions are better than your specialized spaghetti. Then you comment it out until you aren't too attached to delete it anymore and move on.
2
u/Subject-End-3799 Mar 17 '26
Binary search
2
u/Remaetanju Mar 17 '26
The halting problem
2
u/QwertzMelon Mar 17 '26
I knew almost nothing about CS five years ago, now I have a degree and it’s my job so…everything?
1
u/spreetin Mar 17 '26
I've worked as a developer for years, but the one thing I for some reason never grasped was how parsers work. So I took a course in compiler design when I went back to get my degree, and it immideately clicked. Even ended up writing my bachellor's thesis on a parser related problem.
1
u/Ill-Look9810 Mar 17 '26
I think Concurrent and Multi Threading, in the college I did not understand it well, but now I have a pretty good understanding. Actually a lot of concepts in the past years I have understood them well
1
u/PatrickChoDev Mar 18 '26
It always a program calling another program to run another program and others…
1
u/Specialist_Nerve_420 Mar 18 '26
Backtracking or you can say complete DSA used to be very hard for me , but now it feels like common sense or just some good way to build mind muscle.
1
u/mdemarchi Mar 20 '26
static types are good
1
u/Pristine-Item680 Mar 21 '26
Formal languages. I was self trained at my role in data science from a math background. While I understood enough for my work, it was all cursory
1
u/PrestigiousSite2675 Mar 22 '26
I feel it has to be databases. Before, I saw databases as a black box with APIs exposed for us to interact with it, and not anything else. Now that I have read DDIA (Designing Data Intensive Applications), I feel there's much more to databases than I ever imagined. I have developed a great interest in LSM storage engines and it's internal workings!
1
u/hialanne Mar 27 '26
Cool topic.
AI. When I took an AI class over 30 years ago it was a bunch of hand waving and promises. 30 years later (i.e., last fall), I decided to learn how AI has changed programming. I'm working on a personal finance simulator. Mostly I'm shocked at how good it is. And sadly how often I have to keep backups as sections of code just magically disappear. I'm excited (and terrified) to see how AI can code in 5 years.
1
u/LavenderDay3544 Apr 19 '26
Everything operating system related.
It's not possible to truly understand operating systems and kernels without developing one. Just the sheer depth and number of different things you need to solve forces you to learn a lot and become a lot better programmer than you were before.
1
u/dwkeith Mar 16 '26
Large Language Models. But I think that’s a pretty universal learning at all levels.
0
u/Ghosttwo Mar 16 '26
AI. It went from some clever trick for reading handwriting to something you can have a conversation with, or work together on a project.
0
u/exotic801 Mar 16 '26
P much my entire undergrad