News for hackers. Stuff that matters.
Re:Response to "Math is Not Necessary for Software Development" by sdegutis on Wednesday January 22, 2014 @01:50PM (#7104540)
To disprove that math isn't useful for programming, I don't think anyone has to look further than the source code for Doom [1]. Math tricks were integral to making that game even work back then.

[1]: https://github.com/id-Software/DOOM

Re:Response to "Math is Not Necessary for Software Development" by deletes on Wednesday January 22, 2014 @02:00PM (#7104596)
Could you point out some relevant parts of the code for those not familiar with the codebase( there is a Lot of files ).
Re:Response to "Math is Not Necessary for Software Development" by jfim on Wednesday January 22, 2014 @02:19PM (#7104712)
I don't think this particular bit was in Doom, but there was the fast inverse square root trick[1] that is only a couple lines of code, yet has a very lengthy explanation that requires both knowledge of math and floating point representation.

[1] http://en.wikipedia.org/wiki/Fast_inverse_square_root

Re:Response to "Math is Not Necessary for Software Development" by randomdata on Wednesday January 22, 2014 @03:07PM (#7105018)
I think this may also a good example of why they say programmers don't need math. Very few people have the opportunity to even be in a position of inventing new algorithms like this. They are just going to read the relevant academic papers or use a library that implements it for them to make use of something like this in their own code. Even if you fully understand why the algorithm works, there is still a certain impostor syndrome at play for not being the one to invent it, leading people to believe they do not know math.
Re:Response to "Math is Not Necessary for Software Development" by aryastark on Wednesday January 22, 2014 @03:48PM (#7105277)
Not only that, but that bit of Q3 code was at one point in time a mystery to even John Carmack. Which is why it has the "what the fuck?" comment next to the magic number. Eventually they did track down the guy that authored that bit of code. Not only did the guy that wrote that have a good understanding of the math behind it, but he also understood the low-level mechanics of floating point. Which is something your average math major wouldn't know much about. Even most software engineers don't know floating point, sad as that may be.

But Doom and early Quake are bad examples of why math is needed. Those were ground-breaking games. Their math has been encapsulated and turned into libraries and things like DirectX and OpenGL. Today, you generally just take a physics engine and 3d engine off the shelf and tweak it a little here and there.

Re:Response to "Math is Not Necessary for Software Development" by 14113 on Wednesday January 22, 2014 @03:25PM (#7105136)
> They are just going to read the relevant academic papers

And how are you planning on doing that if you have no understanding of Maths?

Re:Response to "Math is Not Necessary for Software Development" by randomdata on Wednesday January 22, 2014 @03:46PM (#7105267)
The same way you can write an if statement without understanding of math. i.e. You can't, but we don't label it math, because it is not the invention of new mathematical concepts. Only people sitting in ivory towers doing things with math that the world has never seen before are considered to know math in the eyes of most programmers, it seems.
Re:Response to "Math is Not Necessary for Software Development" by deletes on Wednesday January 22, 2014 @02:44PM (#7104879)
That was in Doom 3, to get the surface normals. That piece of code is also a hack since it breaks certain rules of c language.
Re:Response to "Math is Not Necessary for Software Development" by deletes on Wednesday January 22, 2014 @10:37PM (#7106882)
I meant Quake 3 of course.