5 ms·
Although I love this stuff, encountering code like this is a nightmare. I hope you never have to revisit your programs ;)
by daurnimator 14y ago
Although I love this stuff, encountering code like this is a nightmare.
I hope you never have to revisit your programs ;)
- martinced 14y ago"...encountering code like this is a nightmare." Well... "Code like this" and "micro-optimization" are basically what powers the 900 000 Linux / Android smartphones sold daily and 1000+ cores CPUs running Linux. The very reason why such an OS is so fast on such a wide range of devices is because there are kernel developers who value micro-optimization and who constantly revisit their program, trying to lower the number of cache misses and trying to reduce contention. As Linus Torvalds recently --and a bit provocatively-- said: "I don't do web development... Because I like programming". We're living in the comfort of our unit tests and frameworks and whatnots and can afford to be on our good practices high-horses... But we should never forget that meanwhile there are people out there bringing us the best of the best because, precisely, they're doing everything we see as "wrong".
- deleted 14y ago[deleted]