Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The Only Three Classes That Mattered from My College Degree (developing.dev)
17 points by ryanlpeterman on March 17, 2023 | hide | past | favorite | 57 comments


I'm disheartened by this trend of only caring about things to the extent that they land you a job or otherwise earn money. If the only classes that matter to you are the ones that allow you to take shortcuts, I submit that you have missed at least half the point of higher education, and almost everything interesting and rewarding in CS/programming.

I also submit that you are more likely to find yourself pigeonholed into writing REST endpoints for the bulk of your career, and turn into one of those jaded programmers who complains about how they're not solving interesting problems.

And if you care about excellence, consider the following. No matter how hard you study, you'll sooner or later find yourself competing against someone who's studied as hard as you, and also loves what they're doing.


A lot of it is due to different conversational contexts. "The most interesting" or "funnest class" vs. "the most useful" or "relevant at work". The liberal arts ideal has not been relevant for college qua improver of base economic status for a while now. While many schools concentrate on this, those which primarily attract students looking to better their lot should not mix up the goals and offer students too much irrelevant material - that's not why they students are there.

I personally value languages (dead and modern), poetry, history, philosophy etc. and spend more time with them than coding, publishing articles, living my whole adult life in other countries to have more language practice... but I wouldn't pretend they've helped me professionally.

Now of course, many times students or even instructors missappreciate a course. Many of us pine at SICP no longer being used in CompSci courses - when its self justifying vitality and insight is an obvious boon to all involved! In response to you:

I submit that many aren't in the right place in life or simply have differing goals and life paths and literally want to be pigeonholed into writing REST endpoints. Any philosophy, deeper consideration of what software or computer science are etc. is besides the point and they simply want to provide for their families. Once having reached a certain point, they are happy.

You and me may both find that tragic and misguided in light of the rapidly changing workplace (not to speak of AI), but we are different people. A larger variety of educational goals at various establishments could go a long way.


>I submit that many aren't in the right place in life or simply have differing goals and life paths and literally want to be pigeonholed into writing REST endpoints.

Fair, but then why bother with university? It's certainly cheaper (and likely faster) to get an entry-level dev job and grind l33tcode, since -- as you claim -- university classes aren't bringing a whole lot of value.

If you think the degree is important for some other reason, and if you insist on having a narrow financial view of higher ed, then we're left wondering why you wouldn't maximize your investment. For example, you could pursue a career in a field that pays well and that you find stimulating.


But this is so right. From univeristy lecturers standpoint, why would they ever want to teach people on how to be good at a JOB (especially when the lecturers left the job market, say, 15 years ago)? Whole idea of higher education (as I see it) is to guide you and your interests towards academic/scientific career.

For me, demanding from higher education to teach you how to do your job is like some people complaining that school should teach you how to do taxes, fill tax forms, etc. I mean, who is going to be the wise if universities teach you to be a white collar, and school teaches you to do taxes?


These aren't shortcuts. The other classes are just not relevant to the profession.

Besides you pay a lot of money to higher education to get a job. If you want to learn, just read a book or something.


>The other classes are just not relevant to the profession.

Which profession? Working at the digital factory where you write REST endpoints all day? Maybe. But then why even go to university?

Or are you talking about the kind of software engineering where you are working on problems that actually require some deep knowledge?

And either way, why not pursue the kind of profession where you earn a living and have an intrinsic interest in the subject matter?


Some people feel, because the costs of college are so high, they can only be justified by increased earning potential.

If you're on a student's budget and cash is so tight you have to share a bedroom - do you want to learn to ballroom dance at $250 per credit hour?


If your tuition costs are so high, then surely you're trying to get the most out of higher education. What the OP is preaching is exactly the opposite of that.


when a degree is going to put me in debt it better return something though...

id like to go back to school as mature adult, to expesnive, ill just watch youtube and read books to satisfy my curiosities lol


One of the most useful classes I took in college was a freshmen level philosophy class that I took because I needed 3 more credits of gen. ed. and it was at a convenient time. The prof spent the entire first lecture on this seemingly obvious concept:

If your ideas aren't clear, your writing won't be clear either.

It was like fireworks went off in my head. The realization that unclear writing (prose or code) was a signal that something was missing in my mental model, that there is a continuous feedback loop between the work I'm setting down and the ideas that I'm refining, became the foundation of all the work I've done since, from system design, to troubleshooting problems, to exploring my internal self.

That kind of clarity, where I knew the thing I was learning was going to be important was rare even in technical courses from my chosen field. But a lot of classes that felt "useless" at the time turned out to have important effects, seen only in hindsight.


I majored in maths, did as much computing as I could (even getting special dispensation along the way to drop statistics), and passed on the philosophy and business options. It worked out well enough (I got a 1st), but still, nearly 40 years later, if I had my time again I might make different choices.


I majored in Philosophy, and the largest benefit is that you walk away from the discipline with a good sense for how to communicate well, a natural consequence of distilling large ideas into short papers.


Not just communicate well yourself, but also to understand what someone else is communicating poorly.


The less you know about something, the more impactful are the next few things you learn.

But you still need to learn a lot about some subject if you want to use it professionally.


This is an interesting take. Thanks for providing a perspective that isn't a technical class. I agree clear thinking is critical.


All my classes mattered. A few of them were even relevant to my later employment. Also, a lot of non-class activities mattered and some were even relevant to my later employment.

I am not a job, I am a well-rounded human being with interests and relationships and who happens to exchange my labour for tokens that allow me to acquire goods and services.


It seems myopic that the author apparently learned nothing from any other class applies to their software work. The ability to critically assess the language, tone, rhetoric, etc. from written communication remains one of my most useful skills as I increasingly engage with executives and shareholders. While my other classes helped round me out to my co-workers. I took a figure drawing class once and now appreciate art way more, and have lively and interesting things to talk about.


As a mechanical engineer, Statics (a course all about calculating internal forces of non-moving structures) was the course that made the difference. It had almost nothing to do with the content---I think about internal forces of a thing about once a year---but that was the course where a structured and reliable engineering process was first introduced:

• Draw the full system

• Split into parts

• Build a free-body diagram of all parts

• Build an equation for every point of interest. For statics, the sum of all forces is zero and the sum of all "torques" is zero. Start here every time.

• Identify all "knowns" and put them in one place.

• Identify all "unknowns" and group them in a second place.

• DO NOT PROCEED UNTIL # of equations = # of unknowns! If this isn't true, you need to think harder about what equations are missing, start making assumptions, or change the points of interest (e.g. from method of joints to method of sections).

• Be prepared to defend your assumptions (gravity, friction, mounts, reference frame, material properties)

• Make sure all signs "match" and make sense.

• Solve, step-by-step, equation-by-equation.

• Make sure all units match and make sense.

• Sometimes ignore intuition. Parts that look like tension can be compression and vice versa. (If you need an example, those "impossible floating tables" can confuse a lot of people's intuition about force equilibrium.)

• All work should be clearly organized and clearly marked---especially the answer, with proper units.

... and as a bonus ...

• You can't push a rope.


My dad told me a four-year degree from a quality university is a life changer for some people, and close to worthless for others. He said if my goal was to gain a technical skill to get a good job, university is almost certainly the wrong choice. My undergrad experience was a life changer, but I didn't go expecting job training.


If you don't learn about grammars, lexers, parsers, ASTs,... you're at a huge disadvantage in many situations. 'Compilers' was my favorite course in university, and I've used most of that knowledge many times. I was also often the only person on the team who had enough experience to immediately start doing it (say, writing a parser for something, or writing a clang-tidy plugin to detect and fix some issue in the codebase).

You're equally likely to need this sort of knowledge when writing software for non-technical users (say in finance), and when you write dev tools, linters, checkers, fixers, etc.

If you're doing anything web-related or even vaguely server-client, you're at a huge disadvantage if you didn't have a good networks course. You'll likely be stuck in a loop of half-knowledge and cargo culting. I had a terrible network course, skipped on deep diving into networking for years (I worked in embedded; SPI, I2C, RS-232/422 and CAN were all I needed), and only relatively recently figured out how much I had missed.

I see the author mentioned operating systems as a second-tier course. I find it to be the differentiator (that, and C++ knowledge) when it comes to any serious project, especially understanding of processes, threads, IPC, and such.

Databases are very easy to learn on your own, and are generally easy to learn, even the theoretical aspect (relational algebra, b-trees,...).

Most of the time, and in most shitty universities (the majority of universities everywhere if we're honest with ourselves), for most courses, you're better off picking a couple of good books on whatever subject (classics are classics for a reason) and just learning. That + OCW from MIT, Stanford, Harvard for assignments for practice. The best courses in my university blatantly stole materials from MIT and Stanford.


Networking is worth an honorable mention I agree.

> If you don't learn about grammars, lexers, parsers, ASTs,... you're at a huge disadvantage in many situations.

Can you get an example? I don't recall a time where I used this knowledge in the last 5 years as a systems generalist in big tech.



Your (non-technical) clients want to query the company's data, which is stored in who-knows-what way (Redis + Mongo + Postgres + Kafka + hdf5 + network filesystems with Apache Parquet files, whatever wakes you up at night). They just want to write filters in a trivial `some_field > 3 and otherField * 5 < thirdField` way. You implement this, but they keep asking for more functionality and syntax to this little DSL. The obvious answer is writing a parser, what the parser generates is dependent on the backend. Maybe you generate a lambda filter for the collection, maybe you generate an intermediary AST which you then traverse to generate a query for some DB or multiple of them. I've had similar requests in both medical and finance fields.

Your predecessors had zero regard for C programming best practices, leaving you with a pile of supremely brittle code that just barely works, but you have to tiptoe around it in silk gloves whenever you want to modify it in any way, because of unreasonable standards on ownership, calling conventions, concurrency, whatever. They might have had a reason in the beginning, but now it took over creating a monster that no regular programmer can work on. They didn't think that the code will ever need to be multithreaded. This is no environment for a sane person. A young, inexperienced fool would suggest to rewrite it from scratch. You know better. The whole business logic of a working, profitable business is imprisoned in this pile of shit, and yet it's too far gone to continue forward with it. Nobody understands all the silly rules of engagement with the codebase. You decide to: 1) break everything into chunks, 2) write extensive unit tests, 3) use automated tools to fix the whole codebase yourself to some sane standard. Some of the automation can be just grep + xargs + sed, some is much more complex. Regex replacements are unreasonably efficient, but not omnipotent. The only sane way to fix 40k LOC at a time is to write tools that operate on the AST, find toxic patterns and smartly replace them. This takes dozens of iterations, but you can always roll back with git. You're not transforming the code incrementally, you're writing a transformer. Eventually, your fixers are good enough that they fix 95% of the issues, you fix the rest manually. Your company can now hire any old mediocre C dev off the street, and this dev can productively contribute to the rejuvinated codebase. The company no longer needs psychics, regular C devs will do. If they stray from the path, the newly set up CI with dozens of custom clang-tidy plugins swiftly puts them back in their place.

Your company is in a highly regulated space that has insane coding standards. There are (shitty) compliance tools that cost >$100k a year for your team. You're able to replicate 80% of the functionality of the tools, fix some issues and generate compliance reports from the code on this in ~8 months. Slap on some CI, and the bean counters don't even have to do anything but download the latest PDF report.


> C++

Do you literally mean 1) C++, 2) just a lower level language with control over those or 3) reading the relevant libraries or system code implementing IPC etc. (isn't it in C not C++?)?


Well, I (and also my current employer and the whole team) think that C++ is the best proxy for general programming ability and understanding of CS. A person that understands the intricacies of C++ and all of its aspects, including the STL, template metaprogramming, design patterns, policy based design, concepts, concurrency, etc. is a person demonstrably capable of reasoning about complex systems, rulesets, different intersecting approaches and such, not to mention an intuitive understanding of the meat and potatoes of resource management and code generation. Even if you're hiring for something else and adjacent, like systems C or C# for finance, you'll be hard pressed to find a better measure of general programming ability and understanding of CS concepts. If you're really familiar with C++, you're at peace with best practice deprecation, handling legacy code, compromises of language design, etc. You're a grownup.

Another great measure is knowledge of (Linux) systems programming, this also tends to weed out people with inferior understanding of, you know, programming and deploying software on actual computers. The interfaces here are obviously in C.

There are many things that aren't congruent with C++ ability, such as general functional programming ability, or hiring for JS frontend or Erlang roles and such, but for most industry jobs, it's a useful determinator.

I don't know any good C++ programmers that aren't great and all-rounded overall developers. I can't say the same for any other language or technology.


And what do you do when you get laid off because your knowledge can be summarized by three classes and there are dozens of new graduates every day willing to work for less money than you?

Having diverse skills and an open mind is what differentiates someone who's going to be a technician their whole life (and lose their jobs once fresher meat or a recession comes around) and someone who's going to adapt to the nooks and crannies of life's progression.


This seems like an extremely weird interpretation of what the article is saying.

You’re implying that the only knowledge this person has, period, is those three courses, and that’s absurd. While working, they would have ostensibly already picked up enough knowledge and skills to be able to readily compete with those dozens of new graduates who have might not yet had relevant work experience.

Just because someone didn’t get much out of their college education does not mean they don’t have “diverse skills and an open mind”.


Interesting to see. I remember when I was trying to get started in programming out of college I hard a time. I had a degree but not a compsci degree so I had some imposter syndrome, especially with all the rejections and how hard the job search process is to deal with.

At some point I took a look what classes an actual cs degree needs. Like half of it was gen ed stuff. Which i took a lot of(liberal arts lol), I was good there. Then there was a ton of advanced math which I already barely got through or decided probably isn't relevant to most jobs unless i want to work with graphics. in hindsight I think i was right on that call

At that point there really isn't that many classes left to fill a degree. One or two classes of fundamental cs topics like ds and algorithms, which is all free online to learn. an OS class, db class networking class and some elective cs fun stuff. Degree felt less necessary and more like a checkbox. i learned it all on my own, think i did alright.


I have a really hard time quantifying how useful any of my college courses were. There are various pieces that turn up in things I work with. Parsing with data, some specific algorithms and data structures, design and structure, b-trees, security and more.

But many shaped how I think k about all of those,memory layouts, complexity analysis, statistics, discrete math, crypotgraphy.

Maybe I am deluding myself into valuing something I spend a lot of time on, maybe picking out those bits I use day-to-day and just learning them would make me a worse e gineer.

Overall, I find conclusions of the Form "I only directly use X" often unconvincing, because some people I had this discussion with could not recall they actually did learned something in college, which they claimed was never covered. (again, my memory might be the faulty one...)


Yeah that's a fair point. There may be a lot of implicit understanding I have that I can't trace to a specific class that has helped me.

Still, I think I could cut out at least half of the classes which I'm confident didn't matter and still have similar thinking.


If you are trying to push a bunch of people into this field by saying "these are the only courses you need to know to be able to pass FAANG interviews". What you're describing to me is a failure of interview process itself.

You are not wrong to say this, but you are actually highlighting a more serious problem about this field than you give credit too.

There are many subject matter classes that one should be aware of. The lack of focus on security and good coding practices outside of OWASP Top 10, is startling. I had to specifically opt for those classes because it was not required for the piece of paper that grants you easy entry into a Software Engineering job.


I wonder when this individual graduated - I can't remember which particular classes are exactly relevant to my day to day work and which are relevant to the edge cases I've come across through my career.


Their linkedin is easily accessible from the article. They graduated in 2017.


One of the most important parts for me was to learn how formal proofs work. Because when writing software, you “prove” to yourself all the time in your head that given assumptions X, the results Y of that piece of code will be correct with regard to requirements Z. You learn what assumptions you are actually making, and what information is missing to be able to complete the proof. You learn what proper interface contracts have to look like.


Isn't the primary goal of a Bachelor's degree to make someone a well-adjusted individual that can craft a reasonable world view?


Knowing how to use a command line doesn’t make you an engineer. Understanding how to identify and rationalize trade-offs between conflicting values within a system makes you an engineer. It’s like the difference between knowing how to build a wall out of common lumber and knowing how to describe a building that people can actually live in.


I can name three, too: Algorithms and Data Structures, Compiler Construction, and Artificial Intelligence. But their usefulness built atop a lot of math and electrical engineering.

In hindsight, I wish I'd taken more history, economics, philosophy, and the like, but I was pretty narrowly focused coming out of high school, alas.


When I studied my BsC in Computer Science 20 years ago it was a grueling 5 years with lots of cruft and fluff. Even the more useful parts weren't particularly current, e.g. we used waterfall for all of our projects.

I'm convinced today you could become a better engineer with 1 years of self directed and focused online learning, for a fraction of the cost (even free). Also, although the credentials of a good school are nothing to scoff at, simply being good at leetcode (and maybe a small portfolio of personal projects) goes a long way to getting you a job. It's definitely more time efficient.


Agreed, 100%. Eventhough most of the classes didn't matter for my career, getting the credential was worth it to help me get my foot in the door for interviews.


This is why I think that the trade school model of teaching software development should really be developed further. Having been in charge of hiring software developers a number of times in the past, I have found that a Bachelors in Computer Whatever barely tells me anything about whether you can actually program. The most it tells me on paper is that you have seen some amount of code at some point in your life and know a few buzzwords.

This isn't to say that a College degree is worthless, but it is not a job training tool, and the sooner that people realize that the better. I would love to see a world where software development is treated more like some of the trades. Rather than insisting that all applicants have a BS in Computer Science or equivalent, we should hire promising kids fresh out of High School (Or college) and fund their 1 year education in programming + apprenticeship. I feel like that would lead to a healthier industry as a whole, and bring a lot more highly talented individuals into the world of programming.

And no, web dev bootcamps are not what I'm talking about. They are closer to my ideal than a college, but they have a lot of other problems that keep them from being useful in general.


> UCLA has a notorious class called CS35L, which is a weekly series of time-consuming labs. This class, although painful, is what creates software engineers. > > In it, we learned how to use the command line (e.g. shell commands, scripting) and change management (e.g. Git), which is core to writing code in a collaborative professional environment. Lastly, we learned how to use basic software debugging tools.

That's just some of the superficial tools "lab skills" of churning out code.

Software engineering (for real, when it has to be effective over time) is a larger and more difficult space.

I think the three courses this person is talking about are all about passing a FAANG-like "coding interview" that is targeted at new college grads with no industry experience.

LLMs will now gladly launder open source software into churning out code, much faster than a new grad, and will even (statistically, emergently) apply more software engineering practice than these classes will teach you to do.


It's nice that he found some classes that were relevant to his work. I could really only think of one - Algorithms/Data structures (because it taught me about complexity). Everything else were either irrelevant, or could (and has) been replaced by a book or short video course.


100% this. I had a class called "software tools" taught by a bored grad student that covered the standard unix utils (including "sed", "awk", "lex", "yacc", etc.). That's the single most relevant class I took in 6 years of undergrad and grad school and I use its skills virtually every single day ("formal languages and automata" was fun, but I've only ever written a single LALR parser since university and that was on a personal project).


College degrees are not job training programs.


They certainly shouldn't be. Unfortunately a lot of employers require it without knowing why. They could often get cheaper employees with sufficient technical skills.

I am a big fan of what college can bring, to the interested student. But that stuff is hard to test for and often isn't what employers are interviewing for. (And when they do, they often lump it under "culture fit", which is too often used to exclude people based on their prejudices.)


Being a prerequisite is not the same as training.


This post should not get more attention. It's edginess for clickbait's sake by someone who doesn't value education, and doesn't understand that you have to learn more than the basics to get a good grip on the basics, nor that other skills can be useful if you want to understand more, both in breadth and in depth. Only if you know the future, you can skip irrelevant classes.

E.g., I had classes in computer architecture and had to write microcode to implement IEEE754 on an IBM/360. Do I ever use that in real life? Obviously not. Did it make me understand a bit better how CPUs work? Yes. Would it be useful for people who want to make a career in hardware? Certainly.


That just sounds like incentives are not aligned properly.

If your goal is to get a job, then you’re not going to prioritize ”[valuing] education”, you’re going to prioritize the things needed to get that job.

The problem isn’t that the OP doesn’t value education; that’s not even a problem, it’s entirely a personal choice. Some people just don’t value that, and it’s ok.

The actual problem is that employers require a 4 year degree which means that everyone wanting that job now has to do a 4 year degree whether they’re want to or not. And that degree is never going to be tailored to those just wanting a job; that’s what trade schools are for.


I use 1% of what I learned at the University at work. 0.01% of I add my PhD (both in physics, I work in IT).

But I have an idea how the world works, can understand my electricity bill and realize how biased are any numbers presented to the public.

I can buy a coffee in Spain and Germany without using English.

I lerned to love French Middle Ages.

This article is simply sad.


Linear Algebra is very important if you work in video games or graphics. Statistics is important if you work in AI


Agreed, there's some classes that will matter if you're in a particular field. I haven't used statistics or linear algebra in the last 5 years as a systems generalist though


"Intro to Finite Theory Automata" or "Intro to Compilers" (which is the practical version of automata) would be on my list. Of course, I am a compiler-guy, but they have been incredibly useful for understanding many problems and solutions not directly related to compilers.


I loved CS181 ("Intro to Finite Theory Automata"). I don't remember using much from what I learned there in the last 5 years as a SWE but wow that was a fun class!


The Author feels like something I'd read on /r/LinkedinLunatics.

Is this a parody account designed to get us enraged?


Only 3 huh? No wonder the current generation is incapable. Maybe you should have paid more attention?


> Assignments “N” days late would lose 2^(N-1) points.

(2^N)-1 makes more sense, since it is 0 for N=0.


An assignment isn't late if N=0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: