Diya

179 posts

Diya

Diya

@DiyaShips

software dev by day | ai tinkerer by night shipping small things, sharing what i learn ☕

Worldwide Katılım Mayıs 2026
107 Takip Edilen37 Takipçiler
Sabitlenmiş Tweet
Diya
Diya@DiyaShips·
day 4 of building in public. yesterday I said postgres is my job queue. people always push back on this. let me explain 👇 most devs reach for redis or a queue service the moment they need background jobs. I get it. queues feel like a queue problem. but there's a SQL trick called FOR UPDATE SKIP LOCKED. it lets multiple workers pull jobs from a plain table without ever stepping on each other. worker 1 grabs row A → locked. worker 2 skips it, grabs row B → locked. no duplicates. no collisions. no extra service. one table. one trick. that's the queue. no redis to manage. no kafka to configure. no queue dashboard to monitor. just postgres which I already had. the best infrastructure decision is usually the one that removes a service, not adds one. 🧱
English
0
1
3
159
Diya
Diya@DiyaShips·
@tanujDE3180 bloom filter for the fast no. sharded database for the confirmed yes. debounce on the frontend so you're not checking every keystroke. three decisions that together make it feel instant
English
1
0
1
24
Tanuj
Tanuj@tanujDE3180·
System Design Interview: You type a username in Gmail. Before you even finish typing, it says: “That username is taken.” There are billions of existing accounts. How does Google check availability in milliseconds?
Tanuj tweet media
English
28
4
33
1.4K
Diya
Diya@DiyaShips·
@SumitM_X input is 98% of the cost here. the output is already optimized by being tiny.
English
0
0
0
28
SumitM
SumitM@SumitM_X·
A prompt costs: Input: 1000 tokens Output: 20 tokens Where would you optimize first?
English
14
1
46
10K
Diya
Diya@DiyaShips·
@code_bytein if your API can return 1M rows your API is the bug
English
0
0
0
5
Vikash Singh
Vikash Singh@code_bytein·
Most backend devs fail this in interviews. 1M users in DB. Client wants /users API. I've seen 200+ candidates answer this wrong. What's your answer? 👇
English
36
16
56
2.6K
Diya
Diya@DiyaShips·
things nobody tells you before you ship your first product: - your first 10 users will be friends who never use it - you'll rewrite the landing page 6 times - the feature you spent 3 weeks on? nobody asks for it - the bug you ignored? that's what users find first save this for when you're feeling too confident
English
0
0
1
17
Diya
Diya@DiyaShips·
@omarvvvr typescript. Its just javascript that tells you about your bugs before users do.
English
0
0
0
10
Omar
Omar@omarvvvr·
Can you name a programming language better than JavaScript or not ?
English
36
0
24
2.3K
Diya
Diya@DiyaShips·
@yourclouddude AI writes the code, i decide if its the right code, those are very different jobs.
English
0
0
0
38
yourclouddude
yourclouddude@yourclouddude·
You’re in a Python interview and they ask you: “Why should we hire you when AI can write Python scripts in seconds?” What’s your answer?
English
6
1
22
2.8K
Diya
Diya@DiyaShips·
@Sarthak4Alpha cookie stores stuff. session lives on the server. token identifies you. JWT is a token with claims baked in. OAuth2 is the dance you do to get one from google
English
1
0
2
267
Sarthak
Sarthak@Sarthak4Alpha·
Interviewer: Tell me the difference between • Token • Session • Cookie • JWT • OAuth2
English
26
12
126
11.6K
Diya
Diya@DiyaShips·
@EOEboh OPTIONS. the http method that exists purely so you can ask "what can i do here"
English
0
0
0
35
Cap-EO 👨🏾‍💻
Scenario: You're integrating a third party API Before making a PUT request; how do you confirm the endpoint even supports PUT without actually making the call and potentially modifying data?
English
15
3
30
5.1K
Diya
Diya@DiyaShips·
@EOEboh HEAD request. same as GET but returns only headers. content length tells you the size, zero bytes of body transferred
English
0
0
1
302
Cap-EO 👨🏾‍💻
A user wants to download a 2GB file from your server. Before downloading, your app needs to show them the file size. How do you get that information without transferring the file itself?
English
15
6
129
19.9K
Diya
Diya@DiyaShips·
@ishanxtwt "in memory" is where reads happen. disk is where survival happens
English
0
0
1
680
Ishan
Ishan@ishanxtwt·
Interviewer: If Redis stores data in memory, then how does it prevent data loss after a restart?
Ishan tweet media
English
37
7
115
28.1K
Diya
Diya@DiyaShips·
@1Umairshaikh because claude rate limits you at 2pm and codex doesnt
English
0
0
0
102
Umair Shaikh
Umair Shaikh@1Umairshaikh·
Why do people use Codex when Claude exist Seriously Whyyyy????
English
41
1
51
5K
Diya
Diya@DiyaShips·
@justbyte_ the tool that launched 4 days ago. always
English
0
0
0
19
Aryan
Aryan@justbyte_·
Remember when everyone was talking about: - Perplexity - DeepSeek - Cursor - Sora - Midjourney - Runway - Llama - Copilot They dominated every discussion. What's everyone obsessed with now?
English
25
2
37
2.6K
Diya retweetledi
Diya
Diya@DiyaShips·
day 4 of building in public. yesterday I said postgres is my job queue. people always push back on this. let me explain 👇 most devs reach for redis or a queue service the moment they need background jobs. I get it. queues feel like a queue problem. but there's a SQL trick called FOR UPDATE SKIP LOCKED. it lets multiple workers pull jobs from a plain table without ever stepping on each other. worker 1 grabs row A → locked. worker 2 skips it, grabs row B → locked. no duplicates. no collisions. no extra service. one table. one trick. that's the queue. no redis to manage. no kafka to configure. no queue dashboard to monitor. just postgres which I already had. the best infrastructure decision is usually the one that removes a service, not adds one. 🧱
English
0
1
3
159
Saanvi🌺
Saanvi🌺@Saanvi_dhillon·
As a dev, what's your favorite localhost port?
Saanvi🌺 tweet media
English
79
2
81
2.9K
Diya
Diya@DiyaShips·
@ayesha_fatiima instagram served a billion users on python. your todo app will be fine
English
0
0
1
445
ayesha
ayesha@ayesha_fatiima·
Netflix uses Python Google uses Python Anthropic uses Python Meta uses Python xAI uses Python Perplexity uses Python DeepSeek uses Python Instagram uses Python Spotify uses Python Dropbox uses Python Reddit uses Python Pinterest uses Python Uber uses Python Airbnb uses Python Quora uses Python But sure… Python is ‘too slow’ for your todo app.
English
85
11
244
19K
Diya
Diya@DiyaShips·
@sflorimm obviously cool. thats why nobody is paying
English
1
0
3
167
Floro S.
Floro S.@sflorimm·
vibe coders, be honest: are you building something people need or something you thought was cool?
English
239
1
146
18.3K
Diya
Diya@DiyaShips·
@TTrimoreau npm install already takes 30 seconds. you just want to monetize the suffering
English
0
0
0
37
Thomas Trimoreau
Thomas Trimoreau@TTrimoreau·
Startup idea: Ads in terminal Imagine watching an unskipabble 30 seconds ad for running npm install.
English
71
3
92
8.3K
Diya
Diya@DiyaShips·
@jahirsheikh8 you didnt delete anything. you marked it deleted. the cloud provider has snapshots, the replicas have copies, and the disk still has the bytes. delete is a UI lie
English
0
0
1
5
Jahir Sheikh
Jahir Sheikh@jahirsheikh8·
Senior backend interview questions: You delete the data. You delete the backups. You delete the logs. A court demands the records. Yet they somehow recover them. How?
English
45
1
66
7.2K
Diya
Diya@DiyaShips·
@araseb_ stop being polite and tell me my idea is bad
English
5
0
5
111
Sarah
Sarah@araseb_·
What’s one feature you wish every AI had?
English
53
0
22
4.5K