Erik Rasmussen 👨‍💻🇺🇸🇪🇸 Profile Banner
Erik Rasmussen 👨‍💻🇺🇸🇪🇸 Profile
Erik Rasmussen 👨‍💻🇺🇸🇪🇸

@erikras

Followers
9,798
Following
1,713
Media
5,533
Statuses
45,743

An American in Spain 🇺🇸🇪🇸 Author of @reduxform and @finalformjs . Building the best CRM ever at @attio . 👂 @happyhourdotfm

Spain
Joined July 2007
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
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
336
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
When the Senior Developer arrives to fix the bug...
224
10K
36K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 year
@stats_feed This is why February sucks.
42
57
5K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 month
How's your day going? 🤦‍♂️
Tweet media one
165
316
4K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
7 months
When people make demands in Open Source issues...
79
486
4K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 year
@stats_feed This means that for every 20yo in Iceland, there’s a 11yo? 🤔
38
6
2K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
7 months
Frontend devs when some teenager releases a new JavaScript framework
27
230
2K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 months
Ouch.
Tweet media one
8
251
2K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 months
In Prague they have several shops where all they sell are debugging tools.
Tweet media one
21
111
2K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
Tweet media one
11
256
1K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 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
173
1K
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 year
@stats_feed Your sorting algorithm is a little buggy. 😂
15
4
919
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
My frontend engineer brain read this life hack the wrong way.
Tweet media one
14
74
938
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
2 years
useAffect() – for when you need to pretend that you still love React hooks
23
55
644
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
11 months
Did you know these are all individual <div>s animated with CSS? 🤯 #AppleEvent Let’s dive into the code! 🧵
31
40
633
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 year
@PicturesFoIder What is this nonsense?
7
0
588
@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
121
556
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
10 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
549
@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
525
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
8 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?
40
16
518
@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
101
508
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 years
@mweststrate It's nice to finally get some closure on this debate.
3
21
492
@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
184
453
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
Unit tests just saved my ass.
8
26
432
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
How Redux was born at @ReactEurope .
Tweet media one
5
26
391
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
7 months
Kinda proud of this TypeScript I wrote this morning. The ubiquitous pluralize() function:
Tweet media one
22
21
382
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
1 year
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.
118
11
372
@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
344
@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
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
331
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
I've got another #TypeScript question.
Tweet media one
14
76
331
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
9 months
DevLife
Tweet media one
7
24
327
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
7 years
Today I'm launching a brand new form library. Introducing... 🏁 Final Form Feedback, claps, ⭐s and RTs appreciated.
33
131
318
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
11 months
. . . No, not really. It’s a 6.6MB video. But you weren’t sure there for a second, were you?
11
1
316
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
2 months
I ran a science experiment. 👨‍🔬 🔊 sound on
33
28
294
@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
6
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
277
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 years
@dan_abramov Open source form libraries, bro. My yacht can barely float with all the gold bars.
2
2
273
@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
269
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
8 months
NO BLOCKERS! NOBLOCKERS!!
Tweet media one
8
29
260
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
@vercel @rauchg Wow, @Rich_Harris is expensive! 😂
4
0
258
@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
247
@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
243
@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 👨‍💻🇺🇸🇪🇸
1 year
@stats_feed Thursdays.
4
0
234
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
When you make a change on prod when you thought you were on dev. 😅
3
61
240
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
7 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
239
@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
232
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 years
@DavidKPiano Well, ideally it's a hashset, for faster lookups. 🥁
4
11
234
@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
223
@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
227
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
@cluedont But now he barks like a chihuahua!
1
1
219
@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 👨‍💻🇺🇸🇪🇸
5 years
I work on frontends and backends, but not weekends.
4
36
225
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
4 years
@markdalgleish No one wants to see your "div pics".
0
5
213
@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 👨‍💻🇺🇸🇪🇸
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
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
27
6
196
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
2 years
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
190
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
9 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
57
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
Welcome to my conference talk.
Tweet media one
5
19
182
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
At @centered_app , we migrated: Express on @heroku → Next on @vercel Lighthouse score: 39 → 100 🤯📈
5
6
184
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
9 years
@RichardDawkins Autocorrect just made me type "The Selfie Gene". *shudder*
7
31
165
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 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 👨‍💻🇺🇸🇪🇸
1 year
@mattpocockuk I remember back when you were declaring variables with `var`.
Tweet media one
6
0
171
@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
170
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
8 months
@ThePrimeagen Please! Is there a docker on the plane?
2
7
158
@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
If you haven't built a #COVID19 data visualization website yet, are you really a web dev? 🤔
10
20
158
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 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 👨‍💻🇺🇸🇪🇸
2 years
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
151
@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
@matteocollina I'm so senior I never learned Docker. Back in my day, we ssh'd into physical servers in the server room down the hall! 👴
12
1
146
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
5 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
25
5
6
147
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
6 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
144
@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
146
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
11 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 👨‍💻🇺🇸🇪🇸
6 months
I just learned the `-?` syntax in TypeScript. It makes all the keys required (removes "optionality").
Tweet media one
4
15
140
@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 👨‍💻🇺🇸🇪🇸
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
135
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
11 months
@mattpocockuk Without googling I don’t know what ANYTHING in package.json does. Next interview question?
1
0
135
@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
27
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
130
@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
126
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
Retweet this if you have a useCurrentUser() hook in your project. #React
13
22
120
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
6 years
The form boys. #react #forms
Tweet media one
5
11
123
@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
123
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
2 years
I recreated Dan’s famous React Lifecycle Method chart as an XState state chart. –– Code:
Tweet media one
3
15
120
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
3 years
It sounds dumb, but I always feel like such a badass programmer when I use a `finally` block. What keyword boosts your ego?
56
1
122
@erikras
Erik Rasmussen 👨‍💻🇺🇸🇪🇸
11 days
@terminaldotshop @luizgrocco I hope you started with Bigint so you won't have to migrate later when you revenue crosses $90 trillion.
2
2
122