Pybites (@pybites) header
Pybites (@pybites) profile picture

Helping people worldwide to improve their #Python #developer skills. Created by @bbelderbos & @juliansequeira.

Worldwide
Joined December 2016
Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)Photo by Pybites (@pybites)
Reading about #Rust doesn't make you write it. What works: write a bit of Rust every day and let the compiler push back.
1
1
6
1,020
Creating an AI agent isn't that hard. Call an LLM API, parse the response, loop. Building one for production? A different story. And I think that's becoming one of the most important skills for developers working with AI. Thinking in systems. Applying proven design patterns.
6
1
4
465
A Python script takes minutes to run. Rewrite the critical part in #Rust and call it from #Python with PyO3. 🦀 Now it runs in milliseconds. 🏃 No need to rewrite the app. Just the hot path. That's the approach Jim and I teach at scriptertorust.com. Keep Python where it's productive. Move the slow 5% to Rust when you have the numbers to justify it. Learning Rust isn't easy, but porting a real bottleneck makes it stick. And it makes it more fun. What's one part of your Python codebase you'd love to make faster? 👇
2
1
12
583
Did you see this? uvx --python 3.15 whatsnewt What a cool way to train people on a new release! 🐍 😍 #Python
4
1
13
1,531
Thanks 🙏 @realpython for featuring my #Python + #Django design patterns article, where I walk through the design decisions behind my Commit Graph habit-tracking app. 🚀 I really liked how you framed it as a “this worked in this case, and here's why I did it” kind of article. Those are my favorite pieces to write. They help us move beyond “this library does X” toward “how should we think about software?” And I believe that kind of engineering judgment is becoming more of a moat these days as well. 🎧 Listen to the discussion here: realpython.com/podcasts/rpp/… I'm already working on Part II… 👀
1
7
319
Just published a new crate to crates.io: bob-json-parser 🦀 It's a JSON parser written from scratch in #Rust: a hand-written tokenizer and a recursive-descent parser, with no serde. PyO3 bindings let you call it from #Python as a native extension. It's the 6-week capstone of our <Scripter to Rust> cohort, and I built it alongside last cohort. I published it so I can use it in another tool I'm building that needs to parse JSON logs, simply: `cargo add bob-json-parser` Check it out -> crates.io/crates/bob-json-pa… Curious about leveling up with Rust? DM me or join our community -> scriptertorust.com
4
1
7
446
LLMs can write syntax, but they can’t replace human engineering judgment. As AI agents generate more of our codebases, live design sessions become *more* valuable, not less. Juniors still need to learn how experienced engineers THINK, something async code reviews only partially answers. Ensemble (mob) programming makes live architectural thinking, trade-offs, and micro-decisions visible in real time. I co-hosted live ensemble sessions back before AI agents, and developers loved verbalizing *why* they chose specific patterns. So I built a lightweight tool for it: 👉 Try the MVP: ensemble.belderbos.dev (zero installs and signup, Pyodide Python, driver/navigator timers) 👉 Help test drive it: belderbos.dev/community/ I'm curious to gauge interest: in an agentic world, do you feel the need for live, human-to-human design and coding sessions has grown? How would you use this? 👇
1
2
4
371
I just hand-coded a simple FSM (Finite State Machine) in #Python 💡 Some people might ask: It’s 2026. Why even code by hand? Because the thinking, debugging, and deeper understanding that go into an exercise like this are still valuable. I had to reason through the design, trace what was happening, debug it, and really understand the code. It's slower, but now I own it. And I can teach it better. It was also one of my happier moments this week. Only reading code and managing agents is not the same as being in touch with the code and understanding how something works at all levels. (I also had to explain Rust ownership / the borrow checker this week 💪) Now I'm going to do it again for my YouTube channel. We'll see how much hand-coding remains in the industry, but I do think regularly writing code yourself is a great way to keep your technical skills and intuition sharp. And judging by the feedback I get, this is also what people seem to value most in my videos: watching the thinking behind the code so the 'how' + 'why', not just the 'what'.
2
1
7
479
Learning #Python 🐍 syntax isn't the hard part. It’s everything around it where beginner devs typically get stuck: - the terminal / SSH keys, - git and the GitHub PR flow, - virtual environments, - dependencies and packaging, - writing your first tests, - linting, - etc. Overkill for a single script. But all needed for shipping / sharing an app. I'm building a free, self-paced 6-week course to help Pythonistas learn all this and more. We do that by building a command line app from scratch using these tools + workflows. Week 1 - Project Setup & Data Model - is live now 🎉 belderbos.dev/foundations/ Each Friday I'll launch the next week of content - more info in my launch post -> belderbos.dev/blog/free-pyth… Hope this helps more Python developers ship their projects with confidence. 🚀 Enjoy and any feedback welcome, let's go! 💪 🙏
2
1
7
498
My goto for a swappable backend in #python has been an abstract base class (ABC). There is a flexible alternative though: Protocol (typing module). Take LLM providers as an example. An ABC comes with a requirement: every provider has to inherit from your base class. Fine when you write every provider yourself, less so when they're third-party plugins. `typing.Protocol` uses "structural typing" instead. Conformance lives in the method shape, not in a shared base class. So a provider can evolve freely as long as the shape holds, and inherits no methods it doesn't use. And the type checker still catches a missing method or wrong signature at lint time. I still reach for ABCs when providers share concrete behavior, but protocols are the more flexible default. So next time ask: shared contract, or shared implementation? More in my new article: belderbos.dev/blog/protocol-…
1
2
5
340
What are you building with #Python this week?
2
3
1,061
Increasingly #python libraries get rewritten in #rust. Curious about this safe + performant language? Start from scratch on our Pythonista-friendly platform: rustplatform.com/
How do libraries run #Rust inside #Python? It all comes down to 4 steps: 1. Write Rust code. 2. Annotate it with PyO3 macros. 3. Let maturin compile and install it. 4. Import the result. New article seeing this in action for a hand-rolled JSON parser: belderbos.dev/blog/how-libra…
3
1,109
The best features come from listening to your people 💡 > my local Python users group wanted to know if the free tier included a leaderboard or not as they thought it might be a fun activity for one of their meetings.
2
2
3
5,946
We've just added this. 🎉 Docs page: pybitesplatform.com/docs/mee… We hope that people running #Python meetups, workshops, or classrooms will benefit from this feature to make those events more engaging adding live coding + friendly competition. 🏆
1
214
AI made building fast. That includes building the wrong thing faster. Before writing code, you need a tight scope: what to build, and more importantly, what NOT to build. I built a simple tool to pressure-test your idea before you spend weeks building it:
3
3
1
10
687