-
- The line between functional programming and OOP is way grayer than most silly online articles try to make it seem. If you have mostly fixed data, and you think your project will scale by adding functionality, then functional programming is a good fit. If most of the functionality is already modelled and fixed, and you think your project will scale by adding more data, then OOP is a good fit. Most projects are combinations of both.
- Supercontest
- A good software design reminder: separate functions that read/write data from those that analyze the data. For example: the function that calculates if a pick is good. It queries the picks and matchups, does the math, then commits the results. Instead, it would be better as two functions: one that does the math, then a wrapper that does the query, calls the math func, then does the commit. This makes it a lot easier to unittest. You can write one just for the analytical part, then another that tests the db interfaces.
- Webtesting options.
- The dev containers (flask and postgres) only consume about 10% memory (maybe 300MB). Not much cpu diff.
- Unittests.
- Changed get_app to accept a URI to make unittesting easier (creating a temp postgres db).
- Remember the javascript analogs for python:
- python=node, pip=npm, virtualenv=nodeenv, pylint=eslint, pytest=jasmine
- Ran some delinting for javascript.
- Did a little more bazel research. Still not the most useful thing for python, which doesn’t need to be built. Think of it like a make system. You have inputs, you have recipes that define what to do with the build, and then you have outputs (usually files).
- The real power comes when everything in a highly complex system is built with bazel, because then you can define the deptree for the whole project/monorepo/whatever, even across languages.
- Everything is a file, remember! This is why I think the python-package-support is a halfway solution.
- Keanu Reeves founded a motorcycle company in 2011 named ARCH and it is headquartered in Hawthorne, CA!
- Started using the whatsapp web app on my laptop. Convenient.
- Also switched my default messaging (SMS) app to google, which has a web app. Texting from my browser on the laptop!
- Changed the trackpad setting from area to fingers (1 anywhere for click, 2 anywhere for right click).
- Reinstalled GNOME system monitor. Wasn’t working properly. Still amazed at how resource-hoggy chrome is.