News for hackers. Stuff that matters.
Re:Show HN: I've built self-opening trash bin, I relax mysel... by SomeoneFromCA on Tuesday September 01, 2020 @06:03AM (#24340087)
Sure, no problems, will give you feedback later, but here is one recommendation: combine group of booleans frequently used together in conditions into a new separate boolean variable. Say, for example, bool isMoving = (isOpening or isClosing).
Re:Show HN: I've built self-opening trash bin, I relax mysel... by ivanilves on Tuesday September 01, 2020 @07:07AM (#24340502)
boolean grouping sounds neat, thanks!