Re:Why I often implement things from scratch (2006)
by hinkley on Sunday March 08, 2020 @01:12PM
(#22519163)
What’s the old line about experts answering “it depends” for everything?
I’d give good odds that the person doing a 2x2 matrix didn’t even notice it was linear algebra. I wrote a trivial image rotation, zoom and crop feature a number of years ago and I bet if you looked at that code you’d tell me I fucked up by not using linear algebra. Instead I had a series of geometry diagrams on my whiteboard trying to figure out unit tests for my hand written code. Which the next guy promptly broke but that’s another story for a different day.
If I know it’s linear algebra, it will probably come up again. Now my decision is somewhat informed and also more difficult.
I’d give good odds that the person doing a 2x2 matrix didn’t even notice it was linear algebra. I wrote a trivial image rotation, zoom and crop feature a number of years ago and I bet if you looked at that code you’d tell me I fucked up by not using linear algebra. Instead I had a series of geometry diagrams on my whiteboard trying to figure out unit tests for my hand written code. Which the next guy promptly broke but that’s another story for a different day.
If I know it’s linear algebra, it will probably come up again. Now my decision is somewhat informed and also more difficult.