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

Show parent comment

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.