Randhir Kumar (@randhisi) header
Randhir Kumar (@randhisi) profile picture

Coding fanatic on a caffeine drip, Retweets/likes ≠ endorsement.Opinions my own.

India
Joined September 2021
Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)Photo by Randhir Kumar (@randhisi)
🎯 The Art of Database Sorting: A Real-World Challenge. Working with massive datasets? Here’s a real problem every database engineer faces: Picture this: You have 100GB of data but only 1GB of RAM. How do you sort it efficiently? The solution isn’t virtual memory (spoiler: it’s painfully slow with random I/Os). Instead, we use two clever approaches: • Stream it: One clean pass through RAM • Chunk it: Break it down, sort it, merge it This isn’t just theoretical - it powers your everyday database operations like DISTINCT, GROUP BY, and those lightning-fast search results. Curious: What’s the largest dataset you’ve had to sort? 🤔 #DatabaseEngineering #Performance
3
110
Spent my weekend diving into some network programming - built a simple UDP server in C just for the fun of it! It's amazing what you can learn from a bit of curiosity and tinkering. Here's the source code for the same : github.com/heyrandhir/Comput… Here are some cool things I picked up along the way: 1. 🌐 Got my hands dirty with socket programming - it's like building a digital post office! 2. 📡 UDP vs TCP: Learned why UDP is like sending a postcard, while TCP is more like a phone call. 3. 🔄 Made my server listen continuously - it's like a tireless receptionist for data packets. 4. 🔠 Added a twist: my server capitalizes incoming messages. Shouting back at the client, if you will! 😄 5. ⚠️ Realized the importance of error handling - because even digital postcards can get lost. Just some weekend curiosity, but it's fascinating how much you can learn from playing around with code. Anyone else enjoy these kinds of tech explorations on their downtime.What have you tinkered with recently? #WeekendCoding #NetworkProgramming #LearningForFun #C #TechTinkering
11
377
Take a look at this! In just 54 minutes, you'll get incredible value from your day. @ankushdharkar is an amazing mentor, and this podcast is packed with insightful gems that he shares. I thoroughly enjoyed it, and trust me, you won't regret watching it !
1
20
1,002
Want to know the secret sauce behind lightning-fast computers? Look no further than caching magic! ✨ Spatial, temporal, and distributed caches work together like invisible assistants, optimizing memory access and supercharging performance. Here's a peek into their superpowers:
1
4
131
🔍 Spatial Cache: This whiz kid remembers data stored nearby, making retrieval swift and effortless. 🔄 Temporal Cache: Like a personal data butler, it keeps recently used information close at hand for instant access. ⚡️
1
2
31
Ever wondered how recursion can be both powerful and efficient? Let's dive into the world of Tail Call Optimization (TCO). In programming, recursion is a common technique where a function calls itself to solve a problem.
1
1
99
However, when a function calls itself as its last action, we have a tail-recursive function. With TCO, these tail-recursive functions can be optimized by reusing the current stack frame instead of creating a new one for each call.
1
17
Are you familiar with the term "bike shedding"? It refers to the tendency for groups to spend an excessive amount of time on minor decisions, often neglecting more critical issues in the process. This phenomenon can be particularly detrimental in software development,
1
5
200
where getting lost in the details can lead to lost productivity and inferior end products. To avoid this trap, developers and project managers must prioritize the big picture. One way to do this is by using the JSON API Specification
1
1
16
Had an incredible experience attending an AWS Lambda session at @RealDevSquad. It was a hands-on session where we learned how to create and deploy Lambda functions. A big thanks to Nishant for making it possible.
13
1
26
7,420
live demo of RCAL, our @RealDevSquad calendar site. Let's go! @Harshith_V007 @VivekLokhande99 @pc2097 🚀🚀
7
3
24
4,078
Just another insightful interaction with @ankushdharkar @twts_tejas @gopalagoyall and Vignesh in our morning standup. Vignesh is the new maven in our community .He is an amazing Engineering Manager at @Cloudflare. Grateful for the opportunity to connect and exchange knowledge.
1
3
4
20
3,739
📢 Exciting News! My feature to identify idle users automatically @RealDevSquad is now live: 🎉 Previously, users had to manually mark themselves as idle. But now, we have taken it up a notch by implementing a script that visits and identifies idle users based on their tasks🤖✨
4
1
5
31
3,782
Curious to see who's currently idle? Check out our new Idle Users at status site here 👉 status.realdevsquad.com/idle… 📊
1
1
4
720
Which request type is ideal for performing partial updates on all documents in a collection? When updating specific fields in multiple documents, should I use "PATCH," "PUT," or "POST"? Your thoughts? #webdevelopment #programming #API
1
1
110
I recently incorporated a feature flag in the patch call of an RTK query. Now, upon the component mount and button click, I would like to verify if the RTK patch call was triggered with the feature flag. Has anyone encountered a similar situation while working with rtk query
2
2
411
If so, could you please inform me if there is a test available for executing RTK query with a specific parameter upon firing an event from the component? For more information, you can refer to this PR: github.com/Real-Dev-Squad/we….
1
53
💯
Having firsthand experience working with @RealDevSquad 'Members', I can confidently assert why they are truly the best developers to be known. Allow me to share my insights on their exceptional qualities:🧵
1
47
If you're striving to become the best mobile development engineer, join this community and get a chance to be mentored by @shreya1mishra
What are we doing in these events 🧵
2
8
902
Do you face issues running Python code on different machines due to version conflicts? A solution is to use Virtual Environments, which create isolated environments for your Python projects, each with its own version of Python and dependencies.
1
1
1
294
This reduces conflicts and makes it easier to manage and share your code with others. You can create a Virtual Environment using the built-in venv module, activate it using "source projectEnv/bin/activate", install packages using pip, a
1
1
28
Have you ever thought about how the tiniest coding mistake can lead to huge consequences? In programming, the term "floating point" may seem like a minor detail, but in reality, floating point errors can be incredibly dangerous.
1
2
3
713
The Ariane 5 rocket explosion is a devastating example of the consequences of a software error. The rocket with development costs of over $7 billion and cargo valued at over $500 million, broke up 40 seconds into its flight due to a software error in the inertial reference system
1
2
40
I was trying to update multiple documents at once in the Cloud Firestore Collection using the Promise.all method but then found about batch writes provided by the Firestore, which lets you batch the documents before updating. #cloud #debugging
1
2
5
1,094
The only catch here is that the batch update method uses document.ref as opposed to document.id, which is used by the document.update method. Took an hour to figure out, but finally, it worked.
72
The more I know JS the more I feel I don't know JS 🥲
1
10
Just got my ticket for #nextjsconf by @vercel, claim yours! Let's make the Web. Faster. nextjs.org/conf/tickets/oct2…