News for hackers. Stuff that matters.
Re:Math.min(Math.max(num, min), max) by fizixer on Thursday August 20, 2020 @02:57PM (#24227188)
I think some of us (most? all?) develop a tendency to act/be clever instead of act/be clear. When I resist that temptation, I ask for something like:

    clamped(num, range=[ lower_bound, upper_bound ]);
and then have no interest in how this actually gets implemented.

There are no comments on this comment yet.