Trey Hunner
Python trainer Trey Hunner's articles on writing clear, idiomatic Python and on learning and teaching the language.
Python trainer Trey Hunner's articles on writing clear, idiomatic Python and on learning and teaching the language.
At PyCon US 2025, I gave a lightning talk entitled Systems, gates, and rage . This page contains a text version of that talk. Not Experts Exchange Do you remember Experts Exchan...
Nearly every book I’ve read on teaching and education over the past decade has talked about the value of spaced repetition . For much of that time, spaced repetition has been so...
I’m at home, experiencing both FOMO and vicarious joy as I see pictures of Django friends reuniting at DjangoCon US this week. And I just read that Dolly Parton passed away. I i...
The sys module is the primary junk drawer of the Python standard library. A good junk drawer holds miscellaneous items that don’t have another sensible home. I often think of ut...
Did you know that you can customize the Python debugger (PDB) by creating custom aliases within a .pdbrc file in your home directory or Python’s current working directory? I rec...
How to measure an LLM in 2026, from perplexity, BLEU and pass@k to RAG faithfulness, LLM-as-a-judge, agent reliability and error bars, with worked examples.
· 36 min read
10 advanced prompt engineering techniques for LLM apps, including self-consistency, ReAct, structured outputs, context engineering and evals, with code.
· 14 min read
20 copy-ready AI prompts for developers, covering planning, debugging, tests, code review, refactoring, SQL, regex, security and coding agent rules.
· 8 min read