Sam Apostel
613 posts


The Japanese tech community is always ahead of the curve in adoption of new products. When I released socket.io, it was big in 🇯🇵 before everywhere else. Nowadays if I launch something and the JP community doesn't go haywire right away, I don't have PMF 😁
English

@housecor 9. This is a framework implementation choice. Not a default by react. Right?
English

Answers:
1. A client component can render a server component via a “slot”prop
2. True. You can create a static site with RSC.
3. True. You can query a DB in a RSC.
4. True. The “use client” directive declares a component as a client component.
5. False. You can only use hooks like useEffect and useState in client components.
6. False. The “use server” directive declares a server *action*, NOT a component.
7. True. Server components can be rendered either static (at compile time) or dynamic (at run time).
8. False. With RSC, results are streamed. So the user can see partial results while asynchronous data is loading in a server component.
9. True. In environments that support RSC, components are server components by default.
10. True. Since server components render on the server, each server component adds no JS to the bundle.
11. True. Props passed from the Server to Client Components need to be serializable.
12. False. You can’t import a server component into a client component.
English

@housecor Well in that case I have to change my answer.
Only downside is that all non strings and numbers loose referential integrity on a refresh of the rsc’s because they get recreated. Uou can fix this by utilizing symbols
English

@TailosiveTech No lightning port (magsafe)
No faceId (lock button fingerprint)
No sim tray (esim only)
Plastic body (like 5c)
13 Mini size
no bottom facing speakers (only earpeace)
One rear and one front camera
English

@jlengstorf About half a year ago I made a site which had round plates of food in a hexagonal pattern. After testing about lot of different techniques, floats were the easiest way to achieve that.
English

@LeaVerou @vuejs I would like to hear more about the web standards and DX differences that fall under this statement.
Do you use vue template or jsx in vue? I can’t get over how much better jsx is but that’s no dealbreaker for me.
Web standards would be a reason for me to consider vue though.
English

One of the things that puzzle me the most about our industry is why do devs keep choosing React over @vuejs.
It’s bloated, produces poor user experiences, makes bigger demands on tooling, respects web standards less, and has significantly poorer DX…
I just …don’t get it.
English

*opens upcoming blog post to review*
Wow, @vercelians are really excited about this May 4 ship 😄

English

@diegohaz I think Satori might be exactly what you’re looking for: github.com/vercel/satori
English

I have to make SVGs for the component pages on ariakit.org.
What's the best way to approach this? I want to write the code (rather than using something like Figma), but creating the SVGs all by hand seems very unproductive.
Any suggestions on how to optimize this?

English

🚛 🚚 I’m moving to @sam_apostel
At 14 years old I came up with the handle @just_simplySam for my instagram account. The variations on “sam” seemed to all be taken. I just simply wanted name.
It took me 10 years to realise that my full name is unique enough. 🙄
English

@leeerob Really excited for this. Can’t wait to figure out what the req and res params do 🤨
English

@LeaVerou I went from 10 x max to 14 pro max
+ way better battery
+ wide angle lense
- further min focus distance
- worse palm rejection
- more noticable rough edges when dropped
From 13 pro, only the min focus drawback applies
English

@LeaVerou I would think that it depends on if you want to continue the upgrade program after the 14 or not.
The upgrade itself isn’t worth it but if the financials support it, it’s more of a “why not” situation.
English
Sam Apostel รีทวีตแล้ว

Raycast × Vercel Giveaway 🎁
@leeerob and I are giving away 10 Raycast mugs and 10 Vercel water bottles to 20 followers who:
· Follow @raycastapp and @vercel
· RT this tweet
Winners announced on Feb 13

English

Extra context, don’t know if related:
- I use iCloud Private Relay (set to use country and time zone)
- I sometimes use @Tailscale (forgot to check if it’s on when problem start)
- This seems to happen more frequently when in thebAntwerp area.
English

Been having cellular issues, connection stops working while phone indicates it has 4 bars 5G. Only resolves after powering down my phone.
This had been happening since I
- Switched to @heytelecom_nl
- Bought iPhone 14 pro max (@AppleSupport)
English

@jarredsumner @petjato Exactly. How often do you sleep until a specific date? I don’t think I’ll ever use it if this is how it works but that’s fine 👌🏼
I would prefer using it like this:
Bun.sleep(year - new Date());
English

@petjato @just_simplySam It might just be the example. I said “a year” instead of “until date” which is slightly less clear
English

@jarredsumner For some reason I would expect this to sleep for a year.
A date object (to me) represents a span of time since unix epoch. A timeout and interval take ms as span of time. I think Bun.sleep should too.
const year = new Date(1000 * 60 * 60 * 24 * 365);
await Bun.sleep(year)
English









