• Supercontest.
      • Added pytest-cov. 45% overall. Not bad! Most of the core functionality is covered.
      • JS lint/tests.
        • Activate your python venv, then pip install nodeenv, then run nodeenv -p. This creates a virtualenv for node modules integrated with your current virtualenv for python modules. Gives you the `npm <>` command.
        • ./node_modules instead of ./venv. Has a bin and all the usual. This should be gitignored. The package-lock.json should not.
        • `npx` can be used instead of `npm` at the command line. This will fetch packages as needed into tmpdirs and run them.
        • Instead of coupling it with python/tox, you can use `nave` to create a pure node venv, and then add make targets to execute whatever test commands (instead of tox).
        • You can also run through npm itself, by defining a lint task in package.json (setup.py) and `npm run lint` (pip run lint). I’ve never like coupling the package manage with the admin commands. An external infra like make is better for this.
        • Ran npm init to create a skeleton package (required for style guide).
        • Ran eslint –init to create an eslintrc.json.
        • Ran a full eslint evaluation! 113 errors in my 4 simple files. Extending Google style guide. Common fixes I performed:
          • Single instead of double quotes.
          • Const instead of let for vars that are never reassigned.
          • No double space before inline comment, like Python.
          • Regular line indents are all 2 spaces. Indents for line continuation are 4 spaces.
          • No space between function and ().
          • Trailing common after the last item in sequences.
        • jasmine init, then added the spec yml to vcs.
      • Creed from The Office is performing at Saint Rocke on June 29: https://www.ticketweb.com/event/creed-bratton-saint-rocke-tickets/9166055?pl=saintrocke. It’s not comedy, it’s music: https://www.youtube.com/watch?v=Vt6kcF-PIsE.
      • HN. Some mild interest this week.
      • Removed the js blocks from vimrc. Didn’t like the folding.
      • JS speed is important, obviously, because of clientside implications. Hence the preference for 2 spaces instead of 4. JS typically isn’t compiled or compressed, so this small percentage makes a little difference. Also, with tons of callbacks, 4 spaces can visually get way too indented.
      • PharmaDB
        • Talked a little with Art about aggregating prices into a central marketplace, like Kayak for drugs.
        • Currently, technicians spend a lot of time shopping around for the lowest prices. Pharmacies (or their parents) have contracts with vendors which change the prices. These are reflected in the account, and work automatically with the creds to log in to the vendor site.
        • Some common vendors: AmerisourceBergen, Cardinal, HD Smith, Anda, Parmed.
        • Medicaid hosts a database with (I assume) average prices: https://data.medicaid.gov/Drug-Pricing-and-Payment/National-Pharmacy-Pricing-Database-xls/uima-szn8.
        • Gonna try to get a demo account (can only see prices, not order) to write an app that fetches all this information and aggregates it in a simple marketplace platform.
      • Sugar caramelizes at about 340F. If you’re doing low and slow ~200, it’s fine. I prefer a bit of brown sugar in the texas crutch. And don’t worry about bbq sauce on ribs if you’re cooking low. Do not use sugar/bbq sauce for hot and fast.
      • Prepared the rib recipe for sunday. Going to focus on the rib tips this time instead of the st louis cut (still doing full spare racks). That’s cartilage in the tips, not bone!
      • Lots of info came for lighting in a bottle. Skimmed most of it.
      • Pivotal, the company Rachel came from, makes RabbitMQ and Jasmine. They’re owned by Dell. I knew neither of these facts.
      • Csslint is also a thing.
      • Finished the suspiria remake (2018). I watch a lot of horror movies, and I loved how different this one is. That ENDING whattttt.
      • If you have chrome devtools open on a tab, you have a LOT of data. If you login to a site, the network tab shows you the form data of the request, which literally contains your plaintext password. This can be recorded (for that tab only). After that, it’s obviously stored in a cookie so that subsequent requests don’t contain the password. Still, given all that information, another client could copy and imitate that request.
      • Sharks and Warriors playoff games.
      • Remember, TDD = Test Driven Development and BDD = Behavior Driven Development.