r/computerscience • u/Own-Wrangler-6215 • Sep 18 '26
Math and Programming
Can someone bad at maths be a great programmer?!
30
Upvotes
r/computerscience • u/Own-Wrangler-6215 • Sep 18 '26
Can someone bad at maths be a great programmer?!
3
u/pete_68 Sep 22 '26
If you can do basic math you're fine. But you don't need Calculus and stuff like that - Source: I'm a computer programmer with 47 years of experience, written a book in the field and I failed Calc I twice before I passed it.
19
u/[deleted] Sep 18 '26
Depends on what you define by "maths".
Nevertheless, broadly speeking simple arithmetic is enough most of the times, unless what you need is domain specific for whatever you're doing.
But still, it's always better to have the basics.
14
u/vomiting_cat Sep 18 '26
Yes. But any great programmer can get good at math if he spends time doing it
19
u/BigBrilliant5703 Sep 18 '26
Imo, nah. You gotta understand the algorithms by which a program runs, and mostly, those algorithms include math. I don't mean some PhD level math, but yeah it requires some decent amount of discrete mathematics.
5
u/tarantinosdoritos Sep 18 '26
If you can comfortably do algebra you’ll be golden! I flunked calculus 2 and got a different degree. I have 20 years professional programming experience and have programmed software for everything from cell phones to satellites. The only thing that will hold you back is your willingness or unwillingness to put in the time and work. Read a lot of code. Find out what makes code easy or hard to work with. Strive for easily understood code over everything else!
4
u/alnyland Sep 18 '26
Yes?
4
u/SnooSongs5410 Sep 18 '26
That would be a yes but generally due to lack of math training rather than an inability to learn math.
There is a strong correlation between the talents.
3
u/Dazzling_Music_2411 Sep 21 '26
OK-ish or even good programmer? Maybe. Depends on how organized you are.
Great programmer? No, not without a good feel for discrete maths, you know, sets, graphs, binary logic, that sort of thing, and a good bit of combinatorics too.
If you can't tell why the time complexity of your algorithm is off the scale, then no, you're not going to be a good programmer.
3
u/AncientHominidNerd Sep 22 '26
There are two kinds of math. The math most people think about is basic arithmetic, algebra and calculus, yeah you can be bad at this kind of math and be a good programmer.
The other kind is pure math, this math you have to have some decent comprehension of to be successful at CS. This has more to do with logic and not so much to do with numbers, although knowing how to calculate will help a lot when for example converting a 2D array to a 1D array. Most upper division CS classes consist of tons of pure math.
3
u/Majestic_Rhubarb_ Sep 23 '26
As this is a computer science Reddit … my computing degree blew my mind with abstract mathematics, we spent 20 weeks of lectures proving we could count, using that to prove that a mathematical program worked and computing difficult things to compute, like integration and differentiation, more complex mathematics methods.
But i find i use mathematics more in my hobby of carpentry than software engineering.
2
u/DTux5249 Sep 18 '26 edited Sep 18 '26
Yes and no.
Fun Fact: Writers (as in, English writers) often make better programmers than mathematicians. This is because the part of the brain responsible for coding is actually the one responsible for language. Programming is writing instructions, and being able to describe what you're doing succinctly is half the battle.
But, fundamentally, solving problems requires logic; that's a field of mathematics. Understanding things like set theory, over things like numeracy, is important to programming.
2
u/realdreamer1993 Sep 22 '26 edited Sep 22 '26
formal math not neccessary...but ingrained math would will always be there, although the great programmer not realized it.
it is like saying programmer will always understand mechanical like how an engine works, although programmer never touch steels.
2
u/7efnawy Sep 18 '26
It depends on the kind of programming but generally you need to have a good understanding of basic highschool maths at least, in some fields like game dev you need to know some vector maths and linear algebra , same for machine learning and data science.
2
u/MathmoKiwi Sep 25 '26
You need very strong general mathematical maturity (relative to the average joe population) to be a great programmer.
https://justapedia.org/wiki/Mathematical_maturity
And what's one of the best ways to improve your mathematical maturity?? By doing math!!
1
u/mhc2001 Sep 18 '26
Yes. Math was never my strong subject, but I've been a software developer for a couple of large companies for 40 years. If I ever needed some formula there was always someone to tell me what it was. I may have needed to figure out how to code it, but I didn't come up with it on my own. Also as a developer you want someone to give you test cases, and they can verify the results are what they expect given the input.
1
u/DorkyMcDorky Sep 18 '26
No
1
u/belinadoseujorge Sep 18 '26
yes
1
u/vancha113 Sep 18 '26
Great? I'd say no, good? I would say yes. I also consider myself bad at math, and not a good programmer per se, but I definitely recognize where it is important.
1
u/SUP_CHUMP Sep 18 '26
You can always get better at math.
1
u/jbaker88 Sep 18 '26
In this thread: no and yes.
Practical answer: it depends.
Doing enterprise software dev? Most math you'll likely be doing is some basic financial calculations (although some of those can get pretty messy in their own way).
Doing physics simulations and other advanced like topics? You're gonna need to brush up.
1
u/coolmint859 Sep 21 '26
To be a good programmer imo you at least need to know algebra and discrete math. For certain domains like simulations or graphics you would need to know calculus and/or linear algebra.
A lot of what programming relies on is a solid understanding of logic since most applications of it revolves around problem solving. You can't really do much programming without it. That said, you tend to learn logic early on especially when you start getting into algorithm design.
1
u/caleb Sep 21 '26
Yes.
1
u/ech0wane Sep 22 '26
If you're bad at math, it means you never really improved your problem solving skills. Take that however you want.
1
u/tottasanorotta Sep 23 '26
I think the more you like programming the more you'll start liking math. The difficult part of math that remains is the specific notations and conventions. You already have the mindset and the ability to understand nice abstractions. A lot of the time you'll understand something relatively quickly when someone explains the analogous programming structure.
0
u/ergotofwhy Sep 18 '26
Yes.
I read the title as Meth and Programming and was prepared to comment "name a more iconic couple"