Pybites
@pybites
Helping people worldwide to improve their #Python + #developer + #mindset skills. Created by @bbelderbos & @juliansequeira. Join us: http://pybit.es/community/
Yes that's right! Join our weekly newsletter and you'll get 250 real-world practical #python tips for free! 🐍 🔥 📈
TIL: You can force keyword-only arguments in dataclasses (#Python 🐍 3.10+) 🔥 Just add `kw_only=True` - a small change that makes your code more readable and safer. No more guessing what positional values mean or accidentally swapping arguments. Simple example below ->
How to sort case-insensitively in #Python 🐍 Tempting to write `key=lambda word: word.lower()`, but `str.lower` is cleaner, faster (C under the hood), and just more Pythonic 😍📈
We just published a new #podcast 🎧 episode with the authors of #Python #Polars The Definite Guide @jeroenhjanssens and @thijsnieuwdorp 🎉 😍 - enjoy 💡😎 youtube.com/watch?v=_c3JE3…
Building an AI Pipeline with #GitHub Actions youtube.com/shorts/RVtraNj… via @YouTube
"Code is like humor. When you have to explain it, it’s bad." - Cory House
#Python Parameters - What's that / and * doing there? - And what is *args... youtu.be/uLrVUnVeLdk?si… via @YouTube
`collections.Counter` isn’t just the most convenient way to count items in Python, it’s also shorter and faster, nearly 2× faster than a manual defaultdict approach. 🏃 #Python #tips
Speed Matters! Complexipy Was Born Out of Frustration With Slow Pipelines youtu.be/o6z0cBuNqUI?si… via @YouTube
We just released a new podcast 🎧 🎉 episode in which we talk with @hafitoalimania, creator of Complexipy, an ultra-fast 🏃 'cognitive' complexity analyzer 💡 for #Python 🐍 code, powered by #Rust 🦀 - enjoy! youtube.com/watch?v=plYStC…
Ever wondered why your enum comparison in #Python didn't work? Maybe you were comparing the enum 'object' to a string? With regular Enum, this can fail silently. Python 3.11 introduced `StrEnum` which fixes this by making enum members behave like strings.👇
Functions First, Classes When Needed youtube.com/shorts/y-k5q7E… #python
Confidence in Coding: Solo vs. AI Assistance youtube.com/shorts/Fs5tVdQ… with @fullstackpython
I love decorators 🐍 😍 - add common behavior to a set of functions (or classes), without modifying the original code. A classic design pattern, elegantly implemented in hashtag#Python, leading to clean, more maintainable code. 📈
Become a Better Pythonista by Embracing the #Python #Developer #Mindset youtube.com/shorts/n0VLdnR…
Dramatically Speed Up Your #Python Code with Caching youtube.com/shorts/vE9KNuZ…
Pytest combinatorial testing tip -> you can use `params` with fixtures 💡 I was repeating back-ends in multiple tests using `parametrize`, then I learned through reviewing somebody's code that the `pytest.fixture` decorator supports `params` leading to less repetitive code. 📈
New @Pybites Podcast - 195: Patterns, paradigms, and pythonic thinking with @mathsppblog youtu.be/WoMRfrvFE_M?si… - thanks Rodrigo, enjoyed our conversation!
Check out this interview with @bbelderbos. He shares a lot of invaluable insights on Python, AI and much more.
@RealBenjizo interviewed me about how I got into software development / #Python, building @Pybites, how to really learn how to code (and navigate AI), and more ...
New video on our channel: Learn #Github Actions - Building an Automated Video Summary Pipeline youtu.be/pcPE0PFdUK0?si… via @YouTube