How to (Not) Write Textual
-Apps
Textual
is a great framework for text-based UI applications and has a very well written documentation to get started instantly.
In addition, here are some tips I wish I had known when I started.
Textual
-AppsTextual
is a great framework for text-based UI applications and has a very well written documentation to get started instantly.
In addition, here are some tips I wish I had known when I started.
In Python, strings are not simply a sequence of characters and a character is not limited to a single letter, digit or punctuation mark. Here is how that led to surprises in using Python bindings for Y-CRDTs.
The logging
module defines the standard way of handling log message flow in Python.
Although powerful and automagic, its setup can be a bit more involved for not-quite-standard situations, like having a separate logger for each instance of a class.
Also, mentioned best practices requires non-intuitive solutions by the using programmer.
Read on for some recipes outside the default cookbook.