Live data from Hacker News

How much math you need for programming (2014)

lispmachine.wordpress.com

171–180 of 187 posts

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

#171
There are certain problem domains where university level math is required. In my five decade career in commercial applications, including actuarial and yield computations, you just plugged in the formula the actuary or math graduate gave you. As far as operating systems,database and hardware control were concerned, elementary school arithmetic was more than sufficient.

Recently linear algebra has come to the fore for AI.

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

#172

You need all the math for the domain. If you are in engineering, games, DSP, ML, then that can be a lot . At the same time some developers can go a whole career without ever (knowingly) using a floating point number. They work with web sites/services/databases/apis etc. But developers should at least know basic calculus, logic, and what what you need to grok basic algorithms and data structures. That part of math isn…

I still fail to see how calculus relates to programming for what most people do. Web or not.

Calculus doesn't relate to the work of the programming majority. I've only seen it used for domain-specific work or in contrived examples (like LeetCode-esque problems).

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

#173
For most professional programming jobs, you do need some math. For example, you need to know to subtract one in zero indexed languages, and you need to know how what numbers are bigger than other numbers, so you can pick the StackOverflow answer with the most upvotes.

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

#174

Earlier quoted context omitted.

> 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.

For a while, people thought that a universe in which Euclid’s postulates would be wrong would be very strange indeed. In my opinion it is short-sighted to go from “it’s weird (to us, right now)” to “it’s impossible”.

On the contrary, it’s very interesting to explore the consequences of something we take for granted being actually wrong or unnecessary.

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

#175

The question seems a bit backwards to me (who come to programming from maths). I am more familiar with the opposite question "how much, if any, programming do you need for math?" Every year I meet lots of math students who love math but hate the very idea of programming, as if it was a dirty and unnoble thing to do. I have to convince them that sometimes it may be useful for them. The best course of action is to star…

As someone who has formal degrees in Math, I believe this is mostly because the programming Math students do is extremely tedious and simply not enjoyable. In school we were making graphs in Matlab/Octave/Mathematica/R which I think most programmers would not like. Maybe some used Python if they were lucky. Coding visualizations, solving matrices or convex optimizations in Mathematica is not exactly inspiring.

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

#176

I didn't get a CS degree precisely because I bombed out of math so bad in high school that I couldn't get admission to any program. Here in Canada a good grade in academic-stream high school math was simply mandatory for admission to any BSc program. Took a philosophy BA instead, though didn't finish it... dropped out to go get a job programming during the .com boom, and now 25 years later I work at Google. Was a lon…

> Here in Canada a good grade in academic-stream high school math was simply mandatory for admission to any BSc program

Perhaps that's why I've always found excellent engineers from Canada's flagship schools (U of British Columbia and U of Toronto) :p

More seriously though, I have an advanced degree in Math and seldom needed it for development work, even when I was working in more quantitative roles. And whenever I did need the knowledge I would just look up and learn again. Glad you're doing well without a traditional background.

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

#177
post #55

A lot more than people make out, at least in my experience. There’s a lot of talk about how you don’t need maths or cs theory but to me this only seems true for certain areas or levels. For me its been especially true with performance, cs theory and maths can help you to know what and where to optimise and give you ideas on the how.

Jonathan Blow has a good talk about this. He says when he interviews he wants somebody that will default to a naive implementation (because most code is not performance-sensitive and you should optimize for development time in those cases), but he expects people to have a wide knowledge of tricks and techniques for the ~10% that is performance sensitive. That seems fair to me, as somebody who probably wouldn't pass h…

This sounds interesting, as you mentioned it’s not that often that you need these skills but the times you do it’s incredibly difficult to know where to start without some theory. Also unsure why my original comment was downvoted, I did preface with saying it was my experience not a fact.

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

#178

Earlier quoted context omitted.

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.

For a while, people thought that a universe in which Euclid’s postulates would be wrong would be very strange indeed. In my opinion it is short-sighted to go from “it’s weird (to us, right now)” to “it’s impossible”. On the contrary, it’s very interesting to explore the consequences of something we take for granted being actually wrong or unnecessary.

In a universe where Euclid's postulates are wrong, like ours, you can still construct them. You're positing a universe where it's impossible to construct counting – i.e., set theory is impossible to imagine, Peano arithmetic is impossible to imagine, Church numerals are impossible to imagine…

In such a universe, how is conscious thought even possible?

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

#179
Many yarns ago I completed a CS minor. I had been coding since early high school so aced the programming courses. The last requirement was 200 level Math dept. "Algebra" or 300 level ECE 'Discrete Math.' Ruined my 4.0 in the minor and to this day I still can't fathom why such a class was a requirement (though CS was in the math dept at the time).

As I recall, the emphasis was primarily on graph theory with no applications. Maybe its nice to have for a undergrad CS major but even there I wonder what percentage will go on to actually need/use such material? I suspect it is fairly niche.

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

#180

Earlier quoted context omitted.

I agree with everything you’ve said, but I want to push back on the (non-load-bearing) “few have much energy for fighting the idea that literature should be studied for it’s own sake.” It seems to me that lots of people have endless energy for this fight, unfortunately.

You know honestly, we as an entire whole of the world should just go back to hands on training. Forget studying the same crap for 15-20 years of our lives to have a damn calculator to solve basic adding and subtracting that's done on a cash register in our daily lives. How many of you solve out of this world equations in your daily life? 95% of the world doesn't. We all use basic add and subtract. Hardly anyone knows…

Is this sarcasm?
Post reply on HN