I really like JavaScript import attributes as a way to invoke build magic.
ALT // I never liked this pattern.
// I might not want all css files to import the same way.
// It isn't clear that build magic is going on here.
import cssModule from './styles.css';
// This is a little better, as the same file can be imported in different ways.
// But it still isn't clear that build magic is happening - the module ID is valid.
import cssModule from './styles.css?css-module';
// I tend to use this pattern.
// It's clear that something non-standard needs to happen to load this module.
import cssModule from 'css-module:./styles.css';
// But I'm looking forward to using this instead:
import cssModule from './styles.css' with { type: 'rollup-css-module' };
Wow, JavaScript's new array.toSpliced() makes it super easy to move an element to a different location in an array with the others elements filling the vacant positions.
One feature I've always missed from all the databases I've used so far, is immutable columns.
Would be great to be able to specify that a field can only be set during creation but not after.
Does this exist in any main stream database?
Welcome to Vike's new company sponsor: bluefin.one.
I like such down-to-earth businesses and I'm glad Vike is providing them an architecture that is both rock-solid and flexible.
@chrisvanderloo Thank you - this makes a big difference 💚
I'm not getting the recent hype about Bun tbh.
Yes, it seems like a cool project and the supposed speed is impressive. But wouldn't you rather use C, Go or Rust if performance was your main concern? And besides speed, what does bun do that Node or Deno don't do? #javascript
This video explains it a bit better.
I think the fact that they're a NodeJS drop-in replacement that simplifies tooling and reduces CJS/ESM pain sounds good.
They should lead with that more. To me that's a much stronger argument for using it than "Bun is fast"
✨ Just published the keynote presentation from Tailwind Connect!
I shared some plans for the future of the framework, @samselikoff showed off some great modern CSS demos, and @steveschoger imparted his design wisdom.
Watch it here or on YouTube 🎬
youtube.com/watch?v=CLkxRnRQ…
Great to see the navigation API land in the HTML spec html.spec.whatwg.org/multipa… with positive feedback from Mozilla. It's already shipped in Chrome, and it's so nice to use compared to the history API developer.chrome.com/docs/we…
I just heard the best phrase describing my concerns about AI, from John Oliver of @LastWeekTonight .
"The problem with AI isn't that it's smart. It's that it's stupid in ways we can't always predict."