SumitM

30.7K posts

SumitM banner
SumitM

SumitM

@SumitM_X

16 years In IT | Author of a bestselling Java book | All Books links in the pinned tweet https://t.co/NmsenbKiBW

Katılım Haziran 2021
1.1K Takip Edilen45.2K Takipçiler
Sabitlenmiş Tweet
SumitM
SumitM@SumitM_X·
I have launched four digital products via Topmate and Gumroad so far . Given the constant inquiries through DMs for purchase links, I have decided to consolidate all relevant links in one place for your convenience. Individual Products: Cracking The Java Interview With Sumit: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/qturr HARD COPY: store.pothi.com/book/sumit-m-c… Cracking the MERN Interviews: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/imzsr Cracking The Reactjs Interviews: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/qqheh Cracking The React Native Interviews: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/yakhkx Bundle Offers: All in One Bundle (Java + Reactjs + MERN + React Native): Topmate: topmate.io/interviewswith… Gumroad:msumit.gumroad.com/l/ypbkul (Java book pdf + Java Interviews in 2026 webinar Recording): Topmate: topmate.io/interviewswith… (Java + Reactjs + MERN): Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/rikeb Reactjs + MERN Bundle: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/rikeb Java + MERN Bundle: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/psdfn Java + Reactjs Bundle: Topmate: topmate.io/interviewswith… Gumroad: msumit.gumroad.com/l/gvabt Thank you for your interest and support. 🙏
English
7
3
54
46.4K
SumitM
SumitM@SumitM_X·
Your API needs to process huge JSON payloads (5–20 MB) from clients. How do you design it so parsing alone doesnt choke your CPU?
English
10
0
17
1.2K
SumitM
SumitM@SumitM_X·
Why do we prefix the token with Bearer instead of sending the token directly?
English
42
21
722
221.1K
Sid
Sid@SidJain_80·
@SumitM_X Half right!! GET usually doesn’t trigger preflight But CORS still applies it blocks the response, not the request No preflight != no protection It just means the request goes through, but the browser won’t let the client read the response
English
1
0
2
439
SumitM
SumitM@SumitM_X·
Tech Lead says : "GET requests don't trigger preflights, so CORS doesn't protect us here." Is the tech lead right like always?
English
10
2
46
7.1K
KrunalSinh Sisodia
KrunalSinh Sisodia@krunalbuilds·
@SumitM_X Partially right Simple GET requests often skip the preflight (OPTIONS) request. But CORS still applies: the browser can block JavaScript from reading the response if origin rules fail. No preflight ≠ no CORS protection
KrunalSinh Sisodia tweet media
English
1
0
4
471
SumitM
SumitM@SumitM_X·
As a junior developer, If you struggle to answer even 1 of the below you are not ready for Java interview.. - Can a static block throw exception? - Why is String Immutable in Java? - LinkedList in Java is a doubly or singly linked list?
English
4
2
44
5.7K
KrunalSinh Sisodia
KrunalSinh Sisodia@krunalbuilds·
Usually with: • short-lived access tokens • long-lived refresh tokens Flow: • access token expires • client sends refresh token securely • server issues new access token • user stays logged in silently Best practice: store refresh tokens securely (often HttpOnly cookies)
KrunalSinh Sisodia tweet media
English
1
0
12
762
SumitM
SumitM@SumitM_X·
How do you handle token expiry without asking the user to log in again?
English
20
1
42
10.7K
SumitM retweetledi
Pop Crave
Pop Crave@PopCrave·
Kanye West and Bianca Censori were spotted out on a date in LA last week. Source: TMZ
Pop Crave tweet mediaPop Crave tweet mediaPop Crave tweet mediaPop Crave tweet media
English
180
119
4.7K
603.3K
Sid
Sid@SidJain_80·
Bearer tells the server what kind of authorization we’re using, not just the token itself Meaning: Whoever bears (possesses) this token is authorized So the server interprets it as a bearer token, no extra proof (like a password or signature) is needed If token is sent directly then server wouldn’t know what type of credential is, how to validate, which auth logic to apply Same header could be with prefix as ApiKey,….
English
4
3
171
28.9K
SumitM
SumitM@SumitM_X·
Guys, please understand : GIT PULL ≠ GIT FETCH… GIT MERGE ≠ GIT REBASE… GIT RESET ≠ GIT REVERT… GIT CLONE ≠ GIT INIT… GIT CHECKOUT ≠ GIT SWITCH…
English
4
14
144
10.9K
SumitM
SumitM@SumitM_X·
Tech Lead says : "Always create separate endpoint based on user type.. Eg: For clients keep it : /save/order/clients And for internal users keep it: /save/order/internal " Is The Tech Lead right like always...?
English
9
1
43
11.3K
SumitM
SumitM@SumitM_X·
Can DB Views be indexed ?
English
8
1
54
19.7K
SumitM
SumitM@SumitM_X·
Everyone wants to become a FDE now...
English
9
3
72
14.2K
SumitM
SumitM@SumitM_X·
Microsoft reported better-than-expected quarterly results last month, including that LinkedIn had seen a 12% jump in revenue compared with the prior year. And then LinkedIn laid off 900 employees. ..
English
4
1
57
5.2K
Ranjib
Ranjib@SethiRanji6788·
@SumitM_X Great breakdown Sumit! The separation of UI and JS thread is what makes React Native feel so smooth compared to old hybrid apps Thanks for this
English
1
0
1
36
SumitM
SumitM@SumitM_X·
When you open a React Native app (Instagram, Uber, etc.), a few threads start working together behind the scenes. Let's understand these threads : 1. UI Thread (Main thread) Renders native views (text, buttons, images) Handles taps, scrolls, gestures Runs animations If blocked, the app freezes 2. JS Thread Runs JavaScript and React code Handles state updates and business logic Sends UI descriptions to native If slow, UI feels laggy but may still render 3. Native / Background Threads Handle heavy tasks like network calls and database work Used by TurboModules Run independently to keep UI responsive.
English
3
1
33
1.7K