Andrey (azangru) wrote,
Andrey
azangru



Regarding the code in the middle:
- first, if you ran a regex that expects a number, and you captured that number, then why are you checking that it’s not null?
- second, if cacheVersion (which is a number) does not equal version (also a number, which happens to start at 1 and increment by 1 every now and then), then why do you care whether it’s equal to 0? why the noise?

(And he also ran a map entirely for side-effecty purpose; instead of forEach. Every time I see it, and I see it far too often than I would like, I lose my shit.)
Subscribe

  • (no subject)

    Someone who self-identifies as a technical writer, among other things, begins her article How To Build An E-Commerce Site With Angular 11, Commerce…

  • (no subject)

    Today I learned that "open-source" does not mean just having the source code in the open. I thought the legalities were only around the term "free…

  • (no subject)

    Cute; but as far as I understand, it is React that innovates on the apis and Preact (and others) that follows to maintain compatibility or…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments