Do I Really Need Combinatorics and Discrete Math to Learn Programming?

September 27, 2026 3 answers
Asked by VelvetPioneer42
I'm working through a programming book that includes a long section on topics like combinatorics, positional numeral systems, and discrete mathematics. I'm having a hard time understanding the material and I'm wondering how essential it really is for learning programming fundamentals and writing code. I'm mainly interested in general programming rather than machine learning, game development, or graphics. Is this something I need to master now, or can I treat it as optional and return to it later?

Answers

BrightHarbor19
The importance depends heavily on what you plan to build. Web applications often require very little advanced math, while rendering, simulations, game engines, and some algorithm-heavy work can use a lot of it. A practical project can make abstract subjects easier to understand, so you could learn the basics now without expecting to master every formula immediately.
Reply to this answer
MellowCedar7
You probably wonโ€™t need much of this math for everyday application or web programming. It becomes more important when you study algorithms, data structures, graphics, cryptography, or other specialized areas. Itโ€™s fine to understand the basic ideas and move on, then come back when a project gives the topic some context.

VelvetPioneer42: That makes sense. I was mainly confused about why a beginner-oriented book spends so many pages on material that doesnโ€™t seem connected to the programs I want to build.

Reply to this answer
QuietMaple58
Programming regularly involves encountering ideas you donโ€™t understand at first, but that doesnโ€™t mean you have to study every topic in depth at the same time. Try learning enough to recognize what combinatorics, number systems, and discrete math are used for, and postpone the detailed proofs or formulas until they become relevant. If the book is moving too far ahead of your goals, using a more focused beginner resource is also reasonable.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions