Marc Bernstein

2.1K posts

Marc Bernstein

Marc Bernstein

@marcandrewb

Dad. Husband. Music Enthusiast. Craft Beer Aficionado. Software Engineer @stitchfix

Albany, NY Katılım Ekim 2008
341 Takip Edilen198 Takipçiler
Marc Bernstein retweetledi
Kit Langton
Kit Langton@kitlangton·
Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked upon. types.kitlangton.com ← 👀
English
53
127
1.1K
154.5K
Marc Bernstein retweetledi
uno
uno@whatahappycat·
phone addiction got so bad that watching a movie feels productive.
English
297
28.8K
316K
5.8M
Marc Bernstein
Marc Bernstein@marcandrewb·
@housecor I think default only works with undefined values. If the backend explicitly sends null the value won’t be transformed into the default and will persist as null.
English
1
0
2
236
Cory House
Cory House@housecor·
Problem: The backend returns a needlessly wide type. Example: The backend returns null, undefined, or an array. Solutions: (ranked by preferability): 1. Narrow the type on the backend. 2. Use Zod to narrow the type via default. Now the array always exists.
Cory House tweet media
English
9
5
142
13.1K
Cory House
Cory House@housecor·
Problem: You want to initialize something only once in a React component. Solution: Call useState without a setter. Idea via @TkDodo
Cory House tweet media
English
38
61
757
189.9K
Marc Bernstein
Marc Bernstein@marcandrewb·
TV Streaming platforms should have playlists like Spotify.
English
0
1
1
101
Steve (Builder.io)
Steve (Builder.io)@Steve8708·
What do you prefer to use for handling forms in React? useState? new FormData(form)? A library (which one)?
English
228
30
489
184.8K
✨ Josh Branchaud 👻
✨ Josh Branchaud 👻@jbrancha·
What are good tools for browsing and visualizing a big JSON file? I think I saw a couple before the holidays but can’t recall what they’re called.
English
5
0
2
1.1K
Marc Bernstein retweetledi
Matt Pocock
Matt Pocock@mattpocockuk·
Scared of using an un-typed fetch function? This gives you end-to-end type safety (with Zod) in less than 100 lines of code. 🔍 Autocomplete of Routes & input 🤏 No Zod in client-side bundle Obviously missing a ton of features, but it's better than nothing.
Matt Pocock tweet mediaMatt Pocock tweet mediaMatt Pocock tweet media
English
14
24
400
57.2K
Marc Bernstein retweetledi
Cory House
Cory House@housecor·
4 ways to handle multiple promises in #JavaScript How I choose: 1. Promise.all - I want all, but reject if any reject. 2. Promise.allSettled - I want the status of all, even if some reject. 3. Promise.race - I want the first. 4. Promise.any - I want the first that resolves.
Cory House tweet media
English
9
112
606
0
Marc Bernstein
Marc Bernstein@marcandrewb·
@dan_abramov What is one thing you learned that you didn’t know before while writing the new React docs?
English
0
0
1
0
Marc Bernstein
Marc Bernstein@marcandrewb·
Bytes is a work of art. There's no better way to stay up to date on the JavaScript ecosystem. Consistently the best newsletter I receive. The memes are dank too. bytes.dev/share/Y2hhcmNv…
English
0
0
4
0
Marc Bernstein retweetledi
Ben Ilegbodu 🏀👨🏾‍💻
Hey! My Frontend Platform team at @stitchfix is hiring a Principal engineer! If you: 🔷 Like React, TypeScript & Next.js 🔷 Wanna work on a robust design system 🔷 Interested in DivOps 🔷 Enjoy improving the experience for other devs DM me or apply at: grnh.se/fd9df98c1us
English
0
2
7
0
Marc Bernstein retweetledi
Matt Pocock
Matt Pocock@mattpocockuk·
🧵 The Ultimate TypeScript Thread 🧵 Here's everything I've learned from leading TS dev teams and working on XState's core team. My goal is to turn you into a TypeScript wizard. And yes, this thread is EVERGREEN - I'll add at least 3 more tips a week 🚀 Let's get started.
English
91
871
4.7K
0