2 Matching Annotations
  1. Mar 2024
    1. The occurrence of a do-while instead of a while should always raise a question: why isn't the loop termination condition being tested at the beginning
  2. May 2022
    1. typeof v === "number"

      Using triple equals to check the results of typeof is totally unnecessary, and a sure sign that someone, somewhere has unthinkingly adopted some dubious advice; it's a code smell/red flag.

      A standard equality comparison (using ==) does exactly the right thing while also avoiding association with questions/doubts about the quality of the surrounding code.