Wednesday, April 24, 2019

  • FW/MD
    • Function declaration (definition) vs expression (anonymous). Obvious differences. Former allows a variable of global scope for callbacks, hoisting, etc. Latter less mem.
    • Change detection in a project usually means VCS changes for CI. Change detection in an app usually means frontend or backend. How does the view/controller respond when the model changes data?
    • In docker, `expose` in the dockerfile is just for documentation. `publish` (-p at the cli) is necessary to actually make the ports available. In docker-compose, `expose` in the yml is sufficient to do both.
    • Facebook internals. https://www.wired.com/story/facebook-mark-zuckerberg-15-months-of-fresh-hell/. Didn't read the article because it's way too long, but looked interesting.
  • The sharks/vgk game 7 last night was the best hockey game I've ever seen. The sharks came back from a 3-0 deficit by scoring 4 goals on a power play due to a 5m major. The knights tied it and pushed it to overtime, where the sharks scored to win. This sealed game 7 after coming back from a 3-1 game deficit in the series.
  • The Damian Lillard buzzer beater last night was also one of the best shots I've even seen. 37' out, at 0 seconds, against Paul George, when tied, to end the series and knock OKC out of the playoffs.
  • Ordered new shoelaces. 54" just for ref (medium high boots).
  • Jury duty summons can pull from registered voter pools or driver's license pools (or both).
  • The "utm" you always see in ref links (like HN) is "Urchin Tracking Module". Urchin is the predecessor to Google Analytics, and is simply a marketing tool. These 5 query params (utm_*) can be added to a URL to collect data: source, medium, content, campaign, term.
  • Did a couple typing tests. I'm about 90wpm with 95% accuracy.