Live data from Hacker News

How much math you need for programming (2014)

lispmachine.wordpress.com

111–120 of 187 posts

Re: How much math you need for programming (2014)

#111
post #90
post #89

There is a joke/saying/anecdote I heard a long time ago that may or may not be relevant "Programmers are mathematicians that solve all their problems by Induction" After being a software engineer for over half a decade now, that still rings strangely true to me

I don’t understand this. Could you elaborate on it?

From Wikipedia [1]

"Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the basis) and that from each rung we can climb up to the next one (the step)."

For-loops are a discrete form of mathematical induction and is a basic concept to do any kind of programming, hence the joke (of course its more nuanced than that but is true in a tongue-in-cheek kind of way)

[1] https://en.wikipedia.org/wiki/Mathematical_induction

Re: How much math you need for programming (2014)

#114
post #84
post #60

Earlier quoted context omitted.

I am a mathematician. Nature is of no consideration whatsoever in some fields of maths. But nature or applications to it are the primary focus in many other fields of maths. In still others, nature would be a source of analogies, or applications of a few special cases, etc. Muddying the waters, some mathematicians would expand the definition of "nature" to include completely abstract ideas - anything that feels "disc…

Whatever people may think what mathematicians think, this comment describes the real situation best as I've experienced it. Most pure mathematicians I've met/worked with actually look down (in a jocular way) on applied mathematics/physics. When Lagrange reformulated Newtonian physics, he was very proud of the fact that he didn't use any diagrams and arrows showing forces in his paper. In fact, of all the Physics I've…

I agree this is a common sentiment among mathematicians, but this is a very modern perspective. If you look back 100 years ago to Hilbert, there was less distinction between physicists and mathematicians, much less the pure/applied rift that now exists. Arnol'd (who is referenced above) was one of the mathematicians who tried to keep this unity alive.

Re: How much math you need for programming (2014)

#115
Off topic personal story time:

My high school offered a programming class for the first time (1998). I took it my freshman year, not having the required math. I remember realizing my sub-par math book was out on my desk in front of the teacher, then quickly hiding it. I think he pretended he didn't notice.

Of the 35 students (total) that took the class, 8 completed it. There was no second year class but the teacher (one of the few whose name I remember) asked me to come back next year and be his assistant and receive training one on one.

The next year, the school canceled the class. I checked out of schooling from there on.

Re: How much math you need for programming (2014)

#116
Agreed!

> Computer Programming is not Math. Let me say it again, computer programming is not Math and will never be. You want to learn computer programming, then learn computer programming.

Programming is far more aligned with writing than math. If you want to be a better programmer be a better writer. Math will not make you a better programmer.

Conversely, programming will not make you a better writer, but it will make you better at math. This is complicated, but provable with testing.

The term math is extremely misunderstood. Math is not a practical exercise, it is a philosophy, a way of thinking. Lay people believe the word math is interchangeable with arithmetic, which it isn't. Arithmetic is the expression of immediate computation. Math is more than that.

Writing algorithms and instructions is algebra. Algorithms are always algebra. Always. Algebra is the conveyance of instructions, which is inclusive of arithmetic, but is more expansive and accounts for variability. The word algorithm literally comes from the Latinized name for the father of Algebra, Algorithmi. https://en.wikipedia.org/wiki/Muhammad_ibn_Musa_al-Khwarizmi

Planning is calculus. Calculus is the expression of continuous change. Calculus accounts for states in fluctuation and differentiation. Calculus allows for thinking in terms of various potentials and collections of decisions.

The reason why writing makes you a stronger programmer but math doesn't is because math doesn't force critical examination like writing does, at least not until you get to Calculus. The reason programming does make you better at math is because it teaches you to solve tough math problems without ever having to do math, because Math is a philosophy, a way of thinking.

This is provable with numbers. Simply test people, compare the testers, and then compare those differences against programming capability. This is provable objectively with numbers. If you want to hire better programmers test for writing performance. The best filter of a group of candidates, for programming potential, is a tough essay to write under time pressure.

When I took the military aptitude test, the ASVAB, the first time I was 17. My scores indicated that I was smarter than 79% of the people who took the test that year, but the only score that really mattered is the GT score. It is an examination of solving complex mathematical word problems under time pressure and is graded on a scale of 0-130. I scored I 107. Smarter than average but not smart enough to become a military officer. 17 years later when I wanted to be a military officer I needed to retake that test at which point I was smarter than 98% of the population who took the test that year and I scored a GT score of 129 (out of 130). I had been programming for 6 years at that point.

Re: How much math you need for programming (2014)

#117
post #51

Earlier quoted context omitted.

> I would argue that this is wrong. That's what physicists do, not mathematicians. Notice that many mathematicians would not agree with you, here (but probably, a majority would). As the mathematician V.I.Arnold famously said, "mathematics is a branch of physics where experiments are cheap". So, yes, in the minds of lots of mathematicians, what they do is precisely to study and understand nature.

Even if a lot of mathematicians think math is about studying nature they are demonstrably wrong. One can do maths that has no known relation to physical reality, has no basis in physical reality or sits in direct opposition to how physical reality actually works. That is precisely the opposite of physics to say that "well, if I can imagine it it must be nature". So by counterexample, since the field of maths contains…

You are making a lot of ontological and epistemological assumptions that are contentious in the philosophy of math. Not saying you are wrong in thinking this, metaphysical questions don't necessarily have answers, but many would not agree with you.

Re: How much math you need for programming (2014)

#118
post #78

When working with CSS/design I used subtraction, multiplication and division. When working with e-commerce/finance I used algebra. When making a 2d game I used geometry. When making a 3d engine I needed to learn about vector, matrices, etc. When working with weather forecasting there where formulas involving sin,cos,atan etc. So while you do not need math to get started in programming/development, you will definitely…

When you do design you need to know about typography, when you do finance, you need to know about accounting, when you are making a game, you need to know about game design, when you are doing weather forecasting, you need to know about meteorology.

None of them are skills that a programmer needs unless he works in the field. Maths is the same. You need very little maths to code unless your field requires it.

And even then, sometimes you don't even need to. I worked on a software that computed material fatigue with absolutely no idea about the maths involved, the mechanical engineers just told me the formulas and constants to use as well as the expected results and I implemented them. (not entirely true, but it was just personal curiosity, absolutely not required for the job).

Re: How much math you need for programming (2014)

#120
post #87

Earlier quoted context omitted.

Numbers don't exist in any real sense, so we're clearly not talking about the actual physical universe. The universes we're talking about are the spaces of possibilities that arise from sets of rules. Examples include number systems and physics models built on them. Newtonian physics, built on Euclidean space; Einsteinian physics, built on space distorted by mass; quantum circuits, where modular arithmetic can show u…

> Numbers don't exist in any real sense I'd argue they do, numbers arise when counting and counting is definitely a part of our reality. It is pretty hard to imagine a universe where you can't count things.

I agree. Counting might not have any intrinsic relationship to the physics of the universe, but it's a strange universe where thinking beings can exist, yet are incapable of constructing the mathematical rules that would allow them to count.
Post reply on HN