博文

目前显示的是 八月 27, 2025的博文

Scripting News: Wednesday, August 27, 2025

图片
Wednesday, August 27, 2025 news.scripting.com continues to grow. There must be some word of mouth. Or perhaps people are refreshing it more often. I have no analytics except for a hit counter. Maybe I should do a little work on the site. Let me know if you have any feature requests. # Notes added to the What Is the Web doc. # The last few days we've been exploring the ideas behind the web, to decide what, if anything that we're doing today is either on the web or of the web. On the web seemed relatively easy. But of the web is a bit more elusive. Until Ken Smith found this quote of Ted Nelson in the original 1989 proposal by Tim Berners-Lee for what would become the web. "Human-readable information linked together in an unconstrained way." I like this, because it, like the definition I came up with for weblog , talks about the activity as opposed to the technology. Human-readable is essential. And most essential is "unconstraine...

🔥 (232) Using useRequestHeader, Reusing Code, and Global Properties

图片
Read this on my blog Hey! Tomorrow is the last day of the Advanced Reactivity course launch and the 35% off discount. If you were hoping to pick it up, don't forget to check it out! Get Advanced Reactivity here Otherwise, I hope you enjoy the tips and articles I've got for you in this newsletter. Have a great week, — Michael 🔥 Using useRequestHeader Grabbing a single header from the request couldn't be easier in Nuxt: const contentType = useRequestHeader ( 'content-type' ); This is super handy in middleware and server routes for checking authentication or any number of things. If you're in the browser though, it will return undefined . This is an abstraction of useRequestHeaders , since there are a lot of times where you need just one header. See the docs for more info. 🔥 Reusing Code and Knowledge Don't Repeat Yourself — an acronym that many know but many don't correctly understa...