News for hackers. Stuff that matters.
Re:Has_not_been_viewed_much by zem on Monday July 06, 2026 @03:54AM (#48801827)
why, though? the current version is the interesting property
Re:Has_not_been_viewed_much by ramon156 on Monday July 06, 2026 @04:14AM (#48801962)
They meant that a more ergonomic name would be "has_been_viewed_much", so you can filter by the inverse and still get the same result, but with a better name
Re:Has_not_been_viewed_much by zem on Monday July 06, 2026 @04:22AM (#48802032)
I know what they meant, I was saying that imo the ergonomic name is has_not_been_viewed_much. it's directly expressing the property you are interested in, as opposed to expressing the negative property and comparing it to false.
Re:Has_not_been_viewed_much by Paul_Clayton on Monday July 06, 2026 @07:40AM (#48803320)
How about rarely_viewed? Such expresses the property of interest, avoids the double negative issue, and is shorter?

Of course rarely might imply a frequency much lower than the cutoff and infrequently has a bit of the double negative issue. Tradeoffs.

Re:Has_not_been_viewed_much by Cthulhu_ on Monday July 06, 2026 @07:21AM (#48803193)
There's a rule of thumb somewhere that booleans should always be named / represent something positive, so "enabled" instead of "disabled", "visible" instead of "hidden", and "has_been_viewed_much" instead of "has_not_been_viewed_much".

see e.g. https://codehealth.dev/prefer-positive-booleans/