Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈

3.5K posts

Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈

Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈

@devuxer

UI/UX designer/prototyper/developer in San Diego. Tennis & automobile enthusiast. 🏳‍🌈 him/his. @[email protected]

San Diego, CA Katılım Ocak 2012
257 Takip Edilen141 Takipçiler
Cory House
Cory House@housecor·
Update: My mental model was flawed. The solution is simple: it’s my responsibility to decide what happens when an error occurs. For instance I can catch the error in the action and return the optimistic state along with error metadata. This way the optimistic data isn’t lost.
English
1
0
6
2.1K
Cory House
Cory House@housecor·
React 19’s useOptimistic hook automatically rolls back if an optimistic update fails. What if I want to disable this behavior? I want the data to keep displaying even if the update fails so the user can click retry. I’m surprised this isn’t an option. Am I missing something?
English
3
0
19
6.2K
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
While I'm on the topic of type hovering, has your team ever considered the possibility of showing type names (as it does with interfaces) instead of only definitions? There are times the definitions are just overwhelming (even with ellipsis shortening them somewhat). Thx!
English
0
0
0
12
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
Hey @mattbierner Not sure if this is a TS or VSCode issue, but are you aware of any recent changes to the way type information is displayed when hovering an item? For complex types, I find myself scrolling endlessly to get to the very end, where I finally land on: `} | null`.
English
1
0
0
36
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@TheBodyServe, hard agree that they should not be experimenting with disruptive rules changes during the main draw of a 500 event, but if any other tournaments want to pull a similar stunt, can it please please be a shot clock between first and second serve, and also after a let?
English
0
0
1
7
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@kentcdodds The only one I agree with is trailingComma. In general, I think trailing things affect readability a lot less than embedded things, so I don't mind extra semis or commas at the end, but I do mind unnecessary paens around single-var lamdas.
English
0
0
0
3
Kent C. Dodds ⚡
Kent C. Dodds ⚡@kentcdodds·
I just wrote a blog post justifying this prettier config. If your config is different, read this and let me explain why you're wasting time babysitting parts of your code that don't matter: epicweb.dev/your-code-styl…
Kent C. Dodds ⚡ tweet media
English
55
25
352
82.9K
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@kentcdodds @_dylandover You can certainly measure readability objectively, but you first have to agree on what to measure, which is subjective. Intuitively, though, extra parentheses surrounding a variable name would seem to slightly harm the readability of that variable name.
English
0
0
0
97
Kent C. Dodds ⚡
Kent C. Dodds ⚡@kentcdodds·
@_dylandover Sure, but readability is subjective and a function of familiarity. None of the options is more readable than the other.
English
2
0
0
1.3K
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@TheBodyServe Entertaining but also important episode. TY🙏 Couple comments: - Courier has at least mentioned That Guy's legal situation. Roddick as well, on his podcast. - I could have missed it, but NBC deserves lambasting for not showing the trophy ceremony.
English
0
0
1
8
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@Served_Podcast Love this pod so much except for one thing: the SwingVision segment at the end is always someone doing a trick shot. I want to see Andy break down a 3.5 player’s FH (or BH, serve, volley, overhead, etc.) and suggest realistic improvements. I bet I’m not alone.
English
0
0
0
11
Brad Gilbert
Brad Gilbert@bgtennisnation·
Need to vent just had a 2+ hr dinner 🥘 at my hotel 🏨 that was beyond shocking 😳 1st time eating there for dinner in 14 days, took forever and they served Zoe raw chicken 🍗 then brought back after 45 mins with same silverware 🥄 on table and got everything wrong on my order…..
English
45
3
105
59.8K
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@syntaxfm I would add Ant Design to your list of UI kits. I use it for prototypes, dashboards, & small projects because it has ALL THE THINGS (layout, forms, controls, icons, tables). The basic look and feel is baked in, but it is themeable. Docs are okay. It’s free, unlike MUI.
English
0
0
0
39
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@DanShappir I 100% want Israel to succeed. I just wish I knew what that meant. I know I want Israel to exist and thrive and for the Israeli people to be safe. I just don’t know how that happens. It seems like every option on the table is shit.
English
1
0
1
39
Dan Shappir (host on @JSJabber podcast)
The people calling for an immediate ceasefire in order to prevent suffering for Palestinian civilians are making the best case for Israel to never allow a Palestinian state to exist: if the government of such a state can attack Israel in the most vile way possible, and then hide behind its own citizens in order to avoid reprisal, then Israel cannot allow such a state to exist.
English
3
3
24
2.4K
Dan M 🇺🇦👨‍💻🎾🚘🏳️‍🌈
@DanShappir Listen to you all the time on JS Jabber, and just had to reach out and say you’ve been in my thoughts a lot these past few days. Hoping you and your loved ones stay safe, and Israel emerges stronger when all is said and done. ❤️
English
1
0
1
35
Jon Wertheim
Jon Wertheim@jon_wertheim·
The @usopen owes @CincyTennis a serious marketing and promotion fee… These two matches today do more to kindle interest in the USO than any billboards or digital ad buys….
English
35
67
907
72K