Optimization by accepting side effects
osuushi.github.io
osuushi.github.io
Unfortunately, it's often just as hard to distinguish such code from magic when reading it.
Is a well-structured and readable (to a C programmer) program written in C less readable than a more verbose and DSL-laden program written in Ruby or a purely functional (whether that's relevant to the solution or not) program written in Common Lisp to solve the same problem? It might be... depending on your background and how well those tools fit the problem.
"Optimization" doesn't have to start after the product is working. Choosing a platform that supports your requirements from the start, if that's an option you have, has the potential to significantly mitigate what we'd traditionally call optimization in the sense of "we built it, holy crap, now how do we scale it?"
But this limits me to writing what I want. In some cases, it is more concise to simply write how to get there---especially when you can accomplish two aims at once.
It isn't the most common way of looking at it.
[1] http://twvideo01.ubm-us.net/o1/vault/GD_Mag_Archives/GDM_Jun...