Loading video...

Video Failed to Load

Go Home

Here's why the Records and Tuples proposal died, and how Composites might solve it. I did my homework for this one - I interviewed Ashley Claymore, the Composites TC39 champion. And I'm really proud of how it turned out. I'd love any feedback you can give me, and I'll...

21,342 views • 1 year ago •via X (Twitter)

11 Comments

Artem Zakharchenko's profile picture
Artem Zakharchenko1 year ago

@acutmore What we really need is "====" to compare otherwise incomparable objects by value 😅

Josh Durham🔋 Influencer Marketing's profile picture
Josh Durham🔋 Influencer Marketing1 year ago

Last Quarter for @hexclad my team generated 74 Million Organic impressions, the best part? This is 7 X what we did last year, and it was all through free product. Here's some thought on how we accomplished this. #1 Compounding Impressions Compounding impressions is the 8th wonder of the world. We have been doing influencer outreach for nearly 3 years now. We started in chef creators as the target demo and only expanded outward from there. The same creators who posted 3 years ago are posting now. It's a beautiful thing when you have a great product. #2 Inbound 3 years ago Hexclad didn't have the reputation it does now. As Hexclad's credibility has grown, so has the amount of creators who want to work with them. Our optin rate on outreach is SUPER high, as well as the amount of creators applying on their own. #3 Product Use Cooking is hands down the best category to run influencer marketing. The pans, aprons, hexmills etc are all things that can easily be included in every post for creators posting Recipes. It's not uncommon for the average creator seeded to post 7+ times. This is just a better set than sending another face moisturizer.

const name = 'David';'s profile picture
const name = 'David';1 year ago

@acutmore This is a great breakdown of the whole situation

Justin Chase's profile picture
Justin Chase1 year ago

I suppose I do a double map in those cases Map<string, Map<string, unknown>>, but that gets more unwieldy as you have a larger composite key. Deno KV seems to make you build an array of primitives which I think they end up encoding in native code but that seems to solve it the problem of the unordered keys you would have on objects.

Artem Zakharchenko's profile picture
Artem Zakharchenko1 year ago

Wait, but if composites aren't compared by value, you wouldn't be able to use them as map keys at the current stage, right? I'm also curious if this isn't stemming mostly out of the need to grab *the same * object reference. Is that truly such a big problem in practice? I've used WeakMap plenty of time where I would associate a value with an object (e.g. a Request instance). You associate by reference, not value, so it doesn't suffer from property re-ordering issue (I can update the `request` I used as a key and it will still work). WeakMap also automatically nukes references if the key gets garbage-collected, which is nice (and something your regular Map doesn't do). The only "downside" of WeakMap is that you have to work a bit differently with it than you do with a map.

Bradley Farias's profile picture
Bradley Farias1 year ago

@acutmore I think eventually it will look more like a between state of the current proposal and

Engid's profile picture
Engid1 year ago

@acutmore Why'd they choose to call it "composites"?

Matt Pocock's profile picture
Matt Pocock1 year ago

@acutmore What would you call it?

Nicholas Shanks's profile picture
Nicholas Shanks1 year ago

@acutmore He might be biased though.

Matt Pocock's profile picture
Matt Pocock1 year ago

@acutmore Lol what

Nicolas Ramirez's profile picture
Nicolas Ramirez1 year ago

@acutmore Hey Matt, love that you are back doing more TS content!

Related Videos