
Python-React Full-Stack Contractor (@djangoproject , @reactjs,) 🇫🇷🇺🇲
World citizen
Joined June 2010
- Tweets2.2K
- Following4.7K
- Followers1K
- Likes3.2K
Hamza Khchine retweeted
Caching improves performance quickly.
Then cache invalidation enters the chat...
1/
At first: Everything looks amazing.
→ lower latency
→ reduced DB load
→ faster APIs
2/
Then reality hits:
“How do we keep cache consistent?”
3/
Now systems face:
→ stale data
→ race conditions
→ synchronization issues
4/
One lesson I learned:
Caching is not just optimization.
It changes system behavior.
5/
Common mistakes:
→ caching everything
→ no TTL strategy
→ ignoring invalidation flow
6/
Good caching needs:
→ clear ownership
→ expiration strategy
→ fallback handling
7/
Sometimes deleting cache causes traffic spikes too.
Suddenly DB gets flooded.
8/
Large systems often use:
→ layered caching
→ distributed caches
→ async refresh patterns
9/
There’s a famous saying:
“There are only two hard things in Computer Science: cache invalidation and naming things.”
Still true...
10/
Caching helps systems scale.
But bad caching creates invisible complexity...
Hamza Khchine retweeted
Killing the GIL: How To Use Python 3.14's Free-Threading Upgrade
The global interpreter lock (GIL) has been interfering with true parallelism in Python. That ends with Python 3.14.
neelsomaniblog.com/p/killing…
Hamza Khchine retweeted
💯 v1.100 of @code is here! And we’ve got some great updates for you, like:
- Smarter chat responses with new tools
- Improved multi-window support
- Image and Streamable HTTP support for MCP servers
…and so much more. aka.ms/VSCodeRelease
Here are some of the highlights… 🧵
![A thumbnail with a dark background and the VS Code logo that reads “What’s new in Visual Studio Code April Update [1.100] -Performance improvements in chat -Auto-attach instructions to chat -Reuse prompts for common tasks -Smarter chat responses with GitHub, extensions, and notebook tools -Identify staged changes in editor -Improved multi-window support -Quick create for Python Environments -Image and Streamable HTTP support for MCP servers”](https://pbs.twimg.com/media/GqcVjC5XcAAnfLC.jpg?name=small&format=webp)
ALT A thumbnail with a dark background and the VS Code logo that reads “What’s new in Visual Studio Code April Update [1.100] -Performance improvements in chat -Auto-attach instructions to chat -Reuse prompts for common tasks -Smarter chat responses with GitHub, extensions, and notebook tools -Identify staged changes in editor -Improved multi-window support -Quick create for Python Environments -Image and Streamable HTTP support for MCP servers”
Hamza Khchine retweeted
The ending of an era: Create React App is about to be officially marked as deprecated.
See ya CRA. Long live React!
Hamza Khchine retweeted
Next.js (+ Vercel) is the “Wordpress” for web developer – it’s the easiest way to launch an SEO and performance focused website.
However, to build a highly interactive or data intensive application, Next.js falls short in comparison with other frameworks.
Using Next.js to build fast, beautiful, & SEO-optimized marketing pages is a smart choice (arguably the best choice), but building a complex application with Next.js is not something I’d do in 2025.
Hamza Khchine retweeted
Is async django ready for prime time?
Explore async Django's readiness for production use, its benefits, challenges, and how AI workloads can leverage its capabilities effectively.
jonathanadly.com/is-async-dj…
Hamza Khchine retweeted
django-cotton
Bringing component based design to Django templates.
github.com/wrabit/django-cot…
Hamza Khchine retweeted
✍️ New post on a pattern for your API clients that read Django settings, using functools.cache and reloading based on the setting_changed signal.
adamj.eu/tech/2024/09/05/dja…
Hamza Khchine retweeted
GIL Become Optional in Python 3.13
geekpython.in/gil-become-opt…
Hamza Khchine retweeted
The UploadThing design contest was wild. After a LOT of deliberation, I realized I couldn't pick just one winner. So instead there are 5, and I'm gonna go broke over this lmao
3 runner ups, two grand prize winners below
Hamza Khchine retweeted
đź“– Just published a new article on how to "get or create" in #PostgreSQL
Sounds simple? I thought so too until I fell into the rabbit hole of concurrency issues, visibility and even bloat!
Check it out 👇
hakibenita.com/postgresql-ge…
Hamza Khchine retweeted
My turn. #FU2024
Hamza Khchine retweeted
I love @tailwindcss.
I needed a way to show fill levels on our liquid tank trailers. The data we are getting from the API of the tank monitor company provides us with % full values.
My plan was to bucket those into 5 different levels of fullness and then represent that with 5 different icons or something.
I played around in the Tailwind Playground and came up with something using pure HTML/CSS:
play.tailwindcss.com/zbE79uq…
Hamza Khchine retweeted
Django 5.1 looks promising:
- built-in connection pool for PostgreSQL
- built-in middleware that require authentication by default
- built-in template tag to manipulate query params (I've had that in utils for years)
Looking forward to it!
docs.djangoproject.com/en/de…
Hamza Khchine retweeted
Now that the US has collapsed, I am calling on all the bright minds who are caught in the crossfire - who want to use their talent for the greater good, rather than for destruction. Borders are open with opportunities -- in places and companies where you don't have to choose between your morals and a paycheck.
ApplyMena.com to explore jobs in the East
{{{Coming Soon}}}
Hamza Khchine retweeted
We have been selected as a Rising Star Winner in the @DeloitteME Technology Fast 50 program across the Middle East & Cyprus! We are proud to be recognized among the stellar tech companies, focused on innovation in addressing challenges. #DMEFast50






















