We create Python developers - pybit.es


Pybites

Be honest: When ChatGPT, Copilot, Gemini, Claude, etc generates a chunk of code that looks correct, what is your immediate next step?
---

We're talking about "Vibe Coding" vs. "Skills Erosion" this week. It's easy to feel productive when the AI writes the code, but are we trading speed for understanding?

Curious to see where the community stands on this. Vote below! πŸ‘‡

6 hours ago | [YT] | 3

Pybites

We're really proud that our podcast highlights people from all walks of life. It isn't just about interviewing and chatting with the titans in our space.

There's so much to learn from people who are just starting out on their journey as well.


This was a great chat with Asif. It goes to show that everyone has the ability to build valuable things regardless of where they are in their career!

3 days ago | [YT] | 2

Pybites

Properties are a clean way to encapsulate logic in classes.

In Django, they help you avoid scattering state checks across views and templates (and pushing business rules into the presentation layer).

Just decorate a method with `@property` and you can treat it like a calculated attribute.

I did this in a Django model the other day. Result: DRY-er, more self-documenting code, and a single source of truth. Example πŸ‘‡

Usage:
β€’ Templates: `{% if content.can_submit_for_review %}`
β€’ Views: `if content.is_published: ...`

Rule of thumb: keep properties lightweight. If it does a query, prefer a method so it’s obvious it’s not β€œfree”.

Where do you draw the line between `@property` and a method in your code, and what are your favorite use cases?

5 days ago | [YT] | 17

Pybites

When you get completely stuck on a Python problem (error, syntax, etc), how long do you struggle alone before asking another human* for help?

*Human, not AI!

6 days ago | [YT] | 3

Pybites

Bob just discovered a neat package to convert Markdown to HTML: markdown-it-py


He just used it to send a weekly markdown report, which now looks so much better :)


`markdown-it-py` made it trivial πŸ‘‡



Works great with SendGrid, SES, or any email service that accepts HTML content.

1 week ago | [YT] | 6

Pybites

When it comes to the technologies and ecosystem around Python, which do you find the most daunting to learn and use?

We often tell our clients that writing the code is only 40% of the job. The other 60% is the ecosystem (Git, Docker, Testing, CI/CD). We are planning some new content around this. Vote below on what gives you the biggest headache so we can help. πŸ‘‡πŸΎ

2 weeks ago | [YT] | 5

Pybites

New Pybites Podcast episode is out!

Episode 212: Elmer Bulthuis on Rust, WebAssembly, and Sustainable Design

Watch below, or listen at:

www.pybitespodcast.com/1501156/episodes/18532295

2 weeks ago | [YT] | 2

Pybites

Kicking off the week with some Python 🐍 debugging tips!

1️⃣ Set your debugger in the environment

You can use this env variable:

```
export PYTHONBREAKPOINT=ipdb.set_trace
```



2️⃣ Log exceptions with stack traces

Instead of `logger.error(e)` you can do this to log the traceback:

```
logger.exception("Something went wrong")
```



3️⃣ Kill hanging tests with pytest-timeout

$ uv add --dev pytest-timeout
$ uv run pytest --timeout=5 (--faulthandler-timeout=10)

I was happy to hear the other day that this saved a fellow dev a lot of time!



4️⃣ Use f-string `=` for fast insight

Bouncing variables easily:

```
>>> a = 1
>>> b = 'julian'
>>> c = [2, 3, 4]
>>> f"{a=} {b=} {c=}"
"a=1 b='julian' c=[2, 3, 4]"
```



5️⃣ Debug a live process 🀯 (new in 3.14!)

`sys.remote_exec` - see example image πŸ‘‡

Code better on the Pybites Platform: pybitesplatform.com/

2 weeks ago (edited) | [YT] | 3

Pybites

Be honest: What is the primary thing driving your learning right now?

We're talking about "War Mode" vs "Peace Time" all week.

Most developers only start grinding when they are scared (layoffs, job hunt, deadlines). But the best growth happens when you are safe and have the mental bandwidth to explore.

Where is your head at right now?

3 weeks ago | [YT] | 3

Pybites

Hey Pythonistas, it’s Julian and Bob.

We hate "shiny object syndrome." That's why we usually tell you to ignore Black Friday sales because they distract you from your goals.

But this year, we’re making it easier for you to access the one thing that actually works: Deliberate Practice. πŸ“ˆ

For the first time ever, we are discounting our Coaching Cohorts:

βœ… Intermediate Devs: Save 35% on the PDC Snipster Cohort (FastAPI/Modern Workflow).

βœ… Beginners: Save 30% on PDC Foundations + get 6 Months of Platform access FREE.

βœ… Everyone: Get 40% off Pybites Platform subscriptions (Code: PYBITESBF40).

The goal isn't to buy and consume more. It's to do more. πŸ’ͺ

Link to the deals is in the comments/description! Deals end Dec 1st.

2 months ago | [YT] | 4