Timon van Spronsen

1.1K posts

Timon van Spronsen

Timon van Spronsen

@timonvspronsen

🇳🇱 Lead Software Engineer @Cimpress #a11y / React / TS / JS / Elixir / Elm Previously @madeawkward / @sketch

Rotterdam, The Netherlands Katılım Haziran 2009
1.8K Takip Edilen311 Takipçiler
Rick Pastoor
Rick Pastoor@rickpastoor·
Give it to me: what would you change on this landing page? One box ticked at least: showing off Cirrux Mail. cirrux.co
Rick Pastoor tweet mediaRick Pastoor tweet media
English
5
0
1
3.2K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@rickpastoor I also noticed that the images are PNGs, they should be much smaller as WebP for instance. You're using Next.js so there should be a built-in way to handle this automatically iirc, but it's been awhile since I used it.
English
1
0
0
20
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@rickpastoor I'm curious why the hero is rendered with canvas. The JS for it is one of the last things that load for me, but it's the first thing you see. In general I was getting quite slow loading performance, no throttling, ~40Mbps down right now.
English
3
0
0
117
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@rickpastoor Nice dark mode btw! I did notice though that both PNGs for the screenshot get loaded regardless, at ~850 KB each. I think you should be able to solve this with a `picture` element. Example: #the_media_attribute" target="_blank" rel="nofollow noopener">developer.mozilla.org/en-US/docs/Web…
English
0
0
1
31
Christian Reber 🇪🇺
Christian Reber 🇪🇺@christianreber·
Anyone else using WhatsApp on macOS? I constantly need to restart the app because I can't enter the input field to write a message. Can't seem to figure it out.
English
91
0
98
14.7K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@mattpocockuk I wouldn’t want to use a programming language that doesn’t have this tbh, which is unfortunately most of the popular languages.
English
0
0
0
29
Matt Pocock
Matt Pocock@mattpocockuk·
Discriminated unions are honestly just so freaking cool
English
28
10
385
56.1K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@daveyheuser I haven’t actually used it yet, but these were my exact feelings when they showcased it. The current Photos app isn’t a UX marvel either imho 😅
English
0
0
0
75
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@jlengstorf Wait till you notice the scrolling issues this thing has 😬. I cannot for the life of me understand why people love this thing. The form factor is pretty nice tho.
English
1
0
1
179
Jason Lengstorf
Jason Lengstorf@jlengstorf·
I got the MX Master 3 mouse because everyone has great things to say about it and... it makes my MacBook Pro unusable? menu bar gone, settings ignored and... the right click button is just... not listed as a button? I have to be using this wrong. anyone care to share any tips?
Jason Lengstorf tweet media
English
12
1
11
8K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@noudadrichem Zou het voor een klein project zeker niet doen, maar ik overweeg het voor onze component library op het werk waar we nu SVG naar JSX converteren (veel overhead met createElement calls, en wordt niet altijd goed getreeshaked).
Nederlands
0
0
1
51
Noud
Noud@noudadrichem·
@timonvspronsen Ja dacht dus ook aan public. Een edge function voelt overkill tho. Gebruik jij dat?
Nederlands
1
0
0
34
Noud
Noud@noudadrichem·
What’s the “cleanest” way to use custom icons in React? I’m thinking component wrapper for exported SVGs. But the sizing feels tedious and maintaining is annoying. Could also just make a font of it? Add it to /public and use directly? SVG sprite? #react #nextjs
English
2
0
2
463
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@mattpocockuk I inherited a codebase that makes heavy use of Redux Saga which makes me appreciate the power of generators. I would love to try Effect for backend code and the compatibility with TypeScript, which Saga is lacking imo.
English
0
0
1
211
Matt Pocock
Matt Pocock@mattpocockuk·
Are you excited about Effect?
English
84
19
151
134.3K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@storybookjs This feature would be awesome when combined with composition. Could really help designers create stories to showcase patterns.
English
1
0
4
57
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@storybookjs Nice! This makes me think of something I’m missing for our component library: we have components that take children (ReactNode), this currently shows up as an object which makes it impossible to try a component to its fullest extent (composition).
Timon van Spronsen tweet media
English
1
0
5
158
Storybook
Storybook@storybookjs·
🚨 New feature alert 🚨 We’re prototyping a way for you to create new stories in Storybook via controls! First, customize your story’s controls in Storybook. Then, either update the current story or save to a new one!
Storybook tweet media
English
5
6
90
6.6K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@kripod97 I can confirm that it's working for me in VS Code, but it doesn't in TS Playground or Stackblitz. How do you specify different behavior for different `as` values? It doesn't seem like the incoming props can be narrowed with this approach (?).
English
1
0
0
35
Kristóf Poduszló
Kristóf Poduszló@kripod97·
@timonvspronsen That’s pretty weird, as I couldn’t get the example to work on that playground, either – no matter what TSConfig options I’ve used 🤔 However, in a local IDE like VS Code, types are working without specifying the type parameter explicitly.
English
2
0
0
39
Kristóf Poduszló
Kristóf Poduszló@kripod97·
New article about type-safe polymorphism in React ⚛️ Addressing a long-standing performance issue within `@​types/react` in the process, this took quite some time to write. Let your peers know about getting the ‘as’ prop right 🔁 kripod.dev/blog/behind-th…
English
3
3
15
2.5K
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@derekkraan I'd never thought to use `srcdoc` for this, that's genius 🤯. I like how you've also made it a link, so that you can middle click to open it in a new tab. For me the YouTube video doesn't autoplay after clicking though, I'm using the latest version of Chrome on Mac.
English
1
0
1
54
Derek Kraan
Derek Kraan@derekkraan·
TIL, Embedding a YouTube video on your site can kill its loading performance. Facade to the rescue: using iframe's `srcdoc` attribute, we can avoid loading YT assets until the user clicks play. Did it help? Google's PageSpeed Insights seems to think so! See before/after.
Derek Kraan tweet mediaDerek Kraan tweet media
English
2
0
3
328
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
Making a little VS Code extension to help me with the boring work of converting a JS codebase to TypeScript. I want to let AI do the work, and I just check the diff and make adjustments where needed :)
English
0
0
4
331
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
@briankardell I figured you would know most of these :). I didn’t know about Igalia Chats yet, I will definitely give it a listen! Got any other recommendations?
English
1
0
1
60
bkardell 🐦
bkardell 🐦@briankardell·
@timonvspronsen Yeah I love several of these, Software Unscripted is new to me - will check it out, thanks! And I agree about Jake and Surma - in fact, we recently had them on our podcast, if you can't get enough :) igalia.com/chats/otmt
English
1
0
1
43
bkardell 🐦
bkardell 🐦@briankardell·
I need a good new podcast. Preferably one that is web related, but really pretty open. I had a nice, maybe overly full one developing during football season, but now I am feeling the emptiness... Suggestions?
English
2
0
2
508
Timon van Spronsen
Timon van Spronsen@timonvspronsen·
I'm converting a big React codebase from JS to TypeScript. There's a lot of repetitive work involved (think, converting proptypes to interfaces). Perfect for AI. I have access to GitHub Copilot, but I cannot get CoPilot to access the file contents, anyone know how to solve this?
Timon van Spronsen tweet media
English
0
0
2
239