@pybitesi
iAccount based inSpain!
About this account
- Account based in
- Spain
- Connected via
- Web
! X says this location may be affected by a proxy or VPN.
Account-level information from X, not a live location or the device used for a specific post.
Helping people worldwide to improve their #Python #developer skills. Created by @bbelderbos & @juliansequeira.
Worldwide
Joined December 2016
- Tweets12K
- Following241
- Followers31K
- Likes16K
Pybites retweeted
Scripter to Rust cohort: scriptertorust.com
Rust coding platform: rustplatform.com
Pybites retweeted
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! 💪 🙏
Pybites retweeted
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-…
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…
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. 🏆
Pybites retweeted
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:
Pybites retweeted
Why Rust does not need OOP
have a read guys.
belderbos.dev/blog/why-rust-…
Now apart from learning #rust by coding practical exercises, you can also discuss them upon solving ->
Coding is nice, talking about code can be even more interesting.
#Rust platform feedback / request:
> I am missing the discussion about different solutions I remember from PyBites. That was the best part of the platform for me.
Great idea and live now! 🎉
Pybites retweeted
What is the output of below Python (3.15) code and why?
a. {'a': 1, 'b': 2, 'c': 4}
b. {'a': 1, 'b': 99, 'c': 4}
c. {'b': 99, 'c': 4, 'a': 1}
d. TypeError
Pybites retweeted
Code it here → rustplatform.com/mini-parser
And share the 🥷 belt you've obtained with me (@bbelderbos) and @pybites
Pybites retweeted
Curious about Rust to add a robust language to your tool belt, start here: rustplatform.com/
Pybites retweeted
Day 10 · Basic Tokenizer 🦀
Ok, after 9 concept days/exercises, time to build something more real in #Rust. 💪
In Bite #10 you'll turn raw text into tokens. The first step every parser, compiler and interpreter takes.
Pybites retweeted
Day 13 · Custom Error Types 🦀
Python: subclass a built-in exception (e.g. `Exception`)
#Rust: define an `enum` of everything that can go wrong.
Pybites retweeted
Python made me lazy about how my code actually runs. #Rust fixed that.
5 reasons to pick it up sooner rather than later:
Pybites retweeted
Replying to @owenthcarey
I think we still should right? AI or not, keep the friction + intuition!
Biased (creator) but preferring @pybites for this because it's less heavy on algos, more on core python and rust.
Pybites retweeted
Profile First: A 10x Faster Django Test Suite #python belderbos.dev/blog/profile-d…