Ashu Deshwal (@_TheSTL_) header
Ashu Deshwal (@_TheSTL_) profile picture

Frontend Engineer @hackerearth

Bengaluru, India
Joined July 2019
Photo by Ashu Deshwal (@_TheSTL_)Photo by Ashu Deshwal (@_TheSTL_)Photo by Ashu Deshwal (@_TheSTL_)Photo by Ashu Deshwal (@_TheSTL_)Photo by Ashu Deshwal (@_TheSTL_)
Ashu Deshwal retweeted
How to merge a standalone repo into a monorepo, while maintaining git history. #note2self
3
2
2
15
A basic mental model of TypeScript types. A side by side comparison of JavaScript code vs Type level code to help you think of the type system as any other programming language. gist: gist.github.com/anuraghazra/… 1/n
12
61
4
434
Ashu Deshwal retweeted
My weekly #DesignSystem📖 Favorites: ⚡️How to implement Dark mode with #DesignTokens - @lukasoppermann ⚡️Astro Space UX Design System - @AstroUXDS ⚡️Design system interviews - @blvdmitry ⚡️Why is it so hard to gain the #DesignOps maturity? - Jan Lu bit.ly/3CGo9Wp
5
6
Ashu Deshwal retweeted
The Ultimate #DesignSystems Resources List 🌈 All the relevant, latest resources to help you create your design system. 💥 * Blog posts * Tools * Plugins * Libraries * List of Design Systems * Design Tokens * Slides and videos * Books * Conferences > bit.ly/3JKdefQ
7
26
2
100
For a very long time I've had some mystery JS code plaguing our app's CPU performance. We're talking 40% on my 2019 MBP 16" with absolutely nothing happening on the screen. I FOUND IT! 🎉 I won't say which OSS library it was publicly, but we're back down to 0.2 CPU baby! 😌
33
3
1
139
Ashu Deshwal retweeted
Steps to reproduce the bug / the test
5
20
213
Ashu Deshwal retweeted
The open/closed React component: A component that is based on the open/closed principle, which states that “software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification”. Thread 👇
2
23
4
114
Ashu Deshwal retweeted
Horrible Experience after ordering an appliance from @Flipkart @_Kalyan_K @flipkartsupport Order ID: OD225248070020255000 Detailed Experience in the attached image
4
2
1
2
Ashu Deshwal retweeted
"Really Ashamed" looking at how Indian #startups have started taken customers for granted. @Lets_Colive @Flipkart @Olacabs #StartUpPH #obsession #experienced #WORST What do you think ?
100%Yes
0%No
3 votes • Final results
2
1
2
Ashu Deshwal retweeted
Replying to @ColiveOfficial
@Lets_Colive Why don't you just remove banner of live meet, everyday waited for hours just to get in, because no staff is there, why false advertise. #colive #fraud #boycott #boycottcolive
2
2
2
Ashu Deshwal retweeted
#5: Most state is remote state. Streamline remote state via a custom "useApi" hook, react-query, or swr. The result? WAY less code. react-query/swr add: ✅Caching ✅Invalidates & refetches stale data ✅Dedupes requests ✅Auto retries ✅Refetch on refocus/reconnect
8
37
6
445
Ashu Deshwal retweeted
Problem: Fetching in useEffect means React components render, then fetch. This can lead to slow network waterfalls. Solution: Fetch as you render. Use react-query's prefetching (prefetch in the parent) or use @remix_run which does this by default via nested routes. #react
21
163
8
1,184
🧵1/8 Ever wondered why you're not able to conditionally call hooks in @reactjs? For example, this component early returns a `null` to avoid loading data into a `useState`. It's invalid React code. Why? How do hooks work under-the-hood? Let's dive into React's internals.
2
56
332
Ashu Deshwal retweeted
Two years of active work and we're happy about where we got so we're releasing @getReshaped v1.0 today. Together with @hi_drozdenko we've packed all of our 10+ years of building design systems into this project and hope you all enjoy using it. producthunt.com/posts/reshap… 👀
10
11
7
78
Ashu Deshwal retweeted
My biggest 5 coding mistakes as a Creative Developer during my career. A thread going through specific nitty-gritty of some code that I had implemented wrongly in some of my previous projects. 🧵
6
59
6
477
Ashu Deshwal retweeted
On the 28th of March, eyebrows went up across the world as HackerEarth community members opened the Practice portal and saw the design update. Here's a thread about why we released this update and how it was done! 🧵
1
1
8
Ashu Deshwal retweeted
Best practices for writing code-comments by @ellenspertus: bit.ly/codecmts. Often, comments should only answer questions code can't (e.g. the "why")
17
176
10
755
Ashu Deshwal retweeted
*Must read* for web developers: how modern browsers work by @kosamari 1️⃣ bit.ly/browsers-pt1 2️⃣ bit.ly/browsers-pt2 3️⃣ bit.ly/browsers-pt3 4️⃣ bit.ly/browsers-pt4 and browser.engineering by @BrowserBook
24
1,084
38
3,830
Ashu Deshwal retweeted
✎ For design systems, should you version the component library as a whole or should you version individual components? In this post, I break down the pros and cons of each strategy: bradfrost.com/blog/post/desi…
7
20
5
117