r/learnprogramming • • 3d ago

Does Maths matter?

A big issue that I'm starting to see as I'm going through my studies in IT(software engineering) is the painful math module my college has us do.

It is a cause for concern as my math is below par, however I'm deeply in love with programming.

Personally I dont see a need for it, however some people do say its there to assist with the 'problem solving' part of the subject.

10 Upvotes

131 comments sorted by

View all comments

41

u/Sea_Athlete1378 3d ago

Math is very essential in solving complex problems.

-39

u/Own_Unit_6170 3d ago

Not true. Math is only necessary to solve math problems.

31

u/mugaboo 3d ago

Yeah, it's not used at all in physics, or computer science, everyday software engineering, finance or anything really.

2

u/Sea_Athlete1378 3d ago

I assume you are being sarcastic haha

→ More replies (16)

13

u/Sea_Athlete1378 3d ago

So data structures, architectural decisions in terms of scalability and reliability have nothing to do with equations? Maybe you're not there yet but trust me, you need it when things get complicated

0

u/mxldevs 2d ago

How are you using calculus or linear algebra in your data structures and architecture? Can you provide an example of a recent problem showing how they're used?

5

u/Sea_Athlete1378 2d ago

You will learn along the way buddy :) query's require calculus, limiting requests to your backend. Its endless honestly. I don't say you have to be a mathematical genius, but denying math plays a big role in development is just nonsense and terrible advice.

0

u/mxldevs 2d ago

What kind of formulas are you using?

3

u/Sea_Athlete1378 2d ago

Really depends! For example, you have a large scale of request trying to reach your backend. Due to high traffic, you have to find out how to prioritize certain request over others, think about storage and make sure your server doesn't overload. You build algorithms that calculate the necessity of a request and what should be handled first, for instance.

If a client buys a product with a discount, how does this discount get calculated? If multiple queries are requested, and you have your DB setup correctly normalized, you will have to join tables, count up requested data. It's really quit common knowledge in all honesty!

→ More replies (7)

2

u/StewedAngelSkins 2d ago

For calculus, time and space complexity analysis is the obvious example.

1

u/Sudden-Pineapple-793 2d ago

I mean a 2d array is literally just a matrix, look at at numpy, inverses, SVD, transposition etc

→ More replies (1)

3

u/chocolatesuperfood 3d ago edited 2d ago

I had to take Math courses, mostly focused on discrete Math, and I found them very helpful, especially the parts on logic and set theory.

I also had to take a class that dealt more with calculus and trigonometry, and I found these less helpful for immediate programming tasks, although things showed up when dealing with media and signals (Fourier analysis etc.).

Machine learning and AI programming also requires a great deal of Math, from random forests and simple Bayesian models over clustering algorithms to neural networks and what else.

Mathematical logic shows up as well in GOFAI implemented in, e.g., Prolog. (For the implementations of more modern ML approaches I was taught to use Racket/Lisp/Scheme and, of course, Python.)

Math also helps when calculating and judging the time complexity of the programs you write.

0

u/Own_Unit_6170 3d ago

Have you used a lot of calculus and trig on your e-commerce and airline reservation sites?

2

u/chocolatesuperfood 2d ago

No, but programming is more than web programming. Not saying web programming is not valid (I also learned some Javascript, server-side programming etc.) or worse. But even the data structures and databases used in these kind of websites require some mathematical understanding, as well as the deployment of the websites. For example, I learned and understood round robin scheduling used in load balancers in Mathematical terms. Maybe our disagreement is on the layers of abstraction of Math needed in different kinds of programming scenarios?

0

u/Own_Unit_6170 2d ago

The math is redundant. Very often the algorithm comes first and is empirically derived, and the math, if any, only comes later, when someone with time on his hands and an interest in such things decides to develop a formal mathematical description.

You don't need to know queuing theory in order to manage a to-do list, in other words. Some things are intuitively self-evident.

1

u/CremousDelight 2d ago

I was disagreeing up until this comment. Yeah, real life has these more "hands-on" approach to problems, where as everyone else in this thread is for some reason focusing more on the academic parts (what scientists working on state of art stuff deal with).

2

u/Own_Unit_6170 2d ago

People were surviving just fine before math was invented. Calculus is useful, for example, but people were solving problems intuitively without it before it was invented.

1

u/StewedAngelSkins 2d ago

It's an analytical tool you can apply to any problem. Or not, if you prefer grasping in the dark.

1

u/Own_Unit_6170 2d ago

People were successfully analyzing without it for thousands of years. Look at calculus, for example: some people insist on teaching this largely useless part of mathematics even in high school, and yet human civilization did very well without it for millennia, before its invention a few centuries ago.

1

u/LordKwik 23h ago

like most school subjects, the subject itself isn't necessarily important to what you're doing or want to do. it's about giving you different methods to think for yourself. problem solving, historical context, theories, etc. all give you different ways to approach something in life.

whenever you encounter a situation, no matter how common or novel the thing is, you're using an amalgamation of the tools you've acquired throughout your life to approach it, whether you're conscious of that fact or not.

certain subjects are a part of certain programs for a reason; historically, they've most likely helped people in the same field. nothing wrong with adding another tool to the belt.

hope that helps you and /u/Septic_Ju1ce

0

u/Own_Unit_6170 19h ago

Subjects like math in school are simply the legacy of historical elitism, hearkening back to the days in which any type of formal education was something that only a wealthy aristocracy could afford; and subjects chosen were and remain deliberately arcane in order to emphasize that these elite students did not have to work for a living and thus did not require useful skills.

0

u/badcodenolatte 2d ago

Computer science is founded on math, literally what are you talking about

1

u/CremousDelight 2d ago

The point is you don't actually need formal knowledge about every element that is part of a system to start working on it.
A lot of it can be blackboxed away, as a long you know what button does what in your daily job routine.

As I mentioned in another comment, this deep knowledge about the all the mathematical fundamentals has way more impact if you're invested in academics and publishing papers with novel ideas.

1

u/badcodenolatte 1d ago

You don’t need to have a Phd in mathematics for it to make you a better engineer. I don’t think it’s prudent to discourage prospective programmers from getting some exposure to even just the problem solving strategies that you learn in mathematics

1

u/Own_Unit_6170 2d ago

If you talk to mathematicians, the entire universe is founded on math; but they have it backwards. Th universe exists with or without math. Math is only a convenient way of describing and predicting some of its behavior.

Computer science is primarily engineering. What computers do is information processing, but information processing is not just math.