Petter Sรฆther Moen's Avatar

Petter Sรฆther Moen

@pmoen.me.bsky.social

Software developer based in Norway ๐Ÿ‡ณ๐Ÿ‡ด I post about frontend stuff, probably... @pettersmoen on ๐Ÿฆ

20 Followers  |  43 Following  |  28 Posts  |  Joined: 09.11.2023  |  1.85

Latest posts by pmoen.me on Bluesky

Post image

I forget that hooks and suspense are something outside of react sometimes. funny how unexpected it was seeing tips on writing and music

16.10.2025 09:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

this leads to more performant event handling! another effect is that events will bubble differently. since the component trees often differ from the DOM trees they represent, the events will bubble the same way we code our apps. this makes event bubbling much easier to reason about for us devs!

12.10.2025 14:19 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

did you know that the "event listener" props in react, such as onClick, don't actually lead to event listeners being added to the DOM? instead react uses an event delegation pattern where all events are caught in its root element. it then bubbles the event through the react component tree.

12.10.2025 14:19 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

there is something immensely satisfying about spawning a bunch of agents in claude code and just seeing them rip through my 5-hour usage limit

11.10.2025 17:13 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

100% organic, free range, code being produced rn

06.10.2025 10:23 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

no worse feeling than using up your claude code tokens 1 hour into your work day. what am I gonna do until 2pm?

06.10.2025 10:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

made myself a solitaire app while exploring @v0.dev app. fun to be able to create the apps I need on my phone instead of going to the app store. it took 16 iterations before it was playable though, so maybe not quite there for the average consumer. I can see this becoming the way forward though

01.10.2025 15:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

LFG! thisโ€™ll be fun to explore

01.10.2025 07:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1
Post image

vibecoding just got better with the new @developer.chrome.com devtools mcpโšก๏ธdid a small test where I got it to do a performance analysis of my website, and it's really easy to get started. I can see this being useful for verifying changes I've done locally, or for debugging accessibility issues!

29.09.2025 15:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I found myself using ChatGPT to recollect the name of the partition function in es-toolkit. before chat I would have asked my overly FP enthusiastic colleague for that information. I miss those micro-interactions

12.09.2025 12:13 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

is this how gaslighting feels like? :(

12.08.2025 14:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

oooh, cursor has a cli tool now. that might be a game changer for my setup

08.08.2025 07:05 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I just quit my cursor subscription to go all-in on Claude Code, and then GPT-5 drops. welp, time to reactivate I guess

07.08.2025 21:59 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

In Cursor I find myself prompting less, since it isn't always up in your face. In Claude I find I'm being forced into a iterative prompting cycle, which has been really doing wonders

06.08.2025 13:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

recently started using Claude Code instead of Cursor, and I'm really enjoying it! both are awesome, but I really like how the focus in Claude Code is always about prompting

06.08.2025 13:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

seems like there has been a regression on some coding agents. Cursor would previously just go crazy and do everything without asking, now I have to continuously tell it to proceed. I just wanna lean back and watch it fuck up my codebase!

03.07.2025 11:15 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

kudos to @github.com on the new pr review interface! really enjoy how easy it is to find other comments and see a recap of the comments I've left before submitting a review ๐Ÿซถ๐Ÿป

03.07.2025 08:47 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

damn! someone actually got it right! ๐ŸคŒ๐Ÿป

21.06.2025 17:51 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

every time I check in at hotels Iโ€™m amazed at how slow the check-in process is. if I donโ€™t have any special requests it should be one click ๐Ÿ˜†

21.06.2025 14:15 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

@erikras.com just showed off how you can program smart homes with react primitives. my mind is blown! awesome talk!

13.06.2025 13:14 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

right now there are only "official" plugins for webpack and parcel. I know vite is cooking up something, but doesn't seem to be any official plugins yet. that is what is holding react router back from releasing rsc. the preview release react router got out is built on top of parcel actually

13.06.2025 11:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Mye raskere skjemaยญvalidering: โ€“ Har lenge irritert meg! React Server Components snart ute i React Router, Zod ute med lenge etterlengtet versjon og tips for รฅ bli en magiker โ€” i denne ukas ForrigeUke.

React Server Components snart ute i React Router, Zod ute med lenge etterlengtet versjon og tips for รฅ bli en magiker โ€” i denne ukas ForrigeUke fra Petter Sรฆther Moen i Bekk.

โ€“ Forhรฅpentligvis vil dette gjรธre utvikleropplevelsen min en del bedre.

www.kode24.no/artikkel/mye...

22.05.2025 12:11 โ€” ๐Ÿ‘ 3    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

got to talk at Bart.js, a JS meetup in Trondheim, today about React Server Functions. I had a great time! the crowd was brilliant!

wanna do more like this!

20.05.2025 20:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

if this developer career doesn't work out I might be in the money drawing squigglies!

14.05.2025 12:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Post image

carbon.now.sh is pretty nice for making code snippets, but unfortunately no way to display error squiggly lines. no ones gonna notice I drew them myself, right?

14.05.2025 11:47 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

the linkedin games are so fire. actually makes me open linkedin every day

13.05.2025 16:44 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

TIL: JS actually has private class properties. just prefix your fields with #. never seen anyone use them though

12.05.2025 07:17 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

morph transitions seems to be the only way to stay sane

11.05.2025 12:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

animations in powerpoint are so rough to work with, is there a better way to do animation in slides I'm not aware of?

11.05.2025 11:42 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@pmoen.me is following 20 prominent accounts