Menu
UDP: I might have your packets, who knows?
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
Quaternions Memes
Posts tagged with Quaternions
Randomly Stumbled Upon This Code In My Company's Product (CAE Software)
Programming
C++
Algorithms
Math
9 months ago
427.9K 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.
Saves Computing Power By Transcending To The 4th Dimension
Gamedev
Math
Algorithms
Programming
Unity
1 year ago
478.6K views
0 shares
Left side: Regular 3D rotation math with sines and cosines. Complex but manageable if you've ever implemented a camera system. Right side: Quaternions. Four-dimensional math that makes rotation calculations significantly more efficient but looks like someone dropped acid while reading a linear algebra textbook. Game developers be like: "Yes, I understand quaternions perfectly" while secretly copy-pasting code from Stack Overflow and praying it doesn't introduce gimbal lock.
Today's picks
Apple 2026 MacBook Air 15-inch Laptop with M5 chip: Built for AI, 15.3-inch Liquid Retina Display, 16GB Unified Memory, 512GB SSD, 12MP Center Stage Camera, Touch ID, Wi-Fi 7; Midnight
Affiliate
$1149.00
NordVPN
Sponsored
VPN
The Programmer Confidence Metronome
Programming
257.0K views
1 year ago