Notes
- Using
enumerate(some_list)
over a list provides the index and value. - Updated the pyproject.toml file for black configuration of 80 character line lengths.
- Added
absl
for testing because of thenamed_parameterized
unit testing. - Updated poetry lock file with
poetry lock --no-update
- Looked at trying to create scripts in poetry based on
https://gist.github.com/CarlosDomingues/b88df15749af23a463148bd2c2b9b3fb. It
did not work well and it was not well documented. I think we need to do
something with
packages
andinclude
on the pyproject.toml file. See https://github.com/python-poetry/poetry/blob/55024b343d22f35ad510c5790bf9d7f3292dcc5f/pyproject.toml#L22-L27 and https://github.com/python-poetry/poetry/issues/6029 (this might be helpful).
Stream Notes
- SeaFilmz raided my channel with 9 viewers and hosted with 7. Thanks SeaFilmz.
- We changed themes to Tomorrow Night Blue on VSCode because default is so default.
- GlitchButSmol showed me the Fermats Little Theorem to test primality. See https://en.wikipedia.org/wiki/Fermat%27s_little_theorem
Task Completed
- Implment the data structure and algorithm to track words
- Write unit tests for word tracker
- Document methods on the word tracker class
Future work
- Fix the _find_word_pair and _remove_word_pair redundancy. We could pop the value at that index and return word pair while also removing it from the list.
- Split the repo into twitch-bot-py and twitch-bot-ts repos
- Create blog post of cloud storage and load balancer experience for a static website
- Move dev blog from cloud storage -> firebase
Future future work
- Check out VSCode themes: palenight material (recommended by QU4K3R_), hypnos from nix theme package (recommended by GlitchButSmol)
- Use pyaudio interactions with python chatbot
- Text to speech for python chatbot
- Try out Dialogflow again (TypeScript version? and/or Python version)
- Saving stuff into Firestore (revive this)
- Revive Discord bot
Useful links
- Google Python Style Guide - comments and docstrings
- https://docs.python.org/3/library/functions.html#enumerate
- Update line length in Black
- Python Dataclasses library
- Custom Poetry scripts example
- Custom Poetry scripts
- Updating poetry lock
- https://docs.python.org/3/library/unittest.html
- Absl testing
- https://github.com/abseil/abseil-py/blob/main/absl/testing/parameterized.py
- Comparing lists with self.assertCountEqual
- Importing a Python file with relative paths