博文

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

Scripting News: Wednesday, July 10, 2024

图片
Wednesday, July 10, 2024 If we were organized we could handle anything. The only reason we're panicking about Biden's capability is that our news flow is owned by largely invisible media moguls. The only way out of this mess is to route around them. # I agree with Manton . The way the twitter-alikes do discourse is not the only possible way, and imho, and, as I've said before (in 2007!), most of what passes for discourse on twitter is actually spam, and that goes for Masto, Threads, Bluesky and Facebook (aka FriendFeed). # Nancy Pelosi # I kind of like what Nancy Pelosi is doing. # She's got a unique role to play, as a master of Washington and national politics. # She stepped down as Democratic leader in the House to let a new generation lead, yet maintained here position as sort of overseeing and giving her blessings to how they go forward. # She also helped organize the Jan 6 committee, which in the end was the only real off

🔥 (#173) Make your components easier to think about

图片
Better late than never, right? I've got an article for you that I recently published: Make Your Components Easier to Think About . And as always, your tips. — Michael 🔥 Dynamic Directives Vue lets us use dynamic arguments with directives: < template > < WowSoDynamic v-bind:[somePropName] = "somePropValue" v-on:[customEvent] = "handleClick" /> </ template > When the argument evaluates to null , the attribute or event is removed. This makes a really convenient way of making them conditional: <!-- LinkComponent.vue --> < template > < a :href = "url" v-bind:[targetAttr] = "'_blank'" > < slot / > </ a > </ template > < script setup > import { computed } from 'vue' ; const { newTab } = defineProps ({ newTab : { type : Boolean , default : false ,