博文

目前显示的是 四月 23, 2025的博文

Scripting News: Wednesday, April 23, 2025

图片
Wednesday, April 23, 2025 Yesterday I wrote a piece that summed up Twitter as an entrepreneurial project. "It would have been better if the founders had made less money, and opened the door for lots of competition right from the start. That's the philosophy of the web. Instead they captured the web, amputated all its good features, and locked it in the trunk and then cut off its air supply. That was inevitable given the path they went down. Yes they changed the world, and in turn are creating a lot of misery." If anyone writes the history of tech in Silicon Valley in the early part of the 21st century, I hope they focus on the damage done, not just the money made. Don't glorify the fortune, it's our freedom that's paid for it. And the amazing thing people will discover if they look closely is that the open technology cost very little to develop, so you don't need the backing of VCs to create open systems, you just have to be right at the ri...

🔥 (#214) Component Metadata, Smooth Dragging, and Conditionally Rendering Slots

图片
Read this on my blog Hey! I've only got 17 hardcovers of Vue Tips Collection left. So this is your last chance to grab one if you wanted one! If you're interested, go here to buy and learn more: Vue Tips Collection But if you just want your tips in this newsletter, you can keep reading! — Michael 🔥 Component Metadata Not every bit of info you add to a component is state. For example, sometimes, you need to add metadata that gives other components more information. For example, if you're building a bunch of different widgets for an analytics dashboard like Google Analytics or Stripe. If you want the layout to know how many columns each widget should take up, you can add that directly on the component as metadata: < script setup > defineOptions ({ columns : 3 , }); < / script > Or if you're using the Options API: export default { name : 'LiveUsersWidget' , // Just add it as ...