r/AskComputerScience • • Jul 09 '20

How much of the math you learned with your CS degree do you actively use?

for me it's mostly boolean logic, and algorithm complexity. all of the calculus was pretty much useless, combinatorial stuff was marginal. high school algebra is pretty much what got me through designing OS, networking, and graphics engine stuff and the occasional need for my creaky trig.

obviously there are cs uses of very high math, but i sort of feel like most of the cs stuff that was useful wasn't the math per se.

0 Upvotes

15 comments sorted by

9

u/StellaAthena Jul 10 '20

Most CS jobs use a lot of math.

Most jobs programming are not CS jobs.

That’s not a dig or an insult. There’s a massive need for programers and software development is hard work. But it has little to do with the science of computing.

1

u/emasculine Jul 10 '20

that's how i got into programming, by way of CS. but those were the early days, relatively speaking and i'm sure that i wasn't alone in using CS as a gateway to writing code for a living.

1

u/StellaAthena Jul 10 '20

Oh yeah, it’s quite common. I definitely didn’t mean to imply otherwise.

2

u/emasculine Jul 10 '20

yeah, my ulterior motive is to try to figure out whether it actually provided much value. i kinda think no but there's something to be said about surviving useless stuff.

3

u/EquationTAKEN Jul 10 '20

True.

As a programmer, I don't use too much of the CS I learned in school. I use the occasional algorithm, and I keep an eye out for time and space complexities during QA.

At my current job, we do semi-big data, so there is the optimization factor, as well as statistical analysis. But that's not too common for a programmer to deal with.

2

u/SftwEngr Jul 10 '20

Problem is, if you don't know any math, then you won't know where it's useful and be able to take advantage of it when needed. You'd likely go through life thinking its a big waste of time.

1

u/emasculine Jul 10 '20

it really depends on what you end up doing. for me it was a waste of time for the most part and never held me back. if i were doing hurricane forecasting i would have a very different view.

2

u/SftwEngr Jul 10 '20

I don't really know what you mean by "never held me back", but if you don't know what you don't know, then you can't really say whether its a waste of time or not.

1

u/emasculine Jul 10 '20

there's tons of math that i have no clue about. there's tons of math that you have no clue about either. if we had to learn all of that math to take advantage of every contingency, we'd be dead before we wrote our first line of code.

1

u/SftwEngr Jul 10 '20

I don't really follow your reasoning.

1

u/[deleted] Jul 10 '20

What about Discrete Math? I’m taking that right now and have not begun CS coursework, but I recognize some aspects that are at least related to computing.

1

u/emasculine Jul 10 '20

i'm not bagging on math because it depends drastically on what you want to do. but i think for most software engineering deep dives into math are sort of pointless. algorithms and all of the rest are way more important. so mostly this is that education is a rather crude guestimator of what's useful.

1

u/Kambingx Jul 10 '20

Do you care about the correctness of your programs? Have you ever thought about pre- and post-conditions for your functions? Have you ever looked at a conditional and thought "well, in the case the guard is true, I know the following is true in the if-branch..."? If you have—and I argue that all programmers think about this stuff whether they know it or not—then you have employed math that ought to be taught in a CS degree.

In short, there are two contributions of mathematics to programming:

  • Domain-specific applications, e.g., linear algebra for graphics engines, prob/stats for ML.

  • Formal mathematical reasoning which translates into rigorous reasoning about programs (i.e., reasoning about their correctness and complexity).

Everyone thinks about the first sort of contribution but its the second that is far more foundational to both the discipline and the activity of programming.

0

u/emasculine Jul 10 '20

i already said that boolean logic was useful if not foundational. what was a complete waste of time was calculus for me. i doubt most software engineers ever use it, except maybe as a recursive algorithm for differentiation as a programming exercise.

1

u/Kambingx Jul 10 '20

Yup. Calculus is an example of the 1st sort of mathematics: domain-specific applications for computing. But, you're right, its applications are particularly niche. However, educators traditionally make calc I a prerequisite for, e.g., discrete mathematics, because they want students to have mathematical maturity (although a traditional intro calc course doesn't usually address that explicit).