|
|
|
|
|
by BeetleB
1097 days ago
|
|
I did a lot more math before focusing on programming, so it's hard for me to say. Doing a lot of math definitely helps you think rigorously. Doing programming forces you to think rigorously.[1] So it's not clear if math is a value add in that direction. I think the only way math has helped me is that mathematicians tend naturally to think "functionally", so for me switching from C/Python to more abstract functional programming (be it in Scheme or ML based languages) was fairly easy. In fact, I was already trying to program functionally in Python before I knew what that even meant. On the whole, I would say: Study more math if that's what interests you - but not with the expectation of becoming a better programmer. [1] See also my prior comment that discusses a Field's medalist's comparison between math and programming: https://news.ycombinator.com/item?id=36344681 |
|
Would that it were so! But alas a lot of software is happy-path only because many programmers don't tend to think mathematically. In contrast mathematical proofs tend to be absolutely bullet proof.
I can only assume that the mathematician who wrote the quote in your footnote was talking about maths notation vs computer language syntax. In that narrow sense, yes programmers need to be more careful. But software doesn't need to be anywhere near logically correct to run, and he seems to agree that in fact it never is correct.
In contrast, logical errors in published mathematical proofs are relatively rare.