Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ Profile Banner
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ Profile
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ

@erikras

9,602
Followers
1,686
Following
5,394
Media
44,841
Statuses

An American in Spain ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ Author of @reduxform and @finalformjs . BlueSky: @erikras . com ๐Ÿ‘‚ @happyhourdotfm

Spain
Joined July 2007
Don't wanna be here? Send us removal request.
Pinned Tweet
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
This is a demo I built in about 3 hours โ€“ much of it learning drag-n-drop โ€“ over a year ago to show off the power of ๐Ÿ React @finalformjs . ๐Ÿ’ฅIt uses one form to generate another, in realtime.๐Ÿ’ฅ Play with it here:
9
40
337
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
When the Senior Developer arrives to fix the bug...
226
10K
36K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
9 months
@stats_feed This is why February sucks.
42
58
5K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 months
When people make demands in Open Source issues...
80
493
4K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@stats_feed This means that for every 20yo in Iceland, thereโ€™s a 11yo? ๐Ÿค”
38
7
2K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 months
Frontend devs when some teenager releases a new JavaScript framework
27
236
2K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 months
In Prague they have several shops where all they sell are debugging tools.
Tweet media one
23
111
2K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 years
Tweet media one
11
257
1K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
#TypeScript Pro Tip: When passing around unique identifiers of objects, select the type of the identifier right off of the object type. - More refactor-proof ๐Ÿ”’ - Less cognitive load ๐Ÿคฏ - Much more legible to others ๐Ÿง
Tweet media one
46
175
1K
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@stats_feed Your sorting algorithm is a little buggy. ๐Ÿ˜‚
16
5
939
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
My frontend engineer brain read this life hack the wrong way.
Tweet media one
14
74
946
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
useAffect() โ€“ for when you need to pretend that you still love React hooks
23
55
646
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
8 months
Did you know these are all individual <div>s animated with CSS? ๐Ÿคฏ #AppleEvent Letโ€™s dive into the code! ๐Ÿงต
32
41
645
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@PicturesFoIder What is this nonsense?
7
0
593
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
This should be mandatory reading for anyone in the JavaScript community. What a WILD story! I remember some of it as it was happening, but wowโ€ฆ
34
122
563
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
7 months
My colleague just suggested I do: useEffect(() => { runSomeSideEffect(); }, [useGlobalValueFromContext()]) Iโ€™m in talks with HR to have Dan Abramov, in a police uniform ๐Ÿ‘ฎโ€โ™‚๏ธ, escort him off the premises. A hook in a dependency array is grounds for immediate termination, right?
49
16
555
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 years
TypeScript is a linter.
27
54
537
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
My 6yo just blew my mind: "Daddy, they should make a TV where you can push a button on it to make the remote beep so you can find the remote!" ๐Ÿคฏ
22
56
526
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 months
I've never understood why there's a difference between "sign up" and "sign in" with OAuth services. Just ๐Ÿคฌ upsert! If it's a new signup, send them to onboarding, otherwise to the dashboard. @ClerkDev , do you have a reason I haven't considered?
41
16
521
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
TIL: @1Password has a CLI! So I can securely publish to @npmjs with: npm publish --otp $(op get totp npmjs) #productivity #devtwitter Get CLI here:
Tweet media one
11
100
508
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@mweststrate It's nice to finally get some closure on this debate.
3
21
491
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
I wrote down some thoughts on Open Source Sustainability. It's a hard problem. We need to raise awareness. I'd be much obliged if you'd read and share.
17
185
454
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 years
Unit tests just saved my ass.
8
26
433
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
How Redux was born at @ReactEurope .
Tweet media one
5
27
393
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 months
Kinda proud of this TypeScript I wrote this morning. The ubiquitous pluralize() function:
Tweet media one
22
21
388
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
10 months
I want a image resizing CDN SaaS where I can do: <img src="cdnservice .com?url= https://mydomain/huge-image.jpg&width=200"/> The first request does the resizing and distribution to a CDN and returns the smaller image, and every subsequent request just gives the smaller image.
119
11
375
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
โ™ป๏ธ A lot of #JavaScript devs know about reduce(), but very few people know about reuse() and recycle(). โ€“โ€“ Array.prototype.reuse = function () { return this; } Array.prototype.recycle = function () { return Array.from(this); }
7
22
346
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
Moving from JS to @typescript feels like so much time is being wasted appeasing the vindictive TS gods. But I just went back to JS and spent HOURS debugging a thing that TS would've caught as I was coding it. ๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ #helicopterparenting vs. #freerangekids
13
32
336
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
I've got another #TypeScript question.
Tweet media one
14
77
334
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@tlakomy forEach() and every() one of us, we must find() some sort() of map() so our team includes() some() slice() of moral values() and keys() to join() together to reduce() the desire to push() the indexOf() hatred, and shift() thoughts and minds. โ€“โ€“ Hey, boss, when can I get arrays?
7
50
332
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
6 months
DevLife
Tweet media one
7
24
329
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
8 months
. . . No, not really. Itโ€™s a 6.6MB video. But you werenโ€™t sure there for a second, were you?
11
1
322
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
6 years
Today I'm launching a brand new form library. Introducing... ๐Ÿ Final Form Feedback, claps, โญs and RTs appreciated.
33
132
318
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
Just got first recruiter email asking for @remix_run skills. How many years of experience should I claim to have? ๐Ÿคฃ
19
7
285
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
Hey backend nerds! I need some help. You've got 100k requests/minute coming in, that need to return immediately, and you need to put a record in a database for every one. What architecture do you use?
78
26
280
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@dan_abramov Open source form libraries, bro. My yacht can barely float with all the gold bars.
2
2
276
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
Itโ€™s TypeScript Question Time again!! String literal types are awesome, but I need a way to expand (iterate over?) them to create a more complex type. Is this possible?
Tweet media one
24
19
271
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 months
NO BLOCKERS! NOBLOCKERS!!
Tweet media one
8
29
260
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
@vercel @rauchg Wow, @Rich_Harris is expensive! ๐Ÿ˜‚
4
0
260
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Reading about the newest JavaScript framework.
Tweet media one
10
16
258
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@stats_feed Isnโ€™t Iceland where they have that โ€œBefore we bone, are you my cousin?โ€ app? Scandi-lous!
5
2
250
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@stats_feed I know thatโ€™s not exactly how averages work, but thereโ€™s a huge pile of 14yos on that side of the fulcrum to keep the average so low.
2
1
247
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
My brain did this to me when I couldn't sleep last night.
Tweet media one
8
12
249
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
9 months
@stats_feed Thursdays.
4
0
239
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
When you make a change on prod when you thought you were on dev. ๐Ÿ˜…
3
61
241
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
Oscillating between TypeScript and Javascript is so jarring. Back in JS land, and I'm like, "WTF, you mean I could just pass ANYTHING to this function? Tell me what you expect of me!"
13
22
233
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 months
It's a shame TypeScript can't *require* a specific kind of React component as children of another. It would make composibility libraries so much more powerful.
Tweet media one
32
7
241
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
@DavidKPiano Well, ideally it's a hashset, for faster lookups. ๐Ÿฅ
4
11
235
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
I'm getting really ๐Ÿคฌ tired of every file I edit being called index.js. There *must* be a better way to organize javascript files.
29
18
234
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
@JoshConstine Thatโ€™s rad!
1
0
224
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
. @remix_run suffers from the same problem as #React : the keyword actively damages any search query on YouTube.
22
8
226
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
Yesterday I had a bug in my code caused by A FREAKIN GLOBAL VARIABLE called `length` thatโ€™s just *always there* in #JavaScript . Just when you think youโ€™ve stepped in all the JS holesโ€ฆ
Tweet media one
23
13
221
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@cluedont But now he barks like a chihuahua!
1
1
219
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
I work on frontends and backends, but not weekends.
4
36
225
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
The single greatest feedback that can be given to a tech talk speaker is: "You inspired me to go build something." I always give this feedback as often as it's true, and appreciate it as the highest honor when I receive it. ๐Ÿฅฐ
3
29
210
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@markdalgleish No one wants to see your "div pics".
1
5
213
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Wow. Copilot just generated this useEffect for me. Itโ€™s exactly the kind of mistake that a very junior React dev would make. It does โ€œworkโ€, but not the way the โ€œcoderโ€ intended. ๐Ÿ‘ always! ๐Ÿ‘ include! ๐Ÿ‘ dependency! ๐Ÿ‘ array! ๐Ÿ‘ Worst API default ever?
Tweet media one
29
6
198
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
@DavidKPiano Wisdom is a collection of mistakes made.
2
33
195
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 years
Did you know? In the UK, they spell it: console.logue() ๐Ÿ‡ฌ๐Ÿ‡ง
12
10
195
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Earlier today, my brain pattern-matched on a CSS color that was something like ` #00d0dd `, and I realized that @kentcdodds needs this t-shirt. It turns out that ` #CD0DD5 ` is a fuchsia tone.
Tweet media one
10
3
191
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
6 months
Hey, React nerds. My intuition is that memoizing JSX elements is wrong, and it's the *data* that should be memoized. What are the arguments in either direction?
Tweet media one
Tweet media two
58
10
190
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Ooh, I spotted a `do {} while ()` in the wild! In my experience, it seems to be one of the most rarely used language constructs (in JS).
18
3
182
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
At @centered_app , we migrated: Express on @heroku โ†’ Next on @vercel Lighthouse score: 39 โ†’ 100 ๐Ÿคฏ๐Ÿ“ˆ
5
6
184
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
8 years
@RichardDawkins Autocorrect just made me type "The Selfie Gene". *shudder*
7
31
165
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
Welcome to my conference talk.
Tweet media one
5
19
182
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
After reading the โ€œvs Nextโ€ blog post, running through the tutorial, and adapting it to one of my existing projects, Iโ€™m convinced that Iโ€™ll be using @remix_run for all of my future projects (and converting some existing ones). I canโ€™t wait to reap the benefits of skipping SSG!
12
10
172
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
TypeScript Question Time!! I want to determine a type based on a union of objects.
Tweet media one
3
12
172
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
9 months
@mattpocockuk I remember back when you were declaring variables with `var`.
Tweet media one
6
0
170
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 months
@ThePrimeagen Please! Is there a docker on the plane?
2
7
162
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
I just booted up the TypeScript playground to ask you all a question, but then I figured it out, so instead Iโ€™m sharing the solution. This feels like a really common pattern. Can you think of a more elegant solution?
Tweet media one
21
10
162
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@markdalgleish WHERE DO I PUT MY CSS, MARK?!? CSS-in-HTML-in-JS or CSS-in-JS-in-HTML?
8
10
157
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
If you haven't built a #COVID19 data visualization website yet, are you really a web dev? ๐Ÿค”
10
20
161
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Hello, dear followers. Iโ€™m officially looking for a job starting in 2023. DMs open. Act now before your competitor snatches up this talent! ๐Ÿ˜‚
5
77
155
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
@jaredpalmer Full stack!!
0
1
152
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
ATTENTION: Due to #COVID19 all TCP requests are being converted to UDP to avoid handshakes. Thank you. I'm here all week, literally quarantined in this comedy club for the foreseeable future.
1
30
153
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 months
@mattpocockuk I hand roll my XMLHttpRequests artisanally like god intended!
3
2
149
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
As of today, I have been a dad for ten years!
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
15 years
So far I'm crying more than my hour-old daughter.
0
0
24
5
6
147
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
@kentcdodds @remix_run Doctor: โ€œKent, what you need now is REST.โ€ Kent: โ€œI know! I do that with action functions in Remix!โ€
3
1
147
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 months
Last week I invented a clever way to manage state in React. I implemented it in a few PRs at work, and I even wrote a blog post, excited to share my discovery with the world. Luckily I didnโ€™t publish, because this week I discovered that the approach doesnโ€™t work at all. ๐Ÿ˜…๐Ÿคฆโ€โ™‚๏ธ
14
1
146
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
8 months
@engineers_feed ๐Ÿ”จ = 7 ๐Ÿชš = 3 ๐Ÿงฐ = 17 All together = 27
1
0
142
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Asked for a table at a French restaurant, and the waiter asked, โ€œSea view?โ€ I answered, โ€œSea view plaรฎt!โ€
Tweet media one
8
5
141
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
๐Ÿ’ฃ I've spent the past two weeks rewriting ๐Ÿ React Final Form using hooks and rewriting *all* the tests to use ๐Ÿ React Testing Library. It's been a great learning experience, and the library feels as robust as ever. Up to 100% coverage...hope to release sometime this week. โฑ
4
18
139
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 years
1. onMouseEnter 2. Wait n ms 3. Animate in new element 4. Wait for animation to finish 5. Stop any of this onMouseLeave All 50 times Iโ€™ve built this #UI , I screw it up. Today, I coded an #XState machine by hand, from scratch, to do this, and it worked. First. ๐Ÿคฌ. Time! ๐Ÿ’ฅ ๐ŸŽค โฌ‡๏ธ
6
6
136
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
3 months
I just learned the `-?` syntax in TypeScript. It makes all the keys required (removes "optionality").
Tweet media one
4
14
138
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
8 months
@mattpocockuk Without googling I donโ€™t know what ANYTHING in package.json does. Next interview question?
1
0
137
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
Typescript would not have allowed you to make this mistake. โ€“โ€“ I'm gonna leave this here and link back to it a thousand times. So chances are seeing this from The Future. #TypeScript
Tweet media one
3
41
136
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 years
Is there a single reason to ever use ES6 classes in JavaScript? Closures feel so much more lightweight and simpler. If I never see `this` again, it will be too late. #NotRhetorical
28
10
135
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
๐ŸŽถ
Tweet media one
2
12
132
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
@tlakomy Good return on investment.
3
1
129
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
@simon1972 @qikipedia My [smartass] son says โ€œthe most boring person in the word does not exist, because that designation would make him interesting!โ€ ๐Ÿ™„
1
3
128
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
6 years
The form boys. #react #forms
Tweet media one
5
11
125
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
Retweet this if you have a useCurrentUser() hook in your project. #React
13
22
121
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
Alright dev nerds. Please argue for or against the following take: โ€“โ€“ There's no reason to use Map() in JS because objects are already doing hashing internally, and Map() provides no additional value over objects. โ€“โ€“ Go! ๐Ÿ‘‡
55
6
124
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
It sounds dumb, but I always feel like such a badass programmer when I use a `finally` block. What keyword boosts your ego?
57
1
123
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
I recreated Danโ€™s famous React Lifecycle Method chart as an XState state chart. โ€“โ€“ Code:
Tweet media one
4
15
120
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
5 months
Some services are like, "You already have an account, so go click the 'login with google' button instead of the 'sign in with google' one you just clicked." Why??
2
1
120
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
@tlakomy @eggheadio 3. Solid dad jokes about CSS.
2
0
116
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
1 year
What if a form library were so framework agnostic that it could provide value to not-yet-invented frontend frameworks? Or the new hotness, @solid_js .
7
13
117
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
4 years
The new @Facebook UI has so many own goals. When you have to truncate the word "Like" to "Li...", c'mon. Maybe they should rename it to Facepalm. ๐Ÿคฆโ€โ™‚๏ธ
Tweet media one
13
8
115
@erikras
Erik Rasmussen ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ
2 years
I just walked a non-technical person through one of my @statelyai state charts, andโ€ฆ They spotted a bug. ๐Ÿ’ฅ
3
8
114