Sam Apostel

613 posts

Sam Apostel banner
Sam Apostel

Sam Apostel

@just_simplySam

react developer

Beigetreten Aralık 2012
282 Folgt33 Follower
Sam Apostel
Sam Apostel@just_simplySam·
@rauchg Wow! Turns out that I have been using your stuff for longer than I thought. Socket.io was my first experience with an external package. But I only stopped using socket.io when I started deploying to vercel. Thanks 🙏🏼
English
0
0
0
10
Guillermo Rauch
Guillermo Rauch@rauchg·
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
32
34
511
95.6K
Sam Apostel
Sam Apostel@just_simplySam·
@housecor 9. This is a framework implementation choice. Not a default by react. Right?
English
0
0
0
19
Cory House
Cory House@housecor·
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
28
7
119
18K
Cory House
Cory House@housecor·
Question 5: You can use hooks like useEffect and useState in both server and client components.
English
1
1
9
16.6K
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
0
84
Cory House
Cory House@housecor·
Some people asked what serializable means. A “serializable” item can be represented via JSON, so it can be sent over the wire and reconstructed on the client. Non-serializable: - Functions - DOM elements - Date objects - Map and Set data structures
English
3
0
42
7.7K
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
0
37
Tailosive Tech
Tailosive Tech@TailosiveTech·
Apple removed the Rear camera from the iPod Touch to reduce cost back in the day. If Apple were to enter the $200 smartphone space, what compromises would YOU make to cut the price down further?
Tailosive Tech tweet media
English
108
24
1.1K
262.8K
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
1
19
Jason Lengstorf
Jason Lengstorf@jlengstorf·
a question for all the CSS devs out here on a Saturday: when was the last time you used a float? follow-up question: what was the use case?
English
66
1
53
40.7K
Tomas Jansson
Tomas Jansson@TomasJansson·
@shadcn @radix_ui I’ve been looking around in @radix_ui and wonder if there is a multi slider where you can slide from both directions. Does it exists but I can’t find it?
English
2
0
1
1.4K
Sam Apostel
Sam Apostel@just_simplySam·
@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
5
0
0
2.7K
Lea Verou, PhD
Lea Verou, PhD@LeaVerou·
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
144
103
810
479.8K
Guillermo Rauch
Guillermo Rauch@rauchg·
*opens upcoming blog post to review* Wow, @vercel​ians are really excited about this May 4 ship 😄
Guillermo Rauch tweet media
English
7
2
142
31.7K
Haz
Haz@diegohaz·
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?
Haz tweet media
English
9
1
22
8K
Sam Apostel
Sam Apostel@just_simplySam·
🚛 🚚 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
1
0
1
207
Sam Apostel
Sam Apostel@just_simplySam·
@leeerob Really excited for this. Can’t wait to figure out what the req and res params do 🤨
English
0
0
1
59
Lee Robinson
Lee Robinson@leerob·
Vercel Cron Jobs. Next week.
Lee Robinson tweet media
English
242
441
5K
982K
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
0
95
Sam Apostel
Sam Apostel@just_simplySam·
@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
1
0
0
356
Lea Verou, PhD
Lea Verou, PhD@LeaVerou·
Is it worth upgrading from iPhone 13 Pro to iPhone 14 Pro? I'm on the iPhone upgrade program, so I can get a new one for "free" by sending back my current phone, or I can continue paying for another 11 months and actually own my current phone. Thoughts?
English
10
0
3
15.8K
Sam Apostel
Sam Apostel@just_simplySam·
📦 Package naming matters The ⚛️ gantt libraries I tried were specialized for specific use cases, never the one I need right now, with stuff you can disable. I’m looking for one I can extend with my own little things. Instead I might have to build one for my specific use case.
English
0
0
0
229
Sam Apostel retweetet
Pedro Duarte
Pedro Duarte@peduarte·
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
Pedro Duarte tweet media
English
76
983
647
191.8K
Sam Apostel
Sam Apostel@just_simplySam·
8 more days until container size queries have landed in all major browsers. Any component libraries already using them? Can I lock myself in a room for a month to replace all of the 'alternative' solutions I came up with over the years?
English
0
0
0
39
Sam Apostel
Sam Apostel@just_simplySam·
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
0
0
0
103
Sam Apostel
Sam Apostel@just_simplySam·
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
3
0
1
223
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
0
51
Jarred Sumner
Jarred Sumner@jarredsumner·
@petjato @just_simplySam It might just be the example. I said “a year” instead of “until date” which is slightly less clear
English
1
0
0
79
Jarred Sumner
Jarred Sumner@jarredsumner·
The next version of Bun gets Bun.sleep(milliseconds) like setTimeout, except it returns a Promise
Jarred Sumner tweet media
English
27
17
616
102.7K
Sam Apostel
Sam Apostel@just_simplySam·
@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
0
0
0
219
Jarred Sumner
Jarred Sumner@jarredsumner·
you can also pass it a Date
Jarred Sumner tweet media
English
3
2
69
8.5K