|
|
Bite-Sized Python News & Updates |
Hey Pythonista,
How is your week going?
We have some exciting things lined up for you this week.
Let's start with books.
|
|
 |
|
Simple reading tracking |
We're not huge fans of Goodreads. It feels clunky and its UI overwhelming. All we wanted to do was track the books we'd read and maybe see what our friends were reading. 💡 😍
So, we did what we usually do in these types of situations: scratch our own itch. We built our own tracker: Pybites Books 📖
The best part, all you need is an email and a username to get started.
Once you're in, either start adding books from scratch or import your existing Goodreads reading history. Check it out and let us know (a complete redesign / overhaul is on its way, including more gamification🔥 so stay tuned ...)
If you know people, including schools, that could benefit from this app, please pass it along 🙏
|
Try it out!
|
|
|
|
Pybites Platform supporting university students |
Check out this amazing feedback from Ian, an Industrial Engineering Student at North Carolina State University! If you have any uni students in your life, send them to the platform so they can get a leg up on their Python learning 🤩
"PyBites is an incredible platform for anybody looking for hands-on practice. For me, it was a lifesaver in some of my engineering classes. As we went through the curriculum, PyBites challenged me with real-world coding practice that truly enhanced my problem-solving skills. I had little experience with Python, and was very pleased that it built on itself over time. Since using PyBites, I’ve gained confidence in writing cleaner, more efficient Python code, and I’ve seen real improvement in my coding abilities. Highly recommend!
- Ian White, ISE, NCSU
|
Get coding
|
|
|
|
Tired of classes? Try closures |
With a closure you can also manage state but instead of in a class, you'd do so inside a function. 🎉
See a simple example to the right.
(`nonlocal` allows the inner function to update a variable from its outer function.)
The `counter` function returns a function that increments a counter.
``` c = counter() print(c()) # 1 print(c()) # 2 ```
The `increment` function has access to the `count` variable, even after `counter` has returned.
When to use them over classes?
• When you have a simple state that doesn't require
multiple methods.
• When you want to encapsulate state inside a function (though it’s still accessible via `__closure__` 🤔).
• When you want to avoid the overhead of creating a class.
|
Discuss in the community
|
|
|
|
Boost Your Dev Portfolio Fast |
Shout-out and congrats to Zach for wrapping up the PDM program obtaining the Pybites Certified Python Developer - Pro (PCPD-P)
In his words: "I've wanted to learn to code for a long time and finally took the jump after learning the basics over and over again. This program has helped me go from only knowing the basics to building three full-stack python apps! I've learned so much in such a short time and am super excited to see where these skills will take me."
3 fully-fledged apps that boost Zach's GitHub profile, the contribution graph on the left is no joke! 🎉 💪 📈
|
Boost your dev portfolio in just 3 months
|
|
|
|
Dev Humor Corner |
|
If you thought anything is private in Python, think again LOL
Source: reddit
This came up in my (Bob) LinkedIn post on closures (I also showed some ways to really make something private in Python - see here).
|
|
Learn more
|
|
|
Keep pushing forward on your coding journey with Pybites as your partner. We're here to help you succeed every step of the way.
|
|
 |
|
\n\n\n\n
|
|
|