博文

目前显示的是 六月 12, 2024的博文

Scripting News: Wednesday, June 12, 2024

Wednesday, June 12, 2024 Is this the user experience writers want from WordPress? If I were designing it, I would start from scratch, build an easy writing tool for writers to focus on writing, make the design process accessible if they want to work in that mode, but keep it out of their way because most writing has nothing to do with design. # A simple example where ChatGPT saves programmer time. MySQL has awful error messages. Rather than try to figure out what they mean, I paste the message into ChatGPT and say nothing. It tells me what the error was and even fixes it for me. I copy the result, paste it into MySQL and I'm back on the road. One can imagine where they build that into the MySQL app and I converse with it instead of the app with the awful error messages. # I'm happy to host sidebar images on Scripting News that showcase the creative possibilities of ChatGPT-developed art. # Linkblog items for the day. Let's Talk About T

🔥 (#169) The Options API should be deprecated...?

图片
Hey all! I've got two great new articles for you this week, and some news about the Deja Vue podcast. Should the Options API be deprecated? First, one on the Options API vs the Composition API. Last week on Twitter / X there was a lot of discussion going around on whether or not the Options API should be sunset in Vue 4. There were a lot of opinions, of course. So I spent some time (okay, a lot of time) researching and writing my own take on the issue. It's a long one, but I think it needs to be in order to tackle this topic properly. Composition API vs. Options API This weird thing in useAsyncData Second, I noticed that useAsyncData in Nuxt can be used both asynchronously and synchronously. Weird, right? So I had to dig into it to figure out how that actually works, and how we can use that in our own code. I wrote all about it on the Mastering Nuxt blog: Async and Sync? How useAsyncData does it all Q+A wit