|
|
|
Bite-Sized Python News & Updates |
|
 |
|
|
Writing Python like it's Rust |
Hey Pythonista
I see 3 reasons to learn Rust right now:
More and more Python tools are being developed in Rust, it's in the Linux Kernel, and did you know there is also a Rust for CPython Pre-PEP?
It's a well-designed and elegant language, learning Rust involves learning some really good design patterns.
Even if I never write anything big in Rust, learning the language will make me a better Pythonista/programmer because its strict, and Python can be too loose, which can bite you at runtime.
The good news is that you can use certain patterns and tooling in Python that introduces some of that strictness. Jakub Beránek did a great job listing them out here: Writing Python like it's Rust
I just did a summary post on my LinkedIn as well if you want my quick takeaways.
Above all type hints are an easy win. Even though Python doesn't enforce them, you can do so with tooling (mypy or the new ty tool).
Apart from reliability, it makes code a lot more readable (you immediately see what functions expect and return), and your IDE shows you richer info about your objects!
These are all things I've learned just by immersing myself in building tools with Rust. Apart from this great conceptual article, most of Rust made more sense when I started tinkering, building, getting stuck, and seeking solutions.
And of course, if you're interested in building your own expertise with Rust, you don't want to miss our upcoming Rust cohort - kicking off in January 2026.
Click the link below to check it out and have a wonderful week.
Bob
|
| Check out the next Rust Cohort
|
|
|
|
|
Python Challenge: code a TUI this month |
|
This month's Pybites Community Code Challenge is up!
For this one we're challenging you to build a TUI (textual user interface).
Bob just made a first version, building a TUI wrapper around a code quality checker he built the other day -> Textual is so nice!
Use the link to check out the challenge and join in!
|
| Join the monthly Pybites Challenge
|
|
|
|
|
|
AOC is here in the Pybites Community |
|
It's December folks, so that means it's time for the Advent of Code.
Join us in the Pybites Community where community member, Michal, is leading the charge for us all.
He'll be creating a post for each AOC exercise so everyone can share their thoughts, ask questions and collaborate on solutions.
This is another chance to code with us over the holidays so don't procrastinate. Get started using the link below.
|
| Get started - Advent of Code
|
|
|
|
|
|
Groan... |
|
Why did the Data Scientist bring a stalk of bamboo to the office?
He needed to feed his pandas.
|
|
|
|
|
|
|
 |
|
| \n\n\n\n
|
|
|