3 ms·
I would not go this far - writing code like this is fun. What you should never do is use code like this in anything important.
by danieltillett 9y ago
I would not go this far - writing code like this is fun. What you should never do is use code like this in anything important.
- ocharles 9y agoImportant code has a way of starting out unimportant.
- danieltillett 9y agoThis is true, but including code like this should make it easier to know you should rewrite if you are going to use it in something important. I have been bitten more often by quick hack code that looks OK on the surface than code that is full of clever code like this.
- blktiger 9y agoI could _maybe_ see this code ending up in production code where performance optimization matters (if it actually fixes a performance issue). But if you did that you had better put a comment next to it clearly explaining why you had to do that for optimization purposes and how it works.