Share

Bite-Sized Python News & Updates

Tech may change, but mindset stays the same


Hey Pythonista,


The other day someone reshared an old article of mine from 2021 that I'd completely forgotten about. I wrote it for an online magazine and titled it, "I am not good enough to be a software developer".


As I eagerly re-read my masterpiece (not biased at all!) it hit me that even though the article was almost 4 years old, the mindset tips and recommendations I shared haven't really changed. To this day I still promote the same messages when it comes to having the mindset for success as a software developer.


This is especially thought-provoking given how much the technological landscape has changed since I wrote it. ChatGPT was unleashed upon the world in November 2022, a full year and three months after I wrote the article. The tech scene is almost unrecognisably different now to what it was back then.


To me this demonstrates how important it is to consider mindset and technical skills as two separate things to work on when striving for success as a developer.


They grow independently yet are harmonious and both required to reach the level of success many of us are striving for.


And not to float our boat (ok, maybe just a bit...), but I'm glad this is something Bob and I realised many years ago when we started Pybites, and certainly solidified when we launched our coaching programs.


The addition and real focus on mindset throughout the coaching is always surprising to new clients, yet one of the keys things many of them attribute to their success on completion of the program and beyond.


If there's one thing I want you to take away from this reflection, it's that it's never a waste to spend time studying and learning ways to strengthen your mindset. Consider how you can incorporate this into whatever your daily learning and growth happens to be.


And as always, Bob and I are here to support you. 


Check out our coaching program and see exactly what our clients have said over the years using the following link (hint: mindset plays a huge part!).


Enjoy the rest of the week.


Julian


Click me for Python Coaching goodness

Are We Losing Our Programming Skills? 🎙️💡

Is AI making us better developers or eroding our fundamental coding skills?


In Episode #183: AI’s Silent Takeover – Are We Losing Our Programming Skills?, we dive into the growing role of AI in software development, its real impact on learning to code, and how developers can stay sharp in an era of automation.


We also share success stories from our coding community—because while the landscape is changing, dedication and mindset still define long-term success. 🔥

Tune in now! 🎧

🐍 Python Tip: Save Memory with __slots__ 🚀


If your class creates a lot of instances, you can reduce memory usage by using `__slots__`.

Instead of a dynamic `__dict__`, it defines a static structure, preventing new attributes but saving significant memory. 💡

In the example, w1.a = 1 works, but w2.a = 1 raises an AttributeError because WithSlots has predefined attributes only.

Gain? Almost 3x less memory usage! 📈

📌 Check out the image for the full code and memory comparison.


Although this is a nice tip, somebody rightfully commented: 


> If you are using Python (which is a great language BTW) and you need to save memory by tweaking class parameters then I've got a bad news for you: You need to use Rust / C++.

Join the Discussion on LinkedIn

Uv Console Scripts 🚀

How to add a console script to your Python package?

1. Init a package: `uv init --lib mypackage`

2. Add function to module

3. Define `[project.scripts]` in `pyproject.toml`

4. Build: `uv build`

5. Install + run: `uv pip install -e . && uv run hello`

Check out the Full Tip

Dev Humor Corner

"It's not a bug – it’s an undocumented feature!" 
– Every software developer (at least once) 

\n\n\n\n

Email Marketing by ActiveCampaign