amacarthur Profile Banner
Alex MacArthur Profile
Alex MacArthur

@amacarthur

Followers
1K
Following
24K
Statuses
23K

Bossing around computers in made-up languages, Sr. software engineer for @DaveRamsey. Building the Plausible Bootstrapper, JamComments, PicPerf, + more.

Nashville, TN
Joined April 2009
Don't wanna be here? Send us removal request.
@amacarthur
Alex MacArthur
8 days
If you’ve ever needed to break up a long JavaScript task to keep the UI responsive, you’ve probably reached for setTimeout(). Turns out there are a boatload of other options at your disposal, like scheduler.yield(). I wrote about a handful & their tradeoffs:
Tweet media one
1
1
2
@amacarthur
Alex MacArthur
1 hour
@briancoords Congrats!
0
0
0
@amacarthur
Alex MacArthur
4 hours
@howertonjosh That was a great sermon.
0
0
3
@amacarthur
Alex MacArthur
6 hours
Tweet media one
0
0
0
@amacarthur
Alex MacArthur
7 hours
This is real. 😳
Tweet media one
2
0
1
@amacarthur
Alex MacArthur
10 hours
@mehulmpt @kettanaito @bunjavascript Confirmed - I'm not able to set either of the two forbidden headers here. Node 22.6.
Tweet media one
Tweet media two
0
0
2
@amacarthur
Alex MacArthur
11 hours
@wesbos respect 🫡
0
0
8
@amacarthur
Alex MacArthur
11 hours
@jappleby *tweets the ~80k-follower account*
0
0
0
@amacarthur
Alex MacArthur
12 hours
@mehulmpt @bunjavascript Really! I’m assuming you were using fetch() w/ Node? I assumed you could set what you want there. cc: @kettanaito
1
0
0
@amacarthur
Alex MacArthur
12 hours
@kettanaito Good distinction! A web security thing. You can also set them via curl.
0
0
1
@amacarthur
Alex MacArthur
12 hours
@jacobmparis Then I’ll just tuck that useless knowledge away to impress the grandkids
0
0
1
@amacarthur
Alex MacArthur
12 hours
@jacobmparis wat. that’s actually real???
Tweet media one
1
0
0
@amacarthur
Alex MacArthur
1 day
Update: I am an idiot.
@amacarthur
Alex MacArthur
1 day
And there it is!! Right there in my EventServiceProvider.php. What a nice, refreshing face-palm moment.
Tweet media one
0
0
1
@amacarthur
Alex MacArthur
1 day
And there it is!! Right there in my EventServiceProvider.php. What a nice, refreshing face-palm moment.
Tweet media one
1
0
3
@amacarthur
Alex MacArthur
1 day
@aarondfrancis Yes 👍 The route as a whole is working just fine. Getting 200s consistently. It's just that stinking event that won't seem to fire.
0
0
1
@amacarthur
Alex MacArthur
1 day
I've also tried manually registering a listener with Event::listen() in my AppServiceProvider, but that seems pointless if the event isn't getting dispatched anyway.
0
0
0