博文

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

Scripting News: Wednesday, November 13, 2024

图片
Wednesday, November 13, 2024 A 27-minute post-election ramble podcast . # I am working on a text editor for WordPress using MediumEditor, but I save the text in Markdown and when I reload the Markdown text I regenerate the HTML. I think the social web should exchange Markdown as the canonical form of web text. It has the right set of features, it's Just Enough HTML . # There isn't a single social web network that I like pouring my creativity into. I feel like I'm being used not appreciated. There's nothing in it for me. I had a similar feeling for Twitter, but they were the only one. Now there are a bunch, and I honestly don't care about any of them, esp now that the election is over. I think this whole idea of feeding the greed of a bunch of tech people is over. If there's a good place to gather, with a small number of people I relate to as people, then I'm up for that, but none of these services meet that need. # ChatGPT can't r...

🔥 (#191) Nested ref properties, mock API routes, and more

图片
Read this on my blog Hey all! Yesterday I gave my talk on Nuxt server components at Nuxt Nation (which is currently still happening if you want to check it out ). Next week I'll be giving a talk on Nuxt layers at VueConf Toronto. Other than that, I hope you're having a great week! Enjoy the tips, new podcast episode, and articles. — Michael 🔥 Smooth dragging (and other mouse movements) If you ever need to implement dragging or to move something along with the mouse, here's how you do it: Always throttle your mouse events using requestAnimationFrame . Lodash's throttle method with no wait parameter will do this. If you don't throttle, your event will fire faster than the screen can even refresh, and you'll waste CPU cycles and the smoothness of the movement. Don't use absolute values of the mouse position. Instead, you should check how far the mouse has moved between frames. This is a more reliable and smoother method. If ...