Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer) profile picture

UI/UX designer/prototyper/developer in San Diego. Tennis & automobile enthusiast. ๐Ÿณโ€๐ŸŒˆ him/his. @devuxer@mastodon.social

San Diego, CA
Joined January 2012
Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)Photo by Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ (@devuxer)
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Oh boy, I sure hope this one gets added to JavaScript. Would cut down on a lot of my current .reduce() usage. Currently stage 2, Array grouping would make it easy to group items of an array. Works with Maps too, so you could use any type as a key.
48
165
8
1,428
199,344
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Replying to @chribjel
Do you feel safe with Vercel Postgres which is in beta ?
1
1
1
1,116
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Passwords made my mother cry again. It's unreasonable to expect people to remember varying usernames and passwords for as many as 100 sites, most of which are infrequently used. Password managers can help, but they often fail to catch reset flows. In cross-device scenarios, you're often forced to use multiple password managers due to how systems operate. Typically, passwords are about 10 characters long. If these passwords are unique and random, we're asking people to remember an ever-changing set of characters, maybe as many as 1000, across numerous sites. To rely on password managers, we're expecting regular users to understand how these systems work and to manually verify they are living up to expectations. This reliance on complex password systems isolates older people from technology, the communities they engage with, and the supporting infrastructure. We need the web to standardize on WebAuthN and Passkeys. They promise to greatly simplify the experience for users. By adopting these technologies, we can make the web more user-friendly and inclusive, reducing the burden of password management and increasing accessibility for all.
17
10
3
107
21,817
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Today the TypeScript team is releasing a new VS Code extension named Deopt Explorer! This tool can help find polymorphism and deoptimizations in your code, and it's already helped us speed up TypeScript itself. Check out what we've built! devblogs.microsoft.com/typesโ€ฆ
26
606
29
2,920
424,794
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Problem: JavaScript's sort method mutates the existing array. Solution: The new toSorted method. It returns a new array, and doesn't mutate the existing array.
11
72
7
619
101,487
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Node 20 allows you to compile your app into a single executable along with the entire Node.js core so you can run your apps on systems where node isn't installed, or your don't trust the system version.
148
725
303
5,624
1,759,772
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
I just mailed my passport to get it renewed. A couple things that are annoying: 1. You have to mail in your existing passport!? Why? 2. Even expedited, it says it'll take a minimum of 7 *weeks* to come back, during which time you can't travel internationally. Why so long?! What about people who travel every couple weeks!? 3. Some countries won't allow you to enter if your passport is within 6 months of expiring. What good is an expiration date then?! Ugh. I hope it comes back before my next trip! ๐Ÿ˜ตโ€๐Ÿ’ซ
56
2
138
102,991
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Easy to forget, but the debate about signals is the same one we had about 2-way data binding vs unidirectional data flow 10 years ago. Signals are mutable state! Theyโ€™re bindings with a new name. The simplicity of UI as a function of state is lost when updates flow unpredictably.
34
98
25
954
312,114
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
TypeScript tip: Use โ€œneverโ€ to assure every case in a switch is handled. With this example, if a case is missing, TypeScript fails to compile. ๐Ÿ‘ #typescript
45
141
6
1,676
306,505
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
If you are creating configuration objects in TS and not using the `satisfies` operator, you are doing it wrong
34
341
21
2,329
196,680
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
what do you think about the implicit return console log? const Box = ({ props }) => console.log(props) || <div>hi</div>
This Post is from an account that no longer exists. Learn more
1
1
5
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
What's the best spot to host a tiny Postgres instance without entering your credit card details?
97
10
4
277
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Replying to @JacobMGEvans
The vast majority of React apps use React Router, but many haven't yet upgraded to the latest version that includes loaders and actions. Show how React Query and React Router 6.4 can be used together to make a fantastically simple app: tkdodo.eu/blog/react-query-mโ€ฆ
1
6
36
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
This is a superb visualization of European history (1500-2022). nitter.cf/WallStreetSilv/status/โ€ฆ
838
19,969
2,203
81,113
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Replying to @acdlite
Oh so it's ref-log and not re-flog ๐Ÿ˜ฎ. TIL. I always wondered what a flog is and why we are redoing it ๐Ÿ˜…๐Ÿ™ˆ. rebase, rename, revert, reset, reflog ๐Ÿคทโ€โ™‚๏ธ
1
2
20
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Replying to @devuxer
A monad is just flatMap, and promises are just asynchronous flatMap. You're right about composition, because flatMap is just function composition for things that return stuff like promises, arrays, etc. instead of just the raw value as function output. #ExplainMonadsInATweet
1
1
1
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
๐ŸคReact Query and React Router (the remixed one, v6.4) - how do they integrate? Should I use one or both for data fetching? I went through the tutorial and integrated RQ into it. Read about it here: tkdodo.eu/blog/react-query-mโ€ฆ
13
53
1
352
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
Replying to @kvlly
FWIW, @flydotio is basically a new and improved (and more capable) heroku. You and your clients should feel pretty at home on Fly if you've been used to Heroku.
10
9
1
202
Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ retweeted
A โ€œrazorโ€ is a rule of thumb that simplifies decision making. The most powerful razors Iโ€™ve found:
1,218
17,192
2,106
83,148