博文

Scripting News: Friday, April 11, 2025

图片
Friday, April 11, 2025 The difference between the 2008 crash and now is that we had a functioning government in 2008. # When young people come out of university in a technical subject, they think they know more than people already doing the jobs. They quickly learn that in school they were doing "student projects" which are not the real thing. Ooops , maybe we didn't know as much as we thought. # Why we all have to be working together on creating a modern easily distributed communication system that's truly decentralized. The key is to only implement features that have super-simple implementations, so it will be easy to product new versions quickly in all environments. Which means starting with formats and protocols that are already widely supported. # This morning ChatGPT told me it knows more about me, and will learn better. Promises promises. I would like to begin with teaching it my coding conventions. Will make it much easier for me to work...

Scripting News: Thursday, April 10, 2025

图片
Thursday, April 10, 2025 Two issues in Bluesky outbound RSS feeds. # As long as the Chinese company BYD is making such interesting and inexpensive EVs , and Tesla is a shithole company , if I were in charge, I'd give BYD a negative tariff to encourage them to flood the US market with nice cheap EVs so we can get rid of the shitstain Tesla once and for all. I'd give them an even better price if they agreed to recycle Teslas as trade-ins so we don't have to feel ecologically irresponsible. And yes, dear MAGAs, I am woke. You all can go back to sleep now. Zzzz. # If I were a sassy Democratic Party leader I'd cop to being woke. "Why yes I am woke. Aren't you?" The Repubs have never explained why it's bad to be awake. Dems have to learn how to engage to win. Another one -- "read, fire, aim" is how Trump leads, just look at the tariffs, and it's been a huge disaster for hard-working American wage-earners of all genera...

Scripting News: Wednesday, April 9, 2025

Wednesday, April 9, 2025 The Cootie Zone # All Trump is doing is making the US the cootie zone. # We won't make anything here and we won't buy anything. # We'll have nice 2025 computers, phones, cars, medicine, lumber, energy, but all the shit we import will break and be used up and we won't be able to replace it. # The rest of the world will wonder why they cared so much about the US, as the world gets along just fine without us. # And that $1 trillion military budget, forget it -- not only did they fire everyone at the IRS, but no one is making any money so there aren't actually any taxes to pay, and there sure as hell aren't any tariffs because no one can afford to buy anything produced anywhere, in the US or the rest of the world. # We become a very sad, poor, sick, uneducated country, but -- Trump will be on Mount Rushmore and his face will be on the $20 bill, which no one sees because no one has $20. # A...

🔥 (#212) Testing in Nuxt, making tests easier to write, and more

图片
Read this on my blog Hey all! Not a whole lot to share this week. I've been enjoying the early spring here with my family as it warms up. A new podcast, some tips, and more as usual. — Michael 🔥 Easy Unit Testing in Nuxt For your unit tests, @nuxt/test-utils lets you opt-in to a Nuxt environment by adding .nuxt. to the filename of your test: ./tests/MyComponent.nuxt.test.ts You can also add a special comment at the top of the file: @ vitest - environment nuxt Or enable the environment for all Vitest tests in your config: // vitest.config.ts import { defineVitestConfig } from '@nuxt/test-utils/config' ; export default defineVitestConfig ({ test : { environment : 'nuxt' }, }; 🔥 Make Testing Easy Testing is important to do, but it can be hard to do. In my experience, good architecture lends itself to easy-to-write tests (or at least, easier -to-write). The inverse is also t...

Scripting News: Tuesday, April 8, 2025

Tuesday, April 8, 2025 Today's song: Come on Eileen . # The big vision behind WordLand # I believe that eventually WordPress will be the hub for writers the way the web itself became the the hub for apps. Initially, the web wasn't the best place to host apps, the Mac had a much more developed set of meaningful features for app devs, and we already knew the Mac APIs where the web was strange and incomplete. # Yet most of the energy in AppLand quickly shifted to the web because of three advantages it had: # Anyone could publish for it, there was no platform vendor. # The networking model was open and simple, where the Mac's was hidden behind incomplete and poorly written docs. # The Mac's networking only worked on the Mac at a time when Windows was becoming dominant, and the web offered simplicity that neither platform could match. # The web made writing network apps a joy, where the Mac made it a slog. No matter...

Scripting News: Monday, April 7, 2025

图片
Monday, April 7, 2025 There's no reason RSS and social media have to be separate worlds. RSS is the easiest and fastest way to connect systems. When I see people endorse RSS over social sites I think we took a wrong turn somewhere because all these systems should be connected on the open web and RSS is the perfect way to do that. # Rachel Maddow's show these days often begins with a hard-to-watch over-the-top endorsement of Bluesky. She shouldn't be doing that. It's a private company and someday she may criticize them as strongly as she did Facebook. I'd love to hear her explain exactly what's the difference between Bluesky and Facebook. A lot less than you might think. # Hillary Clinton makes a very important point. "Republicans in Congress can put a stop to this at any time." By this, she means the crashing US economy. And even if you believe they'll "never do it" -- it's still the right thing to repeat this ove...

Weekly Vue News #192 - Validate Vue Router Query Strings with Zod

图片
Weekly Vue News #192 Validate Vue Router Query Strings with Zod View online Hi 👋 CodeSnap v3 is making great progress — I might be able to launch it sooner than expected! The new UI, built with Nuxt UI Pro, is looking amazing. Stay tuned! Enjoy this issue and have a lovely week ☀️ ...