Ashu Deshwal

122 posts

Ashu Deshwal banner
Ashu Deshwal

Ashu Deshwal

@_TheSTL_

Frontend Engineer @hackerearth

Bengaluru, India Katılım Temmuz 2019
125 Takip Edilen31 Takipçiler
Ashu Deshwal retweetledi
Stephan Meijer
Stephan Meijer@meijer_s·
How to merge a standalone repo into a monorepo, while maintaining git history. #note2self
Stephan Meijer tweet media
English
3
2
15
0
Ashu Deshwal retweetledi
Anurag Hazra ⚛
Anurag Hazra ⚛@anuraghazru·
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/c3… 1/n
Anurag Hazra ⚛ tweet media
English
12
62
437
0
Ashu Deshwal retweetledi
Romina
Romina@rominakavcic·
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
Romina tweet media
English
7
27
100
0
Ashu Deshwal retweetledi
Tanner Linsley
Tanner Linsley@tannerlinsley·
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! 😌
English
34
3
141
0
Ashu Deshwal retweetledi
Haz
Haz@diegohaz·
Steps to reproduce the bug / the test
Haz tweet mediaHaz tweet media
English
5
20
214
0
Ashu Deshwal retweetledi
Haz
Haz@diegohaz·
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 👇
English
2
23
113
0
Ashu Deshwal retweetledi
Cory House
Cory House@housecor·
#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
English
8
38
449
0
Ashu Deshwal retweetledi
Cory House
Cory House@housecor·
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
Cory House tweet media
English
21
165
1.2K
0
Ashu Deshwal retweetledi
Corbin Crutchley
Corbin Crutchley@crutchcorn·
🧵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.
Corbin Crutchley tweet media
English
2
58
335
0
Ashu Deshwal retweetledi
Dima Belyaev
Dima Belyaev@blvdmitry·
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/reshaped 👀
Dima Belyaev tweet media
English
10
11
78
0
Ashu Deshwal retweetledi
Luis Bizarro
Luis Bizarro@LuisBizarro·
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. 🧵
English
6
59
479
0
Ashu Deshwal retweetledi
HackerEarth
HackerEarth@HackerEarth·
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! 🧵
English
1
1
8
0
Ashu Deshwal retweetledi
Addy Osmani
Addy Osmani@addyosmani·
Best practices for writing code-comments by @ellenspertus: bit.ly/codecmts. Often, comments should only answer questions code can't (e.g. the "why")
Addy Osmani tweet media
English
17
178
760
0