Miles to go before I sleep...

Joined June 2019
20 Photos and videos
Md. Redwan Hossain retweeted
p95 went from 2270 ms to 217 ms. Throughput went from 168 RPS to 1,238 RPS. I changed exactly one line of code. Thread.Sleep(200) ➜ await Task.Delay(200, ct) That's it. Same machine. Same 400 concurrent users. Same 200 ms of "work." The reason it matters this much: Thread.Sleep parks an OS thread. The thread pool only grows at 1–2 threads per second after MinThreads is exceeded. So with 400 VUs hammering a sync endpoint, requests aren't slow because the work is slow, they're slow because they're queued waiting for a thread that doesn't exist yet. await Task.Delay returns the thread to the pool while it waits. Suddenly, 16 threads can serve 400 concurrent requests instead of 16. I built a .NET 10 lab project that reproduces this on demand and produced the numbers above on a Ryzen 7 4800H. Code k6 scripts step-by-step breakdown. Will share it in 2h in my Newsletter. Join 20k engineers and read it: thecodeman.net
3
4
22
4,269
Md. Redwan Hossain retweeted
#Angular21.2: New FormRoot Directive for Signal Forms 💥 The latest minor version introduces the FormRoot directive, which simplifies handling form submissions in #SignalForms. ➡️ Automatic Setup: Applying [formRoot] to a < f o r m > element automatically prevents the default browser submission behavior and adds the novalidate attribute. ➡️ Integrated Submission: You no longer need to manually call event.preventDefault(). When the form is submitted, it automatically triggers the submit() function on form. ➡️ Reset: You can now pass an initial state directly to the reset() method to clear both the interaction state and the model values simultaneously. What do you think of this addition? Let’s discuss below! 💬
1
7
39
1,891
Md. Redwan Hossain retweeted
#Angular21.2 news! 🔥 Prettier as the default project formatter: With the release of Angular 21.2, projects will include Prettier as a dev dependency, making it the default code formatter for new Angular projects. → This straightforward change saves you the time of manually adding essential tooling to new projects! Did you know that? 👀 If not, sign up for our newsletter and receive Angular news like this regularly! 💌 buff.ly/NBq7G4F
4
4
66
2,465
Md. Redwan Hossain retweeted
Postgres Tip: Use `filter` instead of `case when` for writing conditional aggregates! It’s more readable, idiomatic SQL, and often performs better!
4
45
599
36,818
Md. Redwan Hossain retweeted
This is a standard practice for almost all Tier-1 banking applications in Nigeria, and for some fintech applications I’ve previously performed pentests on. Client-side encryption isn’t a total waste, or a waste of compute, as some people have claimed, but rather a measure to protect against API tampering or API request/response manipulation between the client and the server when implemented properly. Even with HTTPS, attackers can capture a decrypted version of web or mobile API data in transit because the browser and the server establish a level of trust during the TLS handshake. Attackers can leverage this trust to capture & proxy already-decrypted traffic, tamper with it, and then forward it to the server. This allows them to override what the user interface or client is originally supposed to send and replace it with data of their choosing. That is why validation needs to be performed on both the client and the server side. To wrap up, encrypting API requests and responses makes it significantly harder for attackers to tamper with data, even if they capture the traffic, unless they have access to the encryption details (algorithm, encryption mode, key size, secret key, and initialization vector), assuming asymmetric encryption is used. In the demo below, you can see how I discovered additional parameters (balance, is_admin) in the API response, captured the registration API request, despite it being sent over HTTPS from the interface, added the discovered parameters, and successfully inflated my balance to 50 billion and also escalated my privileges to admin, and ultimately deleted the accounts of two live users/customers. In the second slide, I captured an API traffic of a bank app, and you can see how difficult the payloads are to read.
Never thought encrypting your password before sending to your backend was a thing until 2 days ago
99
124
822
217,040
Md. Redwan Hossain retweeted
18 Dec 2025
🎩 A little tip for today! Forget about `removeListener ` - use `AbortController` instead. It's cleaner and easier to work with, and it can abort multiple listeners simultaneously when they share the same signal.👇
10
27
284
15,565
Md. Redwan Hossain retweeted
I somehow keep seeing people construct #Angular `HttpParams` by chaining `.set` calls You can just pass the object 🤷‍♂️
4
11
100
4,245
Md. Redwan Hossain retweeted
🧹 Cleaner @angular Tip! Need the host element's tag name in your directive/component? Instead of: elementRef.nativeElement.tagName Try injecting HOST_TAG_NAME directly! 👇 It's more SSR friendly ✅ #Angular #TypeScript #WebDev #DevTips #Frontend #DI
11
55
3,188
Md. Redwan Hossain retweeted
In last 6 months, I’ve coded 18 MVPs for clients using Cursor. Here’s my full workflow: → Cursor Project Rules → Gemini Pro 2.5 for context → Sonnet 3.5 for execution → CodeGuide for docs Bookmark this and copy my Cursor AI workflow: ↓
103
376
5,156
3,933,333
Md. Redwan Hossain retweeted
We're cooking over here 😁 #dotnet #aspire
15
13
219
15,811
Md. Redwan Hossain retweeted
14 Sep 2021
10 lessons I've learned about handling React state over the last 7 years... (thread) #react #reactjs
76
600
2,443
Md. Redwan Hossain retweeted
Angular 19.2 adds a schematic for self-closing tags! 🔥 Self-closing tags have been supported in #Angular since version 15.1. 🚀 With Angular 19.2, you can now automatically migrate your templates to use them! Run the following command to update your application: 👉 ng g @angular/core:self-closing-tag 👈 Enhance the readability of your templates effortlessly with this update! #angularlove #angulartips #frontend
1
10
90
3,649
Md. Redwan Hossain retweeted
httpResource x Zod Schema validation Embracing the ecosystem is the way to go 🔥 ➡️ Demo: stackblitz.com/edit/angular-…
9
9
131
5,233
Md. Redwan Hossain retweeted
With #Angular's `booleanAttribute`, you can somewhat simplify how you pass boolean inputs to a component
2
6
77
3,523
Md. Redwan Hossain retweeted
25 Feb 2025
If you are interested in software engineering, databases or operating systems, here are some folks that I recommend following on X (in no particular order) I'm pretty sure I missed some more folks. Database internals @FranckPachot @sunbains @samokhvalov @wangbin579 @MarkCallaghanDB Protocols/architecture @Franc0Fernand0 @SimmerVigor @WillyTarreau @abhi9u @tunetheweb Kernel/OS @axboe @TanelPoder @PeterVeentjer
24 Feb 2025
Replying to @hnasr
Hey, Hussein! Glad to hear that it's possible to tune X algo, as so far I'm having a hard time fighting it 🙂 You mentioned “folks who are adept in their fields”: may I ask you to share a few accounts to follow for software engineers and CS enthusiasts, please? Thanks
13
55
524
51,428
Md. Redwan Hossain retweeted
Let's see how we can improve mixture of imperative and declarative code in #Angular to retrieve some data. ✅ assigning observable to instance variable and consuming via async pipe ✅ converting observable to signal ✅ using rxResource
4
4
57
3,165
Md. Redwan Hossain retweeted
10 Feb 2025
To learn TCP, read the RFCs to understand the design, then dive into the Linux kernel’s TCP code. Build your own TCP stream replay tool (around 1,000 lines of code), and within a year, you'll be ahead of 99.99% of people in this field.
10 Feb 2025
Replying to @wangbin579
Hi, can you recommend some good resources or books for learning tcp indepth? :)
34
303
4,099
335,320
Md. Redwan Hossain retweeted
29 Jan 2025

2
51
462
59,511
Md. Redwan Hossain retweeted
Javascript Object methods
47
309
2,318
238,200
Md. Redwan Hossain retweeted
#Angular 18.2 is out ! I very much like to 2 new migrations that landed ! All changes can be found in the release note ! github.com/angular/angular/r…
6
33
145
8,204