博文

目前显示的是 四月 22, 2025的博文

Scripting News: Tuesday, April 22, 2025

图片
Tuesday, April 22, 2025 It's crazy to even think of moving Chrome from Google to OpenAI . The web needs to not be owned by anyone, esp not owned by the tech industry. What Google tried to do to the web is obscene. I love ChatGPT, but let's keep Chrome out of their owner's greedy little hands. Set it up so it stands alone. # If you're a young person contemplating a career in tech, great! It's fun, and you can help people doing this. But please don't listen to the VCs and entrepreneurs who say it's all about changing the world. Instead think of it this way -- you're going to create tools for people who may change the world, in collaboration with lots of other people. No one person is that smart and experienced that they know what's best for the world. The stories you heard about great inventors probably aren't true. And the ones who actually changed the world, may not have changed it for the better. Look at what happened with Twitt...

My two favourite tricks in Vue (only 26 hardcovers left!)

图片
Hey there, I've got 26 hardcover copies of the Vue Tips Collection left, and they're going fast. If you're still not sure, the best way to get a feel for the book is to read a few pages. So, I've got two tips for you today that I pulled straight from the book. Tip #1 – Destructure inside v-for Did you know that you can destructure in a v-for ? < li v-for = "{ name, id } in users" :key = "id" > < / li > It's more widely known that you can grab the index out of the v-for by using a tuple like this: < li v-for = "(movie, index) in [ 'Lion King', 'Frozen', 'The Princess Bride' ]" > - < / li > When using an object you can also grab the key: < li v-for = "(value, key) in { name: 'Lion King', released: 2019, director: 'Jon Favreau', }" > : < / li > It'...