
Father, Software Developer, Freelancer, Indiehacker who loves building and launching products, #buildinpublic @thebitsoven
QuΓ©bec, Canada
Joined November 2011
- Tweets1.5K
- Following659
- Followers547
- Likes2.3K
Abdelmadjid Cherfaoui retweeted
π£ The moment is here. π£
TypeScript 7 is officially released! 7οΈβ£
devblogs.microsoft.com/typesβ¦
Abdelmadjid Cherfaoui retweeted
10 minutes using Fable, 2 factuality-based hallucinations already
Never trust an LLM
Abdelmadjid Cherfaoui retweeted
v7 is finally out π
I've shipped a lot of AdonisJS releases over the years. This one is different. End-to-end type safety was something I've wanted to get right for a long time, and I think we nailed it.
Watch the video - You'll see what I mean.
Big thanks to @julien_rpt and @romainlanz for helping in every way possible.
And, kudos to Insiders for sponsoring my work
π
Abdelmadjid Cherfaoui retweeted
π We just shipped v0.224!
You've asked, begged, and demanded.
Now, view diffs in split ("side by side") mode. ππ
Abdelmadjid Cherfaoui retweeted
AdonisJS has been around for a decade now π
From a humble idea to a modern, debtβfree framework, thanks to a passionate community pushing it forward.
Read more about the journey & what comes next π
adonisjs.com/blog/a-decade-oβ¦
Abdelmadjid Cherfaoui retweeted
As a startup founder, just don't do this π§΅ :
As a startup founder, just don't do this π§΅ :
As a startup founder, just don't do this π§΅ :
As a startup founder, just don't do this π§΅ :
As a startup founder, just don't do this π§΅ :
As a startup founder, just don't do this π§΅ :
Abdelmadjid Cherfaoui retweeted
π’ New blog post: PostgreSQL and UUID as primary key
π maciejwalkowiak.com/blog/posβ¦
- how choosing different data type affects table and index size
- how to find table and index sizes
- how using UUID v4 vs v7 affects insert performance
- how to use UUID v7 in @java code
Abdelmadjid Cherfaoui retweeted
This has been a year full of engineering excellence that sometimes can go unnoticed. Besides all the visible changes you see on our app, here are some of the most important improvements we have made under the hood.
- Consolidated the tech stacks for For you, Following, Search, Profiles, Lists, Communities and Explore around a singular product framework.
- Completely rebuilt the For you serving and ranking systems from the ground up, resulting in a decrease 90% reduction in lines of code from 700K to 70K, a 50% decrease in our compute footprint, and an 80% increase in the throughput of posts scored per request.
- Unified the For you and video personalization and ranking models, which significantly improved video recommendation quality.
- Refactored the API middleware layer of our tech stack and in doing so simplified the architecture by removing more than 100K lines of code and thousands of unused internal endpoints and eliminating unadopted client services.
- Reduced post metadata sourcing latency by 50%, and global API timeout errors by 90%.
- Blocked bots and content scrapers at a rate +37% greater than 2022. On average, we prevent more than 1M bots signup attacks each day and weβve reduced DM spam by 95%.
- Shutdown the Sacramento data center and re-provisioned the 5,200 racks and 148,000 servers, which generated more than $100M in annual savings. In total, we freed up 48 MW of capacity and tore down 60k lbs. of network ladder rack before re-provisioning it to other data centers.
- Optimized our usage of cloud service providers and began doing much more on-prem. This shift has reduced our monthly cloud costs by 60%. Among the changes we made was a shift of all media/blob artifacts out of the cloud, which reduced our overall cloud data storage size by 60%, and separately, we succeeded in reducing cloud data processing costs by 75%.
- Built on-prem GPU Supercompute clusters and designed, developed, and delivered 43.2Tbps of new network fabric architecture to support the clusters.
- Scaled network backbone capacity and redundancy, which resulted in $13.9M/year in savings.
- Started automated peak traffic failover tests to validate the scalability and availability of the entire platform continuously.
Abdelmadjid Cherfaoui retweeted
A magic debugging command in git:
git bisect
is helpful to find the commit responsible for a bug that you don't know when or how is happening.
The command will do a binary search between two commits: A bad one and a good one, and give you in-between commits for test.
git-scm.com/docs/git-bisect
Abdelmadjid Cherfaoui retweeted
During the weekend I made a small boilerplate using @bunjavascript, @honojs and @htmx_org .
Bun is an interesting runtime environment with great DX.
github.com/cherifGsoul/hono-β¦
Abdelmadjid Cherfaoui retweeted
How do Apple Pay and Google Pay handle sensitive card info?
The diagram below shows the differences. Both approaches are very secure, but the implementations are different. To understand the difference, we break down the process into two flows.
1. Registering your credit card flow
2. Basic payment flow
1οΈβ£ The registration flow is represented by steps 1~3 for both cases. The difference is:
ππ©π©π₯π πππ²: Apple doesnβt store any card info. It passes the card info to the bank. Bank returns a token called DAN (device account number) to the iPhone. iPhone then stores DAN into a special hardware chip.
ππ¨π¨π π₯π πππ²: When you register the credit card with Google Pay, the card info is stored in the Google server. Google returns a payment token to the phone.
2οΈβ£ When you click the βPayβ button on your phone, the basic payment flow starts. Here are the differences:
ππ©π©π₯π πππ²: For iPhone, the e-commerce server passes the DAN to the bank.
ππ¨π¨π π₯π πππ²: In the Google Pay case, the e-commerce server passes the payment token to the Google server. Google server looks up the credit card info and passes it to the bank.
In the diagram, the red arrow means the credit card info is available on the public network, although it is encrypted.
Over to you: Apple needs to discuss the DAN details with banks. It takes time and effort, but the benefit is that the credit card info is on the public network only once. If you are an architect and have to choose between security and cost, which solution do you prefer?
β
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/42Ex9oZ
Abdelmadjid Cherfaoui retweeted
Postgres Architecture Explained
youtu.be/Q56kljmIN14
Abdelmadjid Cherfaoui retweeted
A relational database is not guaranteed to be the best solution always. Instacart shared their story about migrating their notification system to DynamoDB, which seems to be primarily written and read once, as I understood it. tech.instacart.com/from-postβ¦
Abdelmadjid Cherfaoui retweeted
While the Black Friday deals run through the end of this week, check out the following three brilliant technical books.
If you've read any and liked it, share the book with your network. Let's help people make the right investment at the right time!
π§΅(1/4)
Abdelmadjid Cherfaoui retweeted
I spent the last 6 months looking at the Kubernetes setups of over 1100 engineering teams. I summarized my learnings in a 30 page report. Packed with π£π£s, hope people enjoy it. Check it out π


























