PythonHub
2.53K subscribers
2.35K photos
50.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Nested Loops Aren’t the Problem. This Is.

This video explains why nested loops are often a design problem rather than an algorithmic necessity, typically resulting from poor data structures or misplaced responsibilities. Using a real-world refactoring example, it shows how restructuring code can reduce complexity and improve maintainability.

https://www.youtube.com/watch?v=095HrcWwHLI
The 2026 way of using importmaps in Django

The post explains a modern Django approach to JavaScript using import maps, native browser modules, and a shared import map rendered by Django templates. It argues that import maps can eliminate the need for bundlers in many applications while still supporting cache-busted static assets and reusable third-party app JavaScript.

https://406.ch/writing/the-2026-way-of-using-importmaps-in-django/#the-2026-way-of-using-importmaps-in-django
Testing in Python with pytest: from the basics to advanced techniques

This comprehensive guide covers pytest from basic testing concepts to advanced techniques such as fixtures, parametrization, mocking, and asynchronous testing. It provides practical patterns for building maintainable, scalable Python test suites and leveraging pytest effectively in production environments.

https://en.andros.dev/blog/b6bf68de/testing-in-python-with-pytest-from-the-basics-to-advanced-techniques/
GitHub Pages alternative with native Python

This article shows how to recreate core GitHub Pages functionality using only Python's standard library, including static file serving, automated deployments, and HTTPS support. By extending http.server in just a few dozen lines of code, it demonstrates how native Python tools can power a lightweight static website hosting platform.

https://blog.klemek.fr/articles/2026-06-14/