Hamza Khchine (@Khchine) header
Hamza Khchine (@Khchine) profile picture

Python-React Full-Stack Contractor (@djangoproject , @reactjs,) 🇫🇷🇺🇲

World citizen
Joined June 2010
Photo by Hamza Khchine (@Khchine)Photo by Hamza Khchine (@Khchine)Photo by Hamza Khchine (@Khchine)
The risk of a wrong decision is preferable to the terror of indecision. – Maimonides
2
14
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...
1
3
1
13
518
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…
11
2
36
3,343
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… 🧵
59
326
65
3,137
554,901
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!
65
159
73
2,545
218,339
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.
170
115
24
2,631
441,796
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…
1
4
13
1,786
✍️ 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…
2
4
23
1,492
Hamza Khchine retweeted
GIL Become Optional in Python 3.13 geekpython.in/gil-become-opt…
7
1
25
2,672
30
353
28
3,505
144,878
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
11
12
3
552
175,405
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…
2
15
4
72
5,256
Hamza Khchine retweeted
When the reception desk looks like this, you know you’re in good hands
3
25
1,333
Yeah cool the old "Python is slow" argument is so clever
49
42
8
1,180
212,527
My turn. #FU2024
1,221
13,032
2,641
121,878
12,125,494
Hamza Khchine retweeted
Things I should have put in my .gitconfig years ago
112
638
37
9,590
916,574
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…
1
3
118
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…
1
5
48
2,210
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}}}
1
3
11
2,199
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
3
9
534