| ▲ | AceJohnny2 3 hours ago | |||||||
that's right. This is the reason all my code looks like an entry to PerlGolf. /s The world's complicated. "Every complex problem has a solution which is simple, direct, and wrong" Simplicity is a laudable goal, but it's not always the one thing to optimize for. | ||||||||
| ▲ | lo_zamoyski 2 hours ago | parent [-] | |||||||
Ah, but "simplicity" is not necessarily "fewest lines of code". Code is first and foremost for human consumption. The compiler's job is to worry about appeasing the machine. (Of course, that's the normative ideal. In practice, the limits of compilers sometimes requires us to appease the architectural peculiarities of the machine, but this should be seen as an unfortunate deviation and should be documented for human readers when it occurs.) | ||||||||
| ||||||||