Menu
All of Shakespeare fits in 5MB. Windows needs 20GB.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Matrix-math Memes
Posts tagged with Matrix-math
Randomly Stumbled Upon This Code In My Company's Product (CAE Software)
Programming
C++
Algorithms
Math
5 months ago
370.6K views
0 shares
Someone really said "I could use a loop" and then proceeded to manually hardcode what appears to be quaternion rotation calculations for every possible case. Each line is a beautiful handcrafted snowflake of copy-pasted arithmetic operations with slightly different array indices. This is what happens when you learn programming from a stenographer. The best part? There's probably a single matrix multiplication library function that could replace this entire screen of madness. But no, someone decided to type out hundreds of lines of p.a.c[i] * p.a.c[j] combinations like they were getting paid by the character. The code review must have been legendary. This is peak "it works, don't touch it" territory. Nobody's refactoring this beast because nobody wants to be the one who breaks the CAE software that's been running in production for 15 years.
Today's picks
Semicolon Removed Civilization Collapsed
Java
12.3M views
15 hours ago
This T-Shirt Speaks Volumes Funny Maths Science Geeky Pun T-Shirt
Affiliate
$14.99
"It is in the comments section "
Programming
68.1K views
4 years ago