@overload
Decorator
Python doesn't support true function overloading, but can fake it using the typing module's overload decorator.
By Christoph Schiessl on Python
The article discusses how to validate the word count of web pages for SEO purposes. It explains how to use JavaScript to count the number of words in HTML documents.
By Christoph Schiessl on JavaScript
min()
and max()
Functions
Python's min()
and max()
functions can take an iterable
or multiple positional parameters, and support a key parameter for custom comparisons.
By Christoph Schiessl on Python
Learn how to have your OS randomly select a port number for your web server to get around the issue of hard-coded ports during development.
By Christoph Schiessl on Python, FastAPI, and DevOps
sum()
Function
In this article, we explore Python's built-in sum()
function, its parameters, and some extreme use cases it wasn't even designed for.
By Christoph Schiessl on Python
I send two weekly emails on building performant and resilient Web Applications with Python, JavaScript and PostgreSQL. No spam. Unscubscribe at any time.