博文

目前显示的是 十一月 20, 2024的博文

Scripting News: Wednesday, November 20, 2024

Wednesday, November 20, 2024 On Bluesky, inbound RSS is becoming a thing . # It's noteworthy that we haven't seen many outages as Bluesky scales. On Twitter they had fail whales for years. # What matters with social networks is what you can get done there, not so much the features of the network. Bluesky has the same features today it had a month ago. The difference is we had an election in the US, I guess that was the catalyst. The presence of Elon Musk so close to Trump says there is a need for a Musk-free place. I've kept my account on Twitter. I started there in 2006, and I love the web more than I feel it would do any good to erase my presence there. It's pretty much against my religion to deliberately erase bits of the web. And whatever you think of Twitter, it is most definitely part of the web. # Basically, if you have to lock your users in, your product must suck. # Linkblog items for the day. Why doesn't President B...

🔥 (#192) Testing components in Nuxt, extract conditional patterns, and more

图片
Read this on my blog Hey! Yesterday I gave my talk on Nuxt Layers at VueConf Toronto, and I think it went really well — maybe one of my best talks yet. Alex and I are also doing some recording at the conference, so you'll see that in an upcoming episode soon. I've also got a quick Black Friday reminder: On Monday, November 25, you'll get a single email about my Black Friday sale. That's it. As always, I've got some great tips and articles for you. — Michael 🔥 Restrict a prop to a list of types With the Composition API we get fantastic TypeScript support, so this is quite straightforward: defineProps <{ src : string ; style : 'square' | 'rounded' ; }>(); Doing this in the Options API is more complicated, and not as powerful as TypeScript. Using the validator option in a prop definition you can restrict a prop to a specific set of values: export default { name : ...