Blog: 2023-12-20: Difference between revisions

From razwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 14: Line 14:
* automatic dotenv (actually not really, since it's fraught and deals with cross platform issues now)
* automatic dotenv (actually not really, since it's fraught and deals with cross platform issues now)
* automatic current directory in PYTHONPATH (dangerous because if you have a sys.py it will overwrite the builtin sys.py...) so actually not doing this
* automatic current directory in PYTHONPATH (dangerous because if you have a sys.py it will overwrite the builtin sys.py...) so actually not doing this
** but you can tell beginners to set up their project as a module and `python -m pip install --editable .` - a better solution! Though python packaging is a rabbit hole and I'm not sure about this example having 3 setup files...
*** https://www.inspiredpython.com/course/create-tower-defense-game/tower-defense-game-getting-started

Latest revision as of 02:48, 22 December 2023

Draft of a guide to debian

  • it's its own operating system, less addons than ubuntu and smaller and good stuff. Wikimedia uses it
  • install kitty as terminal emulator, change keyboard shortcut ctrl-alt-t to open it instead
  • ctrl-alt-e open text editor - emacs

Something about letting applications steal focus - could do some digging on why it behaves this way. Worth acknowledging that windows is annoying in this regard... and macos... as apps load, they steal focus sometimes multiple times even


Ways to make python easier for beginners

  • no more venv... just use a local python_modules directory
  • automatic dotenv (actually not really, since it's fraught and deals with cross platform issues now)
  • automatic current directory in PYTHONPATH (dangerous because if you have a sys.py it will overwrite the builtin sys.py...) so actually not doing this