PythonHub
2.49K subscribers
2.35K photos
49.7K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
I Made a Classic Refactoring Mistake

Arjan addresses mistakes in his prior video's refactoring of a messy order approval function, identifying three logic errors via failing tests. He discusses refactoring pitfalls like incomplete tests (86% coverage despite bugs), tricky and/or conditions, data structures, and the lack of a true "ground truth" in business logic.

https://www.youtube.com/watch?v=b6RnBKvQ40o
Moving Scratch generation to Python on browser

https://kushaldas.in/posts/introducing-ektupy.html
SnackBase – Open-source, GxP-compliant back end for Python teams

https://snackbase.dev
pyPFC: An open-source Python package for phase field crystal simulations

A Python framework for setting up, running and analyzing 3D Phase Field Crystal (PFC) simulations.

https://github.com/HHallb/pyPFC
How I Used Claude to Build a Transcription Bot that Learns From Its Mistakes

John Voorhees describes building a transcription pipeline that combines deterministic Python scripts for initial cleanup with Claude's "fuzzy" reasoning to catch obscure phonetic errors. The system uses a feedback loop where Claude identifies misspellings like "goti" for "GOTY" and automatically updates a persistent dictionary to ensure the bot becomes more accurate with every episode.

https://www.macstories.net/stories/how-i-used-claude-to-build-a-transcription-bot-that-learns-from-its-mistakes
The Emperor Has No Clothes: How to Code Claude Code in 200 Lines of Code

Mihail Eric argues that the core functionality of complex AI coding tools like Claude Code or Cursor is not magic but rather simple agentic logic. He demonstrates that these systems can be replicated in about 200 lines of Python by focusing on the essential loop of reading files, editing code, and executing shell commands.

https://www.mihaileric.com/The-Emperor-Has-No-Clothes