Articles that include code in some form

279 343,077 33,676
articles words lines of code

This is a short tutorial on how to use modal screens with Textual.

Today I learned why I should use the dbg! macro instead of the println! macro for debugging in Rust.

Learn how to write your first Python module in Rust.

Today I learned how to use the VS Code debugger in code from “other” modules.

Today I learned about the skip list data structure.

Today I learned not to cache generators.

Today I learned how to optimise my website images for the web and I automated that process.

This short reference article shows how to stream data from a Flask web app to HTMX using server-side events (SSE).

Learn how to build a simple TODO app in Python with this step-by-step Textual tutorial.

Learn keyboard shortcuts that will make you a more efficient and productive Python programmer with VS Code.

Today I learned you can have invisible variables in Python.

Learn how I used Python in my daily life to convert 5,000 RAW images into the JPEG format.

Today I learned how to create xkcd-style plots in Python with matplotlib.

In this introductory tutorial, you will build a recurrent neural network (RNN) with PyTorch.

The Python module collections contains many useful tools. This is an overview of those tools.

Go through the complete code for a Python project that consists in finding similar photographs in a folder. This tutorial will make use of classical techniques and is suitable for beginners.

How do you implement a case-insensitive (or caseless) dictionary? In this article we explore solutions where we inherit from the built-in dict, the abstract base class MutableMapping from the standard module collections.abc, and the UserDict in the standard module collections.

Learn how I found over +10,000 bugs in Python code all over GitHub and how all those bugs could have been fixed by importing the Python module string and using the constants ascii_lowercase and ascii_uppercase.

This is a short and practical tutorial that guides you on how to work with case-insensitive strings in Python and teaches how to use the str.lower, str.upper, and str.casefold methods.

Running Python inside ChatGPT shows some amazing capabilities that ChatGPT has to understand Python code and evaluate it for you.