2 ms·
> can also do it the grug-brained way This way reads like: x = 1 // set variable x equal to 1 in that gt_zero echoes what the > operator does and says no
by jodrellblank 2y ago
> can also do it the grug-brained way
This way reads like:
x = 1 // set variable x equal to 1
in that gt_zero echoes what the > operator does and says nothing about intent. Comparing, e.g.
gt_zero = space > 0 // there is some space I guess?
space_for_logfile = space > 0 // oh, logfiles need space > 20 there's the mistake.
- dijksterhuis 2y agohttps://grugbrain.dev/#grug-on-expression-complexity https://grugbrain.dev/#grug-on-expression-complexity i skipped off the `space` in `space_gt_zero` because i was on my phone and couldn’t be bothered to type it out all the way each time. don’t read too much into it. it was just laziness while brining up an existing concept.