博文

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

Scripting News: Wednesday, April 16, 2025

Wednesday, April 16, 2025 WordLand is starting to flow really nicely, and I'm doing more writing there. I have to do this if it's going to be as good a product as it possibly can. The Timeline seems really solid btw, thinking about next steps. Lots of fun products coming soon! # Join a Parade Today . When people talk about What You Can Do on podcasts or on TV, they say lame things that don't work that well. One thing for sure is that when Bernie and Alexandria do a rally in your area, you can go and enjoy the energy. This is a good thing because it gives the TV cameras something to focus on. But here's what I think the best thing to do is. Don't start something, join something. Because two is way more powerful than one, and three is way more powerful than two. When people work together on something good, more people doing it is usually even better. # I want to develop a WordPress theme by iterating as you would when developing an app. I outline...

🔥 (#213) Recursive slots, lonely children, and extracting conditional patterns

图片
Read this on my blog Hey! This week you can get the Vue Tips Collection hardcover for only $47. That includes free shipping to the US, Canada, and the EU. It's 220 pages, full color, with 118 tips across 7 themed chapters. Syntax, reactivity, patterns, everything you could want. Go here to grab your copy. Of course, I've always got tips for you (and more!) in this email. Have a great week! — Michael 🔥 Recursive slots I decided to see if I could make a v-for component using only the template. Along the way, I discovered how to use slots recursively, too. This is what the component looks like: < !-- VFor.vue --> < template > < div > < !-- Render the first item --> < !-- If we have more items, continue! But leave off the item we just rendered --> < v-for v-if = "list.length > 1" :list = "list.slice(1)" /> ...