5 ms·
I think this was posted purely for the limerick quality.
by boxfire 6y ago
I think this was posted purely for the limerick quality.
- hanoz 6y agoThere was a young coder whose hacks His manager often claimed lacked The requisite clarity For to clamp vars would he: Math.min(Math.max(number, min), max);
- drbacon 6y ago@jaffathecake had a problem of truncation and posted to Twitter his calculation. The gist of his attack was min( max( num, min ), max) yet refused to add any annotation.
- deleted 6y ago[deleted]
- jkaptur 6y agoIn a file of utility hacks near get(), post(), and ajax() // we alias at import // to keep all the code short min(max(number, min), max)
- gmfawcett 6y agoHaiku is nice, too: Cryptic sorcerer! "Math.min(Math.max(v, min), max);" his incantation.