Share

Bite-Sized Python News & Updates

Developers are frustrated. We're here to help!

Hey Pythonista,


We take a lot of calls from people wanting to learn and improve their code, people of all levels of Python and coding experience.


Everyone who joins these calls has some level of pain they're going through on their Python journey but lately there's been an interesting and sad trend.


People are hitting a wall with the general learning methods of reading books, watching videos, and now, using AI.


While they acknowledge that the concepts are all covered by these 3 modes, the comprehension and growth is not.


Some talk about spending years going through the same routines, making false start after false start, picking the learning back up but never making any progress.


It's frustrating and disheartening.


This is where coaching suddenly becomes a viable option.


We hate to think that people need to hit a low point before considering coaching. That's life as a developer though, isn't it? We're just naturally inclined to try things ourselves. It's how long we wait until we ask for help that becomes the issue.


We all know that the best learning experiences have come from having a dedicated mentor or coach working with you 1:1, giving you bespoke advice and feedback based on your unique situation and learning style. So why do we wait so long to acknowledge that this is the way Julian wants to hear from you if you get the reference).


Last week on a call, an ex-Rugby player told us:


"The difference between the good players and the great players isn't skill, it's their coach".


If you're taking your Python journey seriously and want to grow quicker than you could ever imagine, click the button to book a call with us.


Julian + Bob


Chat with Julian and Bob

Real World Context Manager Example

Did you know that by adding `__enter__` and `__exit__` to a class, you can turn it into a context manager? 🐍 


You can also define them in a more functional way using  the contextlib module. 😎


Sometimes it's hard to appreciate how powerful this feature is, because we're bombarded with with open(file) examples. 💡


So here's a cool example of automatically rolling back a transaction in case the balance goes negative. This nicely shows how we can ensure safer operations. 🚀

🔹 Entering the context saves the current state.
🔹 Exiting checks if the balance is negative and reverts the transaction if needed.


Code example


Join the Discussion

Microsoft Unveils Quantum Chip

We wanted to highlight this incredible announcement from Microsoft last week. While we're no experts, we find the possibilities of Quantum Computing super exciting.


Also, listen to this episode of the Pybites Podcast we recorded a couple of weeks ago with Julian's cousin, Victoria, who is using Python in her Quantum Computing research! 


Watch the Recording

NLP vs AI?

In our latest article we show how to use TextBlob to do sentiment analysis in just a few lines of code. 


This makes it easier for us to filter on what needs fixing the most 😅 


As we wrote the article, we found that TextBlob struggles with sarcasm + contextual sentiment, whereas AI-powered models handle nuance significantly better 💡- interesting! 


Bonus: we also show how SQLAlchemy’s automap works to dynamically map database tables to Python objects + see uv / Makefiles in action.


Check out the article + join in the discussion on Circle.  


Read the Full Article

Dev humor corner

"If debugging is the process of removing software bugs, then programming must be the process of putting them in." – Edsger W. Dijkstra

\n\n\n\n

Email Marketing by ActiveCampaign