博文

目前显示的是 七月 24, 2024的博文

Scripting News: Wednesday, July 24, 2024

图片
Wednesday, July 24, 2024 Is Reddit now only available on Google search? # Fantastic speech by President Biden. It's good we'll have both a president and a campaign and that they'll be separate thing. I look forward to reading it slowly. And he put a cap on the awful communication of the last month, he took control of the story from the snobs and shit throwers in the press. # How Harry McCracken discovered that ChatGPT is a deeply and broadly knowledgable, infinitely patient, always available, inexpensive, programming partner. I've been using it that way for a year, and it has enabled me to take on much more ambitious and complete projects. It could evolve into something much more powerful, but where it is now is already amazing. The criticisms for ChatGPT have mostly missed the point of what it's useful for. # Linkblog items for the day. NBA enters deal with Amazon, not accepting Warner Bros. Discovery's offer. apnews.com

🔥 (#175) Reactivity and Callbacks

图片
Hey all, I hope you're doing well! This week I'm enjoying some summer vacation. But I do have some tips for you, as always. Also, don't forget that Nuxt Tips Collection is coming soon, on August 5th! You can sign up here for a special launch day discount if you're interested. I've already been getting some great feedback from my beta testers, and Alex Lichter (part of the Nuxt team) is doing a technical review of all the tips. Enjoy the tips, and enjoy your week! — Michael 🔥 Reactivity and Callbacks Callback is a bit of a dirty word in Vue, but there are great use cases for them. Consider a scenario where a parent component needs to react to changes in its children's state. You can use a reactive object provided by the parent and injected by the children to keep track of changes. Here's an example: // Parent component const sharedState = reactive ({}); provide ( 'sharedState' , sharedState ); // Ch