A few examples that will save the day probably* 95% of time. *I don’t have the actual data but seriously, I bet you’ll find those tips useful more often than not! Introduction This article was originally posted on Medium. I use f-strings every day. The irony is I also every day end up searching the Web to… Continue reading Python F-String Codes I Use Every Day
Python F-String Codes I Use Every Day
By Pawel Jastrzebski on 5 April 2024
A Better Place to Put Your Python Virtual Environments
By Ahmed Lemine on 7 March 2024
Virtual environments are vital if you’re developing Python apps or just writing some Python scripts. They allow you to isolate different app requirements to prevent conflicts and keep your global OS environment clean. This is super important for many reasons. The most obvious one is requirements isolation. Let’s say that you’re working on two different… Continue reading A Better Place to Put Your Python Virtual Environments
Build a route planner for maps using Python
By Judith Vockenroth on 7 March 2024
In this article I use the metric system, where 1 meter = 3.28 feet. I also talk about highways. Here I use the definition in British English, where highway refers to any path with a public right of access. We are all familiar with the existence of route planners like google maps or OpenStreetMaps (OSM),… Continue reading Build a route planner for maps using Python
Case Study: GitHub Copilot and the deceiving ladder
By Michael Aydinbas on 7 March 2024
Can GitHub Copilot be used to solve mathematical puzzles? What to be aware of when AI assistants are too confident.
Stuck in import hell? Walk your way out.
By Russell Helmstedter on 22 February 2024
Welcome to Hell Cue the theme song from The Fresh Prince of Bel Air. This is a story that turns out well. But my code got stuck in import hell. I tried to teach my students all about pytest. Instead, for two days, I was sent on a debugging quest. I teach middle school students… Continue reading Stuck in import hell? Walk your way out.
Leveraging typing.Protocol: Faster Error Detection And Beyond Inheritance
By Bob Belderbos on 9 February 2024
Introduction Two weeks ago I wrote an article about ABCs and interface enforcement. Shortly after I learned that you can do this as well with protocols. Python 3.8 introduced quite a groundbreaking feature that further advanced the language’s capabilities in type checking: the typing.Protocol which allows Python developers to define and enforce interface contracts in… Continue reading Leveraging typing.Protocol: Faster Error Detection And Beyond Inheritance
How to Send Email Notifications Using Sendgrid and GitHub Actions
By Bob Belderbos on 7 February 2024
Introduction As a Python developer I want to stay up2date with trends and useful tips & tricks. Of course there are great newsletters like Pycoders, but those are already hitting my inbox. Let’s look at Planet Python in this article, an aggregation site/ service that indexes a lot of good Python blog feeds. Keeping an… Continue reading How to Send Email Notifications Using Sendgrid and GitHub Actions
Elevate Your Python: Harnessing the Power of Abstract Base Classes (ABCs)
By Bob Belderbos on 26 January 2024
Introduction One cool object-oriented programming (OOP) technique / pattern is enforcing consistent interfaces. In Python you can use Abstract Base Classes (ABCs) for that. 🐍 Using ABCs ensures that all subclasses implement the required methods. This can make it easier to maintain and extend the existing code base. Update Feb 2024: you can also leverage… Continue reading Elevate Your Python: Harnessing the Power of Abstract Base Classes (ABCs)
Exploring the Role of Static Methods in Python: A Functional Perspective
By Bob Belderbos on 24 January 2024
Introduction Python’s versatility in supporting different programming paradigms, including procedural, object-oriented, and functional programming, opens up a rich landscape for software design and development. Among these paradigms, the use of static methods in Python, particularly in an object-oriented context, has been a topic of debate. This article delves into the role and implications of static… Continue reading Exploring the Role of Static Methods in Python: A Functional Perspective
Elevating Python Mastery With Pybites Real-World Developer Certifications
By PyBites Team on 6 December 2023
“The most rigorous certification program of its kind … the total end result of which is an absurdly high number of finished, feature-rich, production-ready software applications.” – Josh E Introduction In the world of Python programming, Pybites stands out with its unique approach to education and certification. In an era where programming skills are in… Continue reading Elevating Python Mastery With Pybites Real-World Developer Certifications