r/programming • • 8h ago

CS Fundamentals are still important

https://faidi.tech/posts/fundamentals-change-how-you-learn/
216 Upvotes

47 comments sorted by

153

u/IanisVasilev 8h ago

I believe the phrase "CS fundamentals" is supposed to refer to abstract concepts like graphs, automata and type systems, and only after that to (far more concrete) shells and networks.

7

u/wordbit12 8h ago

I think it includes all of those. What's often taught to undergrad CS students. Though, perhaps, one might argue that there is no agreed upon CS curriculum or vision. But I feel there is some good shared wisdom in many curricula. e.g. teaching discrete math and algorithms

85

u/ConnaitLesRisques 8h ago

After discussing with a couple of former professors of mine, I’m absolutely dreading working with the people who will be joining the workforce within a couple of years.

-43

u/IanisVasilev 8h ago

I dread talking with professors lest they start pitching me AI subscriptions. Many of them are more obsessed with thinking-as-a-service than naive youngsters who do not know any better.

-48

u/eJaguar 5h ago

Is there anything you can do that I as a single engineer with a swarm of ai agents cannot?

21

u/ConnaitLesRisques 4h ago

I work on core kernel code and around that general stuff (toolchain). It’s typically not problems that come down to throwing swarms of agents to solve.

-9

u/eJaguar 1h ago

that wasn't meant in ill intent btw. i'm genuinely curious as to what kernel/toolchain work you're doing exactly that the modern ai agents are not capable of

-10

u/eJaguar 1h ago

okay right. great. now can you give me a single example of something you've done recently that ai would not be capable of

5

u/IanisVasilev 1h ago

I am not the person you asked, but for some reason Reddit sent me a notification about your reply, so here goes.

Nearly every discussion about AI rests on categorical errors and false dichotomies.

Let us replace the phrase "a swarm of ai agents" with "a brute-force algorithm". Is there an algorithmic task you can do that a brute-force algorithm cannot? Almost by definition, no. We know how to generate any well-formed computer program.

We have some loose criteria which programs are better than others, and we use some of them during reinforcement learning as guides for language models generating appropriate strings. What you get in the end is a naive search algorithm on an enormous search space. Compared to brute-force search, you gain efficiency, but you lose the correctness guarantee.

You can of course look at a person from a similar perspective - you give him a task and he generates text. But the similarities end at that. When you ask for a direct comparison, you are forcing this perspective - that we as humans generate textual commands. And this is not a place where we can compete with programs that generate commands so fast that the "harness" can easily reject even billions of samples.

If you only care about getting a wall of text that compiles, then surely "a swarm of ai agents" will outperform a team of humans at any conceivable task. However, every few months we invent new words to try to describe discrepancies of pushing the anthropomorphic analogy.

All that while sabotaging the communities that allowed technological companies to collect training data and tools for reinforcement learning loops.

2

u/eJaguar 59m ago

I was moreso hoping for specific examples like, in my own work a little over a year ago I found claude generated code to be extremely verbose, and every agent fell short in some way when it came to overall code architecture, readability, and quality standards.

ie tests not covering all relevant behaviour, extremely spammy/verbose comments, things of that nature. basically artifacts from the training data as to what "quality code" should be which made the code more difficult for qualified people to parse/understand

i'm in a life situation now where i'm unable to do any software engineering, but have heard that the models have improved dramatically. i'm wondering if the shortcomings i found in the ai i used, are even relevant anymore.

1

u/IanisVasilev 5m ago

You are applying criteria which you would use for code that was written by your coworkers rather than generated by a system unamenable to analysis. This is what my comment was about (anthropomorphising language models and then using this analogy to deprecate ourselves).

-40

u/Respawned234 4h ago

No responses but so far 8 downvotes = 8 people trying to cope with new normal

23

u/VictoryMotel 3h ago

People who say this couldn't do much before.

11

u/Dylnuge 2h ago

And they're all oddly convinced that this would be good for them. Even if a swarm of AI agents could do everything you used to need skilled software engineers for, why would we need the "single engineer" who is so proud of outsourcing all their work to them?

6

u/VictoryMotel 2h ago

Exactly. They think what they get from a prompt is their unique ability.

1

u/OstapBenderBey 1h ago edited 1h ago

It used to be how to implement bubble sort, how to manually lay out memory, bit level programming (bit shifts, masks, overflow programming etc.) Etc. All these are still "fundamentals" but does it help the average AI programmer much to have learned them all previously? Probably just in edge cases

Id say theres a continuum. Some things are obviously very helpful to learn - you cant just vibe code with no understanding of how computers work. Some have become so embedded into libraries you probably wont be interacting with them unless you are in a specific field. Ymmv of course

31

u/jhartikainen 8h ago

I've been toying with the idea about fundamentals being important lately and 100% agree. I think the problem is that what those fundamentals are can vary a bit, there are multiple "layers" of fundamentals, and usually people don't understand their value (they don't realize the value on their own, nobody tells them, or if they are told "it's important", they aren't told why in a concrete enough way)

I think there are also necessary "fundamentals" beyond just programming ones. Good communication skills I think are increasingly valuable, as are learning related skills (picking up new things, or just figuring out problems), and the fundamentals of these (or even nonfundamentals) I don't think are taught or explained much.

13

u/wordbit12 8h ago edited 8h ago

An example crosses my mind now: it was in my first year in college; we were working on an assignment, and a classmate was seeing me coding; he was surprised that I was writing and composing function calls before even creating any of the functions, a simple technique I learned in a functional programming course, often called "wishlisting" or "wishful thinking," i.e., I imagine I already have the helper functions.
I also remember Peter Norvig's Design of Computer Programs course. One student asked in comments about the same thing and found it interesting that Peter would start using functions before he wrote any of them.
It seems many of these practical skills are left for students to learn on their own.

5

u/jhartikainen 7h ago

That's an interesting example. I've never heard of or seen anyone use this "wishful thinking" type approach in the manner you describe. But I do see a pretty clear connection to how test-driven development works in my experience, because this is pretty much exactly what you do when you work with TDD (because you write the test with the "missing function" up front, etc.)

4

u/wordbit12 7h ago

Yeah, a very good connection; it's really like TDD. I first learned it in the book How to Design Programs. The book borrows some ideas from TDD, in fact even the idea of running your tests to make sure they fail!

1

u/Snarwin 6h ago

It's very often the case in computer science that the same underlying idea is referred to by different names in different contexts. One big benefit of learning fundamentals is that it helps you recognize these ideas when they appear in unfamiliar contexts under names you haven't heard before.

1

u/wordbit12 5h ago

I agree. I'd even say learning fundamentals well might correlate with how much a person likes and enjoys this field.

1

u/Jonathan_the_Nerd 3h ago

I've heard of TDD but never taken the time to learn about it. I have some reading to do.

1

u/Wonderful-Habit-139 6h ago

This is a very useful skill. Especially since most people use LLMs to overcome writer's block, so that's a nice technique that I might suggest to some people that are struggling with coding.

Also, I know Test DD was mentioned but you'd also really love Type DD as well. That's something that goes really well with this technique that you mentioned and it's not tedious at all.

2

u/wordbit12 8h ago

Absolutely agree, I've been feeling this, that a lot of useful knowledge and skills, whether in software or elsewhere, are often implicit and rarely taught explicitly. Heck, even in programming, many ways of thinking and patterns are rarely taught well.

8

u/editor_of_the_beast 6h ago

People are going to come back and read convos like these and they’re going to sound so silly. Fundamentals are important because they are _fundamental_. They will never not be important. AI doesn’t change the fact that we live in a physical world with rules. We know quite a bit about that world, and AI will not change that.

Conversely, if it no longer becomes important, then it wasn’t a fundamental to begin with. I also think that we also put too much stock in a lot of ideas being more important than they really were.

2

u/jhartikainen 5h ago

Yeah I mean it's somewhat obvious in retrospect that something is fundamental and thus important, but the challenge is in identifying what the fundamentals are, and communicating it to a learner in a way that they understand its value - because simply saying "it's fundamental!" isn't enough when there's so much a beginner has to learn, and something else might bring a more visible benefit.

1

u/drink_with_me_to_day 5h ago

those fundamentals are can vary a bit

They don't. Software and configuration aren't fundamentals

Algorithms and data structures are

14

u/DaBigSnack 8h ago

There’s two categories I think are really important now.

Intangibles:

Things like tenacity, just never giving up on a problem and having that natural drive to never give up and need to solve a problem. People who can’t sleep if they don’t know why something went wrong.

Practical Software Engineering experience:

Things like knowing when a system is too complex or too shallow to support future efforts. I know implementation is cheap but in some larger system choices made on the first implementation can have huge ramifications with building ontop of it. What might look good in isolation may not mesh with the overall systems and the cost of getting it wrong may not be a time thing but a trust breaker with your customers if you’re constantly having to take shit down to migrate poor db structures.

AI can do so so much quickly, but in the hands of a good developer with intangibles, man.

10

u/wordbit12 8h ago

Reminds me of Pragmatic Programmer. There is one section I love where it says that a good software developer is someone who can realize when a technical solution won't solve the client's problem. That requires a lot of human experience and understanding.

-10

u/IanisVasilev 8h ago
  1. What you call "intangibles" I call obsession and should not in any way be encouraged.
  2. You cannot get practical experience without doing, by definition.

8

u/wordbit12 7h ago

I think u/DaBigSnack meant " in the hands of developers who gained a lot of hands-on experience then started to use AI".
And don't take what he said about "intangibles" too seriously. He probably just meant that people should give a shit about what they're doing.

2

u/DaBigSnack 7h ago

Right, giving at shit and some people just love solving problems.

6

u/mfizzled 6h ago

I genuinely could never have actually become a developer without the intangibles they described, being driven and persistent in a healthy way is definitely not an obsession.

0

u/IanisVasilev 3h ago

The original comment:

Things like tenacity, just never giving up on a problem and having that natural drive to never give up and need to solve a problem. People who can’t sleep if they don’t know why something went wrong.

Your comment:

being driven and persistent in a healthy way

And somehow I'm the one being wrong.

1

u/wordbit12 1h ago

Don't worry about it, man. Sadly, it happens a lot on Reddit. I have no idea why someone would downvote a comment when it's respectful. Even when we disagree with someone, we shouldn't be like that in my opinion. I don't know about you, but personally it frustrates me when someone downvotes me lol. I wish more people gave feedback instead. Anyway, have a nice day.

74

u/pineapplepizzabong 8h ago

The fundamentals (in any context) are always important; that's why they're called the fundamentals.

2

u/_JustCallMeBen_ 2h ago

Surrz but it warrants repeating now that 50% of the population is convinced they can code just as good as people who got a CS degree because of AI.

2

u/case-o-nuts 1h ago

They are important, but you only learn them by using them directly and frequently.

4

u/stonerism 2h ago

I've worked as a software engineer for over 16 years now. One of the best pieces of wisdom I've received (and it's still mostly true) is that the vast majority of technical problems you will face were solved in the 80s and 90s. You're taking those solutions and reapplying them in a new context. The crazy thing about AI is that, because it "understands" things in a semantic sense. Finding specific terminology or connecting a situation to a solved problem is an easy task for an AI. And you don't even have to know the exact terminology to begin reasoning about something with an AI. The more I think about it, the more mind-blowing that is. 🤯

2

u/_w62_ 7h ago

Fundamentals are always important.

-3

u/Aubrey_D_Graham 7h ago

Software fundamentals are becoming increasingly important. I spend a lot of my time now setting standards for my agent outputs and verifying correctness. I develop around priciples like SOLID and TDD

2

u/wordbit12 7h ago

Awesome, I'm currently learning TDD (university of Helsinki made a mooc about it last year) and it's amazing, a very different experience.

-3

u/Aubrey_D_Graham 7h ago

Yup. Define a happy path. Write tests that mock up the happy path. Have your Agent write according to spec, requirements, and testing. Verify. Later test for edge cases.

-26

u/ma_251 8h ago

The humble $200/mo subscription vs engineers still yapping about some concepts

-3

u/eJaguar 5h ago

based