Adarsh D
adarshd.bsky.social
Adarsh D
@adarshd.bsky.social
Co founder: linkhq.co and digievolabs.com
Python | Backend | APIs
Blog: https://blog.adarshd.dev
Had a great time at @pycon.us this year—skipped most talks and went all in on the hallway track.
I asked Python folks what they really think about AI taking over programming. Their answers (and a few surprises) are in my latest post 👇
blog.adarshd.dev/posts/pycon-...
Will AI Replace Junior Developers? I Asked Experts at Pycon US
I attended Pycon US in Pittsburgh - This was my first in-person Pycon US.
blog.adarshd.dev
June 18, 2025 at 2:40 PM
Thanks to open-source tools like `python-chess` and Stockfish, anyone can build their own chess analysis program.

I'll be walking through how to do this live at @pycon.us poster session this weekend. Let’s write some code, analyze some blunders, and build something fun together. ♟️
May 12, 2025 at 1:05 PM
#Python Gem of the Day

💎: Peek - Replace print() for debugging code.
github.com/salabim/peek

- A superset of github.com/gruns/icecream
- Supports debugging function calls, benchmarking execution time etc.
GitHub - gruns/icecream: 🍦 Never use print() to debug again.
🍦 Never use print() to debug again. Contribute to gruns/icecream development by creating an account on GitHub.
github.com
December 5, 2024 at 4:37 AM
#Python Gem of the Day

💎: Pydantic releases PydanticAI: AI agent framework
ai.pydantic.dev

- Can create LLM-powered agents that can run tools/functions based on user prompts, all with the type-safety guarantees provided by Pydantic.
- Can also be run locally using Ollama models that support tools.
Introduction
Agent Framework / shim to use Pydantic with LLMs
ai.pydantic.dev
December 2, 2024 at 4:32 PM
#Python Gem of the Day

💎: Avoid Counting in Django Pagination by Nik Tomazic: testdriven.io/blog/django-...

- Default Django paginator uses SELECT COUNT(*). Slow for big tables.
- Discusses an implementation of paginator class without COUNT.

(1/2)
Avoid Counting in Django Pagination
This article looks at how to avoid the count query in Django's paginator.
testdriven.io
November 29, 2024 at 5:12 AM
#Python Gem of the Day.

Python in production #1 (Cloud Native vs Stack Native) by @mkennedy.codes

💎: mkennedy.codes/posts/opposi...

Covers the architecture of production apps which handle:
- 9M req per month
- 10 TB traffic (1 TB served by Python)
Hosted on a 8 CPU / 16 GB Hetzner server.
Opposite of Cloud Native is?
Time to define what it means to be NOT cloud-native, in a positive way.
mkennedy.codes
November 26, 2024 at 5:39 AM
#Python Gem of the day:

💎: nedbatchelder.com/blog/202411/... by @nedbat.com

for loops can assign to dict keys (and much more)..

𝚙𝚊𝚛𝚊𝚖𝚜 = {}

𝚏𝚘𝚛 𝚙𝚊𝚛𝚊𝚖𝚜["𝚙𝚊𝚐𝚎"] 𝚒𝚗 𝚒𝚝𝚎𝚛𝚝𝚘𝚘𝚕𝚜.𝚌𝚘𝚞𝚗𝚝():
# 𝚝𝚑𝚒𝚜 𝚠𝚘𝚛𝚔𝚜
Loop targets
People were surprised by my example of assigning to a dict item in a for loop. Here’s more explanation.
nedbatchelder.com
November 25, 2024 at 5:32 AM
‪#Python Gem of the Day: Pyzzels by Oskar Eriksson

💎https://pyzzles.gptengineer.run/

Python puzzles where we are given test files and need to write solutions to satisfy the tests.
November 21, 2024 at 6:16 AM
#Python Gem of the Day:

Python is said to be the second-best language for everything.

💎: blog.miguelgrinberg.com/post/is-pyth...

@miguelgrinberg.bsky.social shares his benchmark comparing Python (multiple Cpython versions, Pypy), NodeJS & Rust.
Is Python Really That Slow?
My standard response when someone asks me how I deal with Python being such a slow language is that Python is by far the fastest to write, cleanest, more maintainable programming language I know, and…
blog.miguelgrinberg.com
November 20, 2024 at 4:50 AM
Thread local data in #Python

Since threads in Python share the memory space of their parent process, we might need to define thread-specific variables for specific use cases to avoid unintended side effects.

Read at: blog.adarshd.dev/posts/thread...
Thread Local Data in Python
Since threads in Python share the memory space of their parent process, we might need to define thread-specific variables for specific use cases to avoid unintended side effects.
blog.adarshd.dev
February 18, 2024 at 5:25 PM
Evolution of `sort` in #Python and the role of `cmp_to_key`

This article from my "Python in the Wild" newsletter discusses the evolution of sorting from Python 2 to 3, and features an open-source example illustrating the usage of `functools.cmp_to_key` for sort operations.
Evolution of the sort in Python and the Role of functools.cmp_to_key
In Python, the sort method and the sorted callable are commonly used for sorting operations. sort is a list method which modifies the list in-place, whereas sorted takes an iterable as its first argum...
blog.adarshd.dev
February 7, 2024 at 12:55 PM
"TIL: List from Python's typing module is inheritable"

Read the full post: adarshd.substack.com/p/til-list-f...

#python #typing #list
December 28, 2023 at 6:02 PM
First post 🫠
December 28, 2023 at 5:57 PM