Coding
A collection of coding tools, best practices, habits, commands
Linting
Formatting
HTMX
HTML and JS
You can use // @ts-check at the top of a <script> tag to get typescript support in VScode. Use ...
OOB Swap
With OOB Swap I mean swapping multiple elements at once, which may come from multiple template fi...
Jinja - useful commands
https://jinja.palletsprojects.com/en/stable/templates/ TODO if elif else for loop if defined
Litestar Webserver
SQL Tips and Tricks
Basics
Snippets Check if database exists Postgres SELECT EXISTS ( SELECT 1 FROM pg_database ...
Tips and Tricks
Data types Window functions Window functions are functions that grab additional data per row, e.g...
Postgres - Piccolo (Python) hints
Piccolo column types Postgres column types Postgres type Python type Piccolo type Python examp...
Svelte & Typescript
Testing
Testing (pytest)
Intro Additional info https://docs.pytest.org/en/stable/explanation/anatomy.html Initial setup In...
Testing (playwright)
How to test Click X, then Y, then Z. Finally, assert that XYZ is visible on the page. Finding ele...
Testing (svelte)
TODO
Test strategy
What to test? In the other chapters it is described how to test (pytest, playwright for frontend,...