by mullingitover · 3y ago · 0 comments
CS is really a mathematics major, if you become a good engineer in the process of getting a CS degree it's purely accidental on the part of the CS department. It's like getting an astrophysics degree in hopes of getting a job in the telescope industry.
Universities should really emphasize software engineering as a major rather than CS. CS is great, don't get me wrong, you'll come out of that program with a galaxy brain for problem solving. In addition, there's definitely overlap between the two areas. However, it's often totally irrelevant to the real work in the software engineering industry.
Without hesitation, computer science is certainly not a mathematics major.
Having some knowledge of some aspects of a subject, doesn't make you qualified in that subject. At least, not at the university level.
Mathematics is an enormous and ancient subject. The maths that a CS student is exposed to is really a very small sliver of a few topics; applied to certain uses. Many other subjects (almost all numerate ones) have a similar relationship to maths.
Consider economics: aspects of it also make use of (applied) mathematics, but no one could seriously make the claim that an economics major, even one who has extensive capabilities in numerical modelling, is basically a mathematics major.
Theoretical CS could be described as "a form of applied mathematics"; but Theoretical CS is only a component of a CS degree; and, from what I see with young graduates today, a decreasingly smaller part of it (I am not making a value judgement - just an empirical observation).
I should have made a clearer distinction between theoretical computer science and a computer science degree.
Theoretical computer science is a topic in applied mathematics but a computer science degree isn't, typically composed only of classes in theoretical computer science. The extent to which it is varies from course to course and from university to university. In much the same way as in a mathematics degree there are pure maths topics (number theory, analysis, graph theory etc.) and applied topics.
I expect that eventually we'll have "applied CS" and "pure CS", as with mathematics. And statistics. And possibly architecture. (In engineering, pure engineering is "engineering science", it seems.)
"Eventually" is doing a bit of work there. It might take a hundred years.
Where I got my degree, a degree was 120 credit hours and typically 30 credit hours of that would be in your major. For economics, there were those 30 credit hours and also a requirement for calculus (a dummied down calculus class that didn't require trig) and an upper level stats class.
For CS, there were 30 credit hours of CS and an additional 30 credit hours of math. You end up with a major in CS and a minor in math. Looks like it would have taken 3 more upper level math classes to do a double major.
My only real criticism of the course I did that it was just maths and CS for four years - which meant there was very little flexibility for people to do other things for the people who wanted to change subject.
They want programmers, who will write code they can sell as quickly and cheaply as possible. Trying to raise a software engineering discipline to the standard of the real engineers would leave you with an employee too expensive to do what his professional ethics wouldn't allow him to.
I would say the same is true of most undergraduate math majors.
The Computer Science program was part of the College of Science and Mathematics at my university (not the School of Engineering). The stated goal of the program was to give students enough of a theoretical background in math and computer science to pursue an advanced degree in CS. Most students probably had other ideas, but that was the way the curriculum was structured. And there was enough overlap between Math and CS majors that most CS majors ended up with enough credits for a dual CS/math degree pretty much by accident.
To be clear I am under no illusion that meeting the minimum requirements for a math degree makes me a great mathematician. But neither were the majority of “pure” math majors in our classes. In fact, I would say the CS students tended to be stronger in math, as that was the more competitive major at my university.
Topology and a few others may make the cut, but it’s much easier to share requirements with other programs so a Math degree may include courses that are required or attract students from a Physics, CS, Engineering, Music, Economics, Chemistry, Philosophy, History, etc degrees.
Depending on how you set it up “History of Mathematics” could attract students from several different majors which means you can offer it more often etc. But the same applies in reverse so CS programs can end up with more overlap than ideal.
However, the definition of a mathematics major is, I think we'd agree, "someone who has majored in mathematics". So, regardless of how much of the corpus we manage to cover, having a degree in mathematics means that you majored in mathematics (if I am understanding US terms correctly).
The original post was, I think, equivocating a degree in computer science with being a mathematics major. Which could be regarded as being incorrect, perhaps pedantically, merely by definition alone.
However, also, I am making a distinction (although I wasn't very clear, I admit) between theoretical computer science (the topic) and a computer science degree. It is generally accepted that theoretical computer science is a topic in applied mathematics, but it doesn't then follow that having a computer science degree means that you are a mathematics major.
Computer science degrees have theoretical computer science (the topic) as a component; the extent to which that component makes up the degree syllabus varies greatly from university to university and, perhaps, has also changed over time.
And what we need is for CS and Software Engineering to split, with Software Engineering being part of the School of Engineering. (Similar to the way Chemistry is split from Chemical Engineering.) And we need Software Engineering to be ten times as large as Computer Science. (Of the people who get CS degrees, 90% of them are going to work as software engineers, not as computer scientists.)
I’m curious what sorts of things would you like to drop from a CS degree, and add to a computer engineering degree?
However, there’s considerably more to it than that. With a few rare exceptions, the overwhelming majority of CS programs in the USA are “telescope science” and not astronomy. One of the more telling, and to my mind obnoxious, evidences of this is how even in the academy the CS types literally appear to believe that “formal” means machine checkable while at the same time balking at learning basic first order predicate calculus to actually specify what is to be computer by a given program. Clearly they are studying the machine and not the mathematical sub-discipline.
I emphasize the USA, because having done many many FAANG technical interviews there is a discernible pattern of graduates from continental European CS programs being considerably more mathematically literate.
Theoretical computer science is generally regarded as a topic in applied mathematics. However, it doesn't follow that, therefore, a computer science major is basically a mathematics major.
Theoretical computer science (the topic) is a component of a degree in computer science. How large of a component it is varies greatly from university to university and, perhaps, has changed over time.
Properly taught it definitely is.
The issue here is that an average undergraduate mathematics major in the USA learns a ridiculously low amount of mathematics so I guess a CS one does even less. I did more maths during my two years of prépa in France that the American who majored in mathematics I met during my postgraduate study.
I think you're getting to the crux of the point. A few years in university (for undergrad) is not nearly enough time to cover the entirety of mathematics. The sheer fact of time constraints requires a survey and a selection of a fraction of the field for study.
I would argue that economics degrees are also, essentially, math degrees for the same reason. Neither economics degrees nor computer science degrees will cover the same topics as a "pure" mathematics degree (or else they would simply be known as mathematics degrees), and I will grant to you that they are "applied" math degrees if I must. But the point remains: a "pure" math undergrad degree cannot include all of mathematics, and thus is perhaps best renamed as theoretical mathematics, commensurate with branding economics and consumer science as "applied".
Even at the time, however, there were divisions in the faculty about the core curriculum, since we had two graduate CS tracks: software engineering and theory.
I went to large state school where the CS department was part of and eventually split off from the math department at some point. Their original degree was computer science and applied math. It was very much “math with computers” when I was there 25 years ago.
I imagine things have changed a lot, but schools have a variety of approaches and states of transition that are probably difficult to know about.
A lot of computer scientists actually struggle with this and don't fully get it. As a result, software engineering education isn't all that great in a typical computer science curriculum. One reason is that most computer scientists actually lack the experience of having worked in large software companies and don't actually know a lot about how that works. It's something I realized while doing my Ph. D. in this area and I fixed it by leaving academia. I learned a lot since then.
One thing I learned is that a lot of good software engineers exist that never studied computer science. I know people with physics, geology, micro biology, philosophy degrees that ended up working as software engineers and that are very good at what they do. Most scientific work involves some level of programming these days. So, it's quite common to meet people with some python or even machine learning experience that never studied computer science. Things like formal methods, linear algebra, etc. are useful to know of course for some things. But you don't need to have a any of that to learn python, javascript, or any of the other popular languages. In the same way, knowing a lot about type systems is nice if you build compilers or design your own languages. But you don't need to know much about that to use a language.
This was me exactly. I started a Ph. D. simultaneously with two other students and our supervisor had us working on separate aspects of a common overall problem, each of which required a lot of software development, in C, because we were chasing performance. The supervisor had an academic background and all of us had only just graduated. Needless to say this was a total disaster and we never even managed to complete our separate parts let alone integrate a usable system. I bailed out and got an M.Phil for my efforts, but on the basis of the experience managed to get the job that I wanted, so it wasn't a complete write-off.
As soon as I encountered some actual software engineers in a well structured research department, I realised how bad our approach in Uni had been. My job involved a similar problem area, and using better tools (Common Lisp on a Lisp machine) I managed to build in about six months what I had failed to do in three+ years in academia.
My thoughts on the feudal nature of the Ph.D system at my Uni are a whole separate post!
On the other hand, without the formal underpinning there is an enormous risk you assume your intuitions are correct about stuff where it turns out there's just unyielding mathematics (or occasionally physics) that disagrees. The formal instruction would either outright tell you about that or at least give you the right lenses to see for yourself.
For example it's not at all rare to see programmers who think about floating point as just the Real Numbers, because they superficially resemble real numbers you've seen - but it's not, it's the modulo integers again but wearing a trench coat. Formally it's obvious we're not getting the Real Numbers, Almost All of which aren't even computable. But without that formal underpinning people have nasty surprises.
People's intuitions about concurrency and parallelism are all wrong too. Amdahl's law matches reality but doesn't match how people intuitively expect this to work out. The insight that makes Rust and several modern languages work (that you can't incur a data race if you don't have multiple references and mutation) is not at all intuitive.
Another thing is that languages and tools that require a lot of formal background are a hard sell in industry because it means having to hire more scarce and expensive people. It's a reason that functional programming was a hard sell for a long time until languages got good enough that normal people could figure it out. Scala was an early example that did not quite get that right maybe. Too difficult for people without a CS degree and a good understanding of type systems. Indeed the whole language became a bit of a playground for type system nerds. It got a bad reputation for being hard and a bit over engineered.
Javascript and python, both of which now have some level of functional programming support, are much easier to pick up by other people. Which is why those languages are so popular. Any high school kid can work with this. I currently have a couple of summer interns in my team. These two languages are what they know.
Well said.
Which seems perfectly reasonable? I reckon most astrophysicists could work in the “telescope industry” just fine, and their background in astrophysics would prove pretty useful. And likewise, CS graduates are perfectly suited to difficult engineering jobs. I’d rather hire a smart CS grad with no knowledge of FactoryFactoryFactory than the reverse.
– Edsger W. Dijkstra (source: https://www.cs.utexas.edu/~EWD/ewd10xx/EWD1036.PDF)
"if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger."
It turns out in most jobs you do use things like soft skills, version control, SQL, etc. more than number theory, formal verification, Forth or UML.
Not really, and it's not really an engineering major either unless your CS is also part of the engineering school like MIT's is. Compared to mathematics curricula, you are doing a lot less complex stuff, there are few proofs and the classes are much easier than math ones.
If you can’t prove things and don’t cheat, you can’t get a UWaterloo CS degree. Can’t get past first year.
This isn’t a flex tho, cuz there’s so much optional advanced math that isn’t required. Everything in the combinatorics and optimization department at UWaterloo basically. Most of us UW CS grads are normies who didn’t do any of the hardest stuff including me :-)
CSE at UW was unique too in being the only program that had a degree in both the college of engineering and the college of arts and sciences, which meant they literally had different deans and budgets, but the same program advisors and such.
Unless something has changed, I believe the original idea was to merge the computer engineering degrees from both departments, not sure how that panned out. I left before it was even ECE!
We covered data structures & algorithms, concurrency, schedulers and virtual memory but it wasn't very math heavy. We have one full semester on software dev cycle and one for UI and mobile app development. Our final project was a group project to assess applying software dev cycle in a team. As far as I'm aware the CS department has a sizable HCI group.
I remember in first year with Python they taught the students to parse integers with `eval`.
Although my datapoint is 15 years old now. I’ve heard they’ve dumbed down CS at the behest of tech companies looking for base level talent factories.
But I was early on in computers. I took a FORTRAN course for another engineering major and otherwise never used computers undergrad.
Could you maybe expand on which programs you're talking about, specifically? I'm always comparing other programs to ours. I haven't seen one I'd call "math-adjacent" in a while, as most programs have gone the way that ours has in emphasizing hands-on experience.
We took intro to cs (boolean algebra), algorithms (definitely math-adjacent), databases (relational algebra), computer architecture (math but with 1s and 0s), theory of computation (finite state machines, context-free grammars, set theory, more algo).
That on top of the math requirements (linear algebra, Calculus, probability & statistics)
Does your program not have those things?
When I look at CS majors, they are heavy on practice, and these days lighter and lighter in theory with every passing hour.
We have all those things you listed, but they are not emphasized as much. We don’t go into theory as much as we used to because there’s so much more to cover that people want to learn these days.
But as for a list of topics, of course you can fit a lot of CS topics into a “math-adjacent” category. But what I said was about the major not the class topics. There’s more to a major than a union of classes.
In fact I have many math majors in my CS class. There are many CS majors who take math classes. But come graduation time, the CS major will be prepared to go directly into a software engineering role and be a productive member of a team. They will have worked with technologies like git and visual studio extensively. They’ll know half a dozen languages. They’ll have worked with a team on a real software project for 1.5 years.
The math major will not have any of these experiences.
Let me put it this way, as someone with a physics and a cs degree, I would call the physics degree math-adjacent, and the ca degree engineering-adjacent.
What constitutes "software engineering" is a lot more subjective than what constitutes CS, partially due to the relative lack of mathematical foundations. At the university I attended, "software engineering" meant waterfall, enterprise-style Java and lots of UML diagrams, arguably it'd make anyone who attended the software engineering degree a worse engineer if they didn't know any better.
Software engineering, or informatics engineering, are 5 year degree[0] with a mix of CS theory, actual practical projects, and engineering.
So at least from the point of view this tiny country, it seems like an issue on how US universities structure their offerings.
[0] - Bologna treaty for EU universities changed this a bit, however universities got around it by now offering integrated masters, allowed former students to upgrade their degrees for legal compatibility, so hardly anyone picks the bare bones 3 years as per Bologna.
Depends on what your school considers to be CS. I did two compulsory mathematics papers for my degree and I've heard that in the years since that they've been axed. My resume still says I have a CS degree despite for all intents and purposes studying software engineering.
That's not a problem with the CS degree. I mean it's the same for every industry and degree then.
You study years of law only to spend most of it helping people exchange real estate contracts etc.
The average <any role> often degenerates into a boring repetitive task. The average doctor at a local clinic likely repeats the same diagnosis every day.
Take a look at medicine for example, by far the most practical of the original set of sciences the organisational pattern of universities was designed for: we know almost infinitely more than 100 years ago, but very little of 1920ies medicine would be considered objectively wrong today. The part of software engineering that struggles to fit in with "CS and a bit of coding" from 2003? Much of that knowledge would be considered more harmful than helpful today, even in an org that does mostly legacy maintenance. ("at this point in the waterfall we will have defined the class hierarchy")
That doesn't happen with medicine. You don't become a cardiologist without doing the whole 10 years of studying. It reminds me of the medieval guild system: quality assurance. But corporations will settle for quantity. They need warm bodies to code and they need it pronto.
It was common question why we didn’t offer software engineering instead of computer science. The simple answer was an “engineering “ degree required non-applicable physical sciences, like heat transfer and an statics. Interesting, but not applicable to shipping software products.
Before Bologna, all Portuguese engineering degrees with 5 years, with masters and Phd, coming on top with additional 2 and 3 years respectively.
There were exceptions like polytechnics being 4 years, but they were a small subset.
With Bologna agreement reducing the standard set of years down to 3 years, that was felt like a downgrade, and so "integrated masters" degree was born to match the original 5 year degree, and everything remains as it was.
Was it similar in UK?
This was roughly half the courses, the other half were the usual stuff like logic circuits, algorithms, operative systems, databases, computer architectures , etc.
Universities probably prefer that, given all things considered, it's better to teach NP than heat transfer, because it's more related to computers? Also big tech like to ask about CS stuff in the interviews.
Purdue seems to have had founded one of the first CS departments (1962) and it was originally part of the Mathematical Sciences division along with Statistics.
In most departments, I that expect systems courses will generally be more aligned with engineering (and industry practice) while theory courses will generally be more aligned with mathematics.
Given the origins of CS, it is disappointing that software practice typically seems to lack both engineering rigor (vs. circuits with predictable behavior) and mathematical rigor (vs. theory with provable results.) The math and engineering parts of CS seem to apply primarily to tiny components rather than the large, complex software systems that people actually build.
> CS is really a mathematics major,
This is true in many departments, and it's wrong imo. The reasons for the math focus are historical and they perpetuated, probably due to the way hiring was done -- the current math-inclined profs hired other math-inclined profs.
But it should change. I would argue that CS degrees should decrease the math focus and should really train for SWE.
Edit: The match-centric major should just be a subfield of CS, say Theoretical Computer Science.
The CS I'm familiar with has aspects of mathematics, engineering, science, and even social sciences. It's a field that studies things related to computers and computing by any means necessary. Most CS programs are narrower in scope, because students only have a few years to study, and studying something in depth is generally better than covering a little bit of everything.
I will say tho, one thing I liked about my university was that paid internships at companies in your field was a requirement for graduation. I think this better prepared me more than anything for the job market. And it's something that you can bolt on to really any degree program without major curriculum changes.
Source: I spent the first 10 years of my career without a degree in the valley then got top honors at a top school as a return student, and am a distinguished engineer level engineer at top tech and tech aligned companies.
Regarding relevance to jobs, I think CS is, de facto, the major that employers see as more relevant in candidates in the US, though I think this is much less about the content and more about CS being seen as more prestigious and selecting for more ambitious/capable students who may make better employees in the long term. I don’t think the reason for the relative decline in the popularity of CS was that students really wanted to do software engineering (but ended up doing physics/math instead).
I told my academic advisor I wanted to be a computer programmer, and she put me in CompSci. No one ever told me that that was the wrong discipline. My school didn't even have a Software Engineering program. I had graduated and was trying to find work before I fully realized that my degree had barely taught me anything useful and I was going to have to learn most of it myself.
It's the system that's misguided.
If you just want to build telescopes, then you don't probably need any degree. If you want to engineer telescopes, then astrophysics, optical physics, etc. might matter.
We often use the term "software engineer" when we really just mean "programmer". But actually engineering software is going to rely on CS knowledge a lot more than simply programming a computer.
I missed out on some of the CS concepts I think, like I hadn’t heard the term “Bloom Filter” until I was asked about it in a TripleByte interview… but it’s nothing a free, online course can’t solve.
My college courses taught me about networking, operating systems, computer architecture, algorithms and data structures, and more. I use knowledge from all these areas on a nearly daily basis in my job as an embedded software engineer.
For the front end developers who studied theory of computing, I agree.
They already do, it's called a "systems emphasis". Features cool stuff like data races, scheduling, IPC, consistency guarantees, cache coherence
And wrt this:
> However, it's often totally irrelevant to the real work in the software engineering industry.
I can't imagine someone working in backend and not understanding something basic like how to avoid data races
There are lots and lots if programmers in the world. Some are focused on UI (even on the backend), some on low-level things like graphics, so on hardware some on libraries, and yes, some on data.
I say this not to pick on you, but to point out that there are lots of universities, with lots of curricula, all called "computer science". The focus of each is widely diverse, and its likely that my CS degree and your CS degree are very dissimilar.
Nowadays they have a software engineering track, data science, and even one focused on entrepreneurship.
It isn't even close.
Why do you think a CS major is like a mathematics major? Just because proofs and logic may be used in some curriculums doesn't make it a mathematics major.
Software engineering is as much engineering as it is, say, mechanical and civil engineering: some applications explicitly require it, but others don't.
Computer science has a solid math foundation. Lambda calculus, graph theory, category theory, process calculus, computational complexity,etc etc etc.
This doesn't even take onto account stuff like numerical analysis and applied linear algebra, which is the core of high performance computing.
It all comes down to what exactly you believe math is, and what it really is.
In some universities, CS is under the Math faculty, like in University of Waterloo (one of the top programs in the world), so there's some official recognition to this idea.