Nidhi Tiwari

535 posts

Nidhi Tiwari banner
Nidhi Tiwari

Nidhi Tiwari

@NidhiDevNotes

Java developer writing about system design, scalability, AKS, AI, real-world code mistakes.

Katılım Ocak 2026
83 Takip Edilen585 Takipçiler
Sabitlenmiş Tweet
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
Hello, I share real scenarios I deal with as a backend engineer. Mostly around: • Java • System Design • AKS / Cloud • Production edge cases Lately I post question-based scenarios, the kind interviewers ask and the kind that actually break in production. If you enjoy solving these, consider following. New questions every day.
English
1
0
9
903
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@javarevisited Because id is usually an integer not a string. So comparing it with abc makes no sense and can cause type conversion issues or errors depending on the database.
English
1
0
3
1.2K
Javarevisited
Javarevisited@javarevisited·
Interviewer: What’s wrong here? SELECT * FROM users WHERE id = 'abc';
English
12
1
40
13.3K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
AI is changing things so fast that sometimes it genuinely feels unreal. There was a time when making notes was an actual task. Watching a 2-hour YouTube tutorial meant sitting with a notebook for 4 hours. Pause the video. Write everything down. Rewind because you missed a point. Take screenshots. Highlight important timestamps. Now I just paste the YouTube link into NotebookLM and within a minute it gives me proper notes, summaries, key points, FAQs, even a podcast-style discussion from the same content. What’s crazy is not just the tool itself. It’s how normal all this is starting to feel.Things that genuinely took hours of effort now happen in minutes. Feels like AI is quietly changing the way humans learn, work, study, research… everything. #AI #notebookllm #notes
English
0
0
2
44
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@SumitM_X All 10 APIs are tied to one big DTO, so if you change even one field, you risk breaking everything. It’s tightly coupled and hard to maintain.
English
1
0
8
3.9K
SumitM
SumitM@SumitM_X·
You see this DTO: class OrderDTO { public String userName; public String userEmail; public String userAddress; public String productName; public double price; public String paymentStatus; } This DTO is returned by 10 different APIs. What long-term design problem do you see?
English
55
16
454
134K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
it’s not immediately garbage collected. When you do emp = null, you’re just removing your reference to the object. It’s like you’ve stopped pointing to it but the object is still sitting in memory. The garbage collector will clean it up later whenever it runs and sees that nothing is using that object anymore. You don’t control exactly when that happens.
English
0
0
1
560
SumitM
SumitM@SumitM_X·
Employee emp = new Employee(); emp = null; Is the emp object immediately garbage collected?
English
13
2
63
23.7K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@SumitM_X First I’d not assume it’s harmless. I’d check memory usage and GC logs to confirm there’s actually a leak then diff recent changes and profile the app to see what’s retaining objects.
English
0
0
1
1.7K
SumitM
SumitM@SumitM_X·
You replaced: if (x == null) with Objects.isNull(x) No logic change. Production memory usage started increasing gradually. What's your next step ?
English
4
2
46
14.8K
Dave
Dave@GamewithDave·
For anyone who used a computer between 1990 & 2005… what’s the one game you still think about?
English
40.5K
721
14.3K
10.5M
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@javarevisited it has no WHERE clause, so it updates all rows in the table not just a specific user. In this case, every user would be granted admin privileges at once, which is a serious security breach and can completely break the system’s access control.
English
0
0
1
433
Javarevisited
Javarevisited@javarevisited·
Interviewer: Why is this risky? UPDATE users SET is_admin = true;
English
16
0
20
7.4K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
10 rows from the Customers table, starting after the first 10 rows. So you get rows 11 to 20 based on whatever ordering the database uses. If there is no ORDER BY clause, the rows returned are not guaranteed to be consistent. the “first 10” depends on how the database physically stores or retrieves data. PS: I post similar content. Please check out my page and follow if it interests you.
English
0
0
0
72
SumitM
SumitM@SumitM_X·
What will this query return - SELECT CustomerID, Name, Email FROM Customers LIMIT 10 OFFSET 10;
English
13
2
26
5.5K
Ali Spittel
Ali Spittel@ASpittel·
cron jobs are going through the most epic rebrand
English
146
684
8.5K
456.7K
ThePrimeagen
ThePrimeagen@ThePrimeagen·
I cannot wait for gpt 5.5 here in ~30 minutes
English
186
109
4.5K
214.6K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@dpratyush02 Owning the platform = owning attention + access. You don’t charge users. You charge anyone who wants to reach them.
English
0
0
0
622
Pratyush
Pratyush@dpratyush02·
Interviewer: If WhatsApp is free, how does it store billions of messages, photos, and videos while keeping everything secure without charging users?
English
43
1
173
22K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@vandanasoc28779 I post bout java, system design and AKS. Please check out my Page and follow if it interests you.
English
0
0
0
21
Vandana
Vandana@vandanasoc28779·
It hasn’t even been a month since I started posting on X, and today I crossed 500 followers. Grateful for the support so far 🤝 If you're into tech, let’s connect.
Vandana tweet media
English
261
12
398
9.8K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@bluewmist I remove choice. Fixed time, fixed routine. No decision, no excuses. Parkinson’s Law: work expands to fill the time you give it.
English
0
0
0
48
blue
blue@bluewmist·
People who exercise even when they don't feel like it, what's your trick?
English
2.5K
149
5.5K
1.4M
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@AishwaryaDevv Wait till they hear about REST, they’ll start looking for a couch
English
0
0
0
49
Aish
Aish@AishwaryaDevv·
My intern is trying to find "Jason's desk" because the Senior Dev said we need to "send the data to JSON" 😭😭
English
94
421
7.1K
515.2K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@EOEboh Orchestrator sounds cool but someone still needs to know why things work.
English
0
0
1
68
Vivo
Vivo@vivoplt·
claude code is fucking insane i know literally NOTHING about coding. ZERO. and i just built a fully functioning web app in minutes. http://localhost:3000/ check it out
English
411
525
11.6K
819.9K
Bidhaan
Bidhaan@bidhaan_daju·
which editor do you actually code in? > VS Code > Vim > JetBrains > Notepad 💀
English
124
1
104
6.3K
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
@javarevisited ecause Kafka is built for streams, not state. Kafka-> append-only log (event history) Database -> current state (query, update, index) Kafka can store data, but, No efficient querying No relational constraints No flexible updates
English
0
0
0
18
Javarevisited
Javarevisited@javarevisited·
Interviewer: If Kafka persists messages, why do we still need databases?
English
14
3
97
28.1K
Zoomie
Zoomie@Zoomie175·
@NidhiDevNotes The questions you post on multi-threading and Arraylists helped me in tcs xplore java exam yesterday 🙌🏻
English
1
0
0
17
Nidhi Tiwari
Nidhi Tiwari@NidhiDevNotes·
Arrays in Java: the most basic DS, but still powerful public int sum(int[] nums) { int total = 0; for (int num : nums) { total += num; } return total; } Why beginners should care: Arrays teach you the core habit. Traverse data, process each element Everything builds on this: • Prefix sums • Sliding window • Dynamic programming Real insight: If you can’t solve problems with arrays, you won’t solve them with complex DS either. Start simple. Go deep. #Java #DataStructures #DSA #Beginners #Coding
English
1
0
2
84