assert on the call_count attribute of a mock instead of trying to use methods on it like .assert_called_once_with()
"a mock’s job is to say, “You got it, boss” whenever anyone calls it. It will do real work, like raising an exception, when one of its convenience methods is called, like assert_called_once_with. But it won’t do real work when you call a method that only resembles a convenience method, such as assert_called_once (no _with!)."
you can access it from object.__doc__, and there is tooling in ide's like pycharm to quick view them to see what a function does, auto generated documentation
prior to mypy/type hints it allowed you to document the types of a function
I used to live in vegas, when did yucca mountain get NIMBY'ed?
>The project was approved in 2002 by the 107th United States Congress, but federal funding for the site ended in 2011 under the Obama Administration via amendment to the Department of Defense and Full-Year Continuing Appropriations Act, passed on April 14, 2011
Wonder if the chording keyboard was an extension of stenotypes
>The stenotype keyboard has far fewer keys than a conventional alphanumeric keyboard. Multiple keys are pressed simultaneously (known as "chording" or "stroking") to spell out whole syllables, words, and phrases with a single hand motion. This system makes real-time transcription practical for court reporting and live closed captioning. Because the keyboard does not contain all the letters of the English alphabet, letter combinations are substituted for the missing letters.
yeah, it's not like this is a randomized experiment so there might be confounding factors. Observational studies aren't very useful for determining causation in general
The most interesting thing I've seen as far as this is concerned is Taint Analysis. You can label functions as returning user input, some functions take user input and turn it into sanitized input, and there are functions that should never take non-sanitized input.
why am I even paying them, with Joplin I can also sync to Dropbox. And I still have to pay them even if I'm self hosting
I think Joplin is more single purpose since it doesn't focus on the server side, and is just a client
On OSX/iOS, if you don't care about markdown/open-source/self-hosting you should just use Apple Notes