Abdelmadjid Cherfaoui (@Hexacker) header
Abdelmadjid Cherfaoui (@Hexacker) profile picture

Father, Software Developer, Freelancer, Indiehacker who loves building and launching products, #buildinpublic @thebitsoven

QuΓ©bec, Canada
Joined November 2011
Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)Photo by Abdelmadjid Cherfaoui (@Hexacker)
Abdelmadjid Cherfaoui retweeted
10 minutes using Fable, 2 factuality-based hallucinations already Never trust an LLM
185
42
23
1,955
194,623
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 πŸ™
AdonisJS v7 is here πŸš€
17
25
2
230
9,566
Abdelmadjid Cherfaoui retweeted
AdonisJS v7 is here πŸš€
22
106
24
572
81,038
Abdelmadjid Cherfaoui retweeted
πŸš€ We just shipped v0.224! You've asked, begged, and demanded. Now, view diffs in split ("side by side") mode. πŸŽ‰πŸŽ‰
78
63
17
1,606
71,331
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…
3
16
6
120
19,945
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 🧡 :
64
93
20
1,451
424,030
Abdelmadjid Cherfaoui retweeted
16
8
1
112
12,388
Abdelmadjid Cherfaoui retweeted
Just use Postgres for everything.
213
1,035
154
8,877
1,251,420
Abdelmadjid Cherfaoui retweeted
Startup ideas worth zero without execution.
44
59
13
479
33,164
πŸ“’ 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
10
60
3
334
21,835
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.
2,093
2,100
1,272
18,147
37,445,373
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
2
1
12
1,436
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
22
362
15
1,570
283,605
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…
2
14
72
8,760
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)
23
127
4
835
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 πŸ‘‡

304
821
70
6,528
Abdelmadjid Cherfaoui retweeted
My TypeScript rule for type vs interface: I use interfaces for defining object methods contracts (behavior) I use types for data. interfaces are not for data.
2
4
18