I was once taught that you can easily cut spaghetti using a cup turned on its head. It honestly works great if you don’t mind the cup being a bit messy!
I was once taught that you can easily cut spaghetti using a cup turned on its head. It honestly works great if you don’t mind the cup being a bit messy!
Yep, that’s a much better way! It’s like the “goes down to” operator - a neat trick you should never use :)
while (i --> 0) { ... }
You can go one step further and use the Bang-Bang operator:
!!m
To be read as “Bang! Bang! You’re a boolean now!”
With a cup you can cut a whole plate of spaghetti into small pieces in a couple of seconds. Doing so with a knife is much harder and takes longer.