WEBVTT

1
00:00:00.000 --> 00:00:07.600
Welcome to Sentat, welcome to a brand new episode of the front end happy hour podcast.

2
00:00:07.600 --> 00:00:12.960
Welcome to this week's J.S. Party.

3
00:00:12.960 --> 00:00:19.440
Live from Ship Shape Studios, this is WhiskeyWeb and whatnot, with your hosts Robbie the Wagner

4
00:00:19.440 --> 00:00:23.480
and me, Charles William Carpenter the third.

5
00:00:23.480 --> 00:00:27.600
That's right Charles, we drink whiskey and talk about web development.

6
00:00:27.600 --> 00:00:30.080
I mean, it's all in the name, it's not that deep.

7
00:00:30.080 --> 00:00:34.000
This is WhiskeyWeb and whatnot, do not adjust your set.

8
00:00:36.640 --> 00:00:41.760
Hey, what's up everybody, welcome to WhiskeyWeb and whatnot with your host, Robbie the Wagner

9
00:00:41.760 --> 00:00:44.560
and Adam Thomas Argyle, the nerd.

10
00:00:45.680 --> 00:00:46.720
What's up?

11
00:00:48.720 --> 00:00:50.720
Today we've got, yes,

12
00:00:51.440 --> 00:00:57.360
sorry go ahead and it is Naman Gowell, creator of the only official react styling library

13
00:00:57.360 --> 00:01:05.040
stylics, X-META, OpenAI Dev now, a super conductor of tokens, orchestrator of rulesets,

14
00:01:05.040 --> 00:01:10.800
react to fishy noddle, creator of solenoid, speaker, blogger, type nerd, and C.S. S. Polunker,

15
00:01:10.800 --> 00:01:13.440
welcome to the show Naman, I haven't seen you since Amsterdam.

16
00:01:13.440 --> 00:01:14.240
How are you doing?

17
00:01:14.240 --> 00:01:15.040
I'm doing good.

18
00:01:15.040 --> 00:01:16.880
Thanks Adam, nice to meet you Robbie.

19
00:01:16.880 --> 00:01:18.480
Yeah, that was very kind of.

20
00:01:19.440 --> 00:01:22.000
That was like the best intro I've ever gotten, that's insane.

21
00:01:24.480 --> 00:01:24.880
Love it.

22
00:01:24.880 --> 00:01:25.680
That's what Adam's here for.

23
00:01:26.640 --> 00:01:30.000
I got to spruce you up, because no one likes to write a resume.

24
00:01:30.000 --> 00:01:32.880
I mean, I've been talking about that on other podcasts, writing a resume sucks.

25
00:01:32.880 --> 00:01:35.680
I mean, some people like to bolster themselves, and those are just blood holes.

26
00:01:36.240 --> 00:01:40.080
Anybody that's like, I am this big and I am this cool, you're like, you suck already,

27
00:01:40.080 --> 00:01:42.240
so I'll do it for you, because then it's cool.

28
00:01:42.240 --> 00:01:44.160
Maybe if I post you,

29
00:01:44.720 --> 00:01:46.560
so almost embarrassing, you're good.

30
00:01:48.960 --> 00:01:50.800
You have a lot of cool stuff going on.

31
00:01:50.800 --> 00:01:53.120
You're easy to bolster, so thanks.

32
00:01:53.120 --> 00:01:54.400
You know what else is embarrassing?

33
00:01:55.600 --> 00:01:57.200
The size of my teeny little bottle.

34
00:02:01.760 --> 00:02:03.840
It's true, but at least you have a good scapegoat.

35
00:02:05.040 --> 00:02:06.160
Here's the daddy size.

36
00:02:08.960 --> 00:02:10.720
Out of this sweet Pringles can.

37
00:02:11.440 --> 00:02:12.960
Yeah, you know what I used to do, though?

38
00:02:12.960 --> 00:02:16.560
When I was younger and I like didn't know what real alcohol was,

39
00:02:16.560 --> 00:02:21.440
I used to get hypnotic in like these size bottles and just drink them straight out there.

40
00:02:22.880 --> 00:02:24.240
I thought that was so cool.

41
00:02:24.240 --> 00:02:25.760
I mean, maybe you word it, somebody.

42
00:02:26.880 --> 00:02:27.680
Maybe.

43
00:02:27.680 --> 00:02:31.840
All right, but yes, we have the Glinn Fidditch 12-year scotch

44
00:02:32.560 --> 00:02:33.680
is 80 proof.

45
00:02:33.680 --> 00:02:38.080
It is 12 years old, right in the name, and it is 100% melted barley,

46
00:02:38.080 --> 00:02:39.280
and I can't get mine open.

47
00:02:40.720 --> 00:02:43.200
A little finicky and a little pre-show chatter.

48
00:02:43.200 --> 00:02:46.000
Naman and I were talking about the first time he had this,

49
00:02:46.720 --> 00:02:49.120
and that was a cool story.

50
00:02:49.120 --> 00:02:50.240
There was a breakup involved.

51
00:02:50.240 --> 00:02:52.240
Anyway, yeah, do you want to give us the story again?

52
00:02:52.240 --> 00:02:53.600
It was pretty, pretty sweet.

53
00:02:53.600 --> 00:02:58.160
Yeah, so it was one of my exes, and she sent it to me for my birthday.

54
00:02:58.160 --> 00:03:00.480
It arrived like a few weeks later.

55
00:03:00.480 --> 00:03:02.720
Would you have broken up during that period?

56
00:03:02.720 --> 00:03:08.560
So I had to constantly send it back, but yeah, she didn't want it back.

57
00:03:09.520 --> 00:03:11.040
Constellation prize, that's awesome.

58
00:03:11.040 --> 00:03:13.360
I kept thinking of that song from back in the day,

59
00:03:13.360 --> 00:03:15.600
the hardest part of breaking up is getting back your stuff.

60
00:03:15.600 --> 00:03:16.720
Do you remember that band?

61
00:03:16.720 --> 00:03:18.640
Is it MTV made up band?

62
00:03:18.640 --> 00:03:19.760
I know my calculus.

63
00:03:19.760 --> 00:03:21.360
It says, you plus me equals us.

64
00:03:21.360 --> 00:03:22.800
That was their famous song.

65
00:03:22.800 --> 00:03:24.880
I think I'd have to hear them.

66
00:03:24.880 --> 00:03:25.680
It's not great.

67
00:03:25.680 --> 00:03:28.080
I mean, they were making fun of boy bands at the time,

68
00:03:28.080 --> 00:03:30.640
which I loved because I was very jealous of boy bands.

69
00:03:30.640 --> 00:03:34.080
They had all the ladies in their athletic shirts,

70
00:03:34.080 --> 00:03:37.600
or a wife beaters in their big buckles on their denim,

71
00:03:37.600 --> 00:03:40.160
and then the ladies got crazy, which is all cool again.

72
00:03:41.600 --> 00:03:42.800
Very popular right now, probably.

73
00:03:42.800 --> 00:03:45.920
All right, so before we have a sip, I have a toast.

74
00:03:46.560 --> 00:03:49.520
To JavaScript frameworks, may they rise, may they fall,

75
00:03:49.520 --> 00:03:51.840
and may we forget half their names by next Tuesday.

76
00:03:54.720 --> 00:03:56.480
You still still have a, it'll definitely happen.

77
00:03:57.680 --> 00:03:58.080
Warm.

78
00:03:59.040 --> 00:04:02.320
Getting a really nice warm scent off that nice color.

79
00:04:03.280 --> 00:04:07.040
Yeah, it's a clear-ish brown.

80
00:04:08.160 --> 00:04:11.520
I'm not getting a lot on the scent.

81
00:04:12.160 --> 00:04:13.360
Maybe a little bit of lemon.

82
00:04:13.360 --> 00:04:14.800
I don't know, I've been a little sick,

83
00:04:14.800 --> 00:04:16.800
so I can't really smell as well.

84
00:04:17.440 --> 00:04:18.400
Oh, a little bit of lemon.

85
00:04:19.520 --> 00:04:21.600
Oh, there's citrus to it for sure.

86
00:04:22.560 --> 00:04:22.880
Whoa.

87
00:04:24.080 --> 00:04:24.720
It's good.

88
00:04:24.720 --> 00:04:25.760
Ooh, nice hug.

89
00:04:27.120 --> 00:04:29.760
Feeling it down to the softest, just warming me up.

90
00:04:30.480 --> 00:04:32.160
It's like Christmas inside.

91
00:04:32.160 --> 00:04:35.520
I feel like a complete imposter right now.

92
00:04:36.240 --> 00:04:39.200
It's like, people do this for whiskey too, not just wine.

93
00:04:41.120 --> 00:04:42.320
It's all made up.

94
00:04:42.320 --> 00:04:44.480
Yeah, just pick any descriptor.

95
00:04:44.480 --> 00:04:47.200
I've tried to be super stupid and be like,

96
00:04:47.200 --> 00:04:49.360
oh, it smells like rotisserie chicken or something,

97
00:04:49.360 --> 00:04:51.280
and that people never get that.

98
00:04:51.280 --> 00:04:52.320
But if you're like, oh,

99
00:04:53.120 --> 00:04:55.360
dried apricots or juicy fruit,

100
00:04:55.360 --> 00:04:57.440
or anything that could be in there,

101
00:04:57.440 --> 00:04:59.040
people will be like, oh, you're so right.

102
00:04:59.040 --> 00:05:00.800
That is exactly what's in there.

103
00:05:01.760 --> 00:05:05.120
Yeah, the only two words I've ever used to describe whiskey

104
00:05:05.360 --> 00:05:06.480
is it smooth or not?

105
00:05:06.480 --> 00:05:08.080
Or is it smoky or not?

106
00:05:08.080 --> 00:05:10.240
And I don't really have a capillary past that.

107
00:05:10.800 --> 00:05:12.640
And I would say this is neat,

108
00:05:12.640 --> 00:05:14.800
it's smooth, but not smoky.

109
00:05:14.800 --> 00:05:16.640
Yes, I would agree with that.

110
00:05:16.640 --> 00:05:18.960
A lot of times you get a scotch and you smell it,

111
00:05:18.960 --> 00:05:21.360
and I like to say it smells like you just opened a sharpie.

112
00:05:21.920 --> 00:05:25.440
And I think that's the like, the PD smoky,

113
00:05:25.440 --> 00:05:27.840
like the, you know, super scotchy flavors.

114
00:05:27.840 --> 00:05:29.040
And this doesn't have a lot of that.

115
00:05:29.040 --> 00:05:31.200
I think I read there were more details on here

116
00:05:31.200 --> 00:05:33.280
than I didn't give everyone this, let's see.

117
00:05:33.280 --> 00:05:36.480
It is matured for 12 years in Oloroso,

118
00:05:36.480 --> 00:05:37.920
Sherry and Bourbon cast.

119
00:05:37.920 --> 00:05:41.200
So there's probably some extra like sweetness and stuff

120
00:05:41.200 --> 00:05:43.200
from the Sherry imparted in there.

121
00:05:43.200 --> 00:05:45.840
Yeah, pretty yummy, in my opinion.

122
00:05:45.840 --> 00:05:46.640
Very yummy.

123
00:05:46.640 --> 00:05:48.400
I'm like really getting these fruity notes,

124
00:05:48.400 --> 00:05:50.000
almost like a guava at the end.

125
00:05:50.000 --> 00:05:53.520
Like at the beginning, I don't taste much different than whiskey,

126
00:05:53.520 --> 00:05:56.400
but as it settles and sort of like rests

127
00:05:56.400 --> 00:05:58.240
on different palate parts of my tongue,

128
00:05:58.800 --> 00:06:02.240
definitely get a lot of floral and yeah, guava.

129
00:06:02.240 --> 00:06:04.720
Just keep coming back, but that initial citrus

130
00:06:05.520 --> 00:06:06.880
and definitely smooth.

131
00:06:06.880 --> 00:06:07.680
Yum.

132
00:06:07.680 --> 00:06:08.320
Yeah, for sure.

133
00:06:09.040 --> 00:06:13.760
So on this show, we have a very complex rating system

134
00:06:13.760 --> 00:06:16.000
from zero to eight tentacles.

135
00:06:16.000 --> 00:06:19.120
Zero is like the worst wouldn't give this to your enemies.

136
00:06:19.120 --> 00:06:20.240
Eight is the best.

137
00:06:20.240 --> 00:06:23.040
And four is kind of middle of the road.

138
00:06:23.040 --> 00:06:24.320
I guess there's technically nine.

139
00:06:24.320 --> 00:06:25.840
So it's maybe there's no middle.

140
00:06:25.840 --> 00:06:27.440
Four and a half is middle, I guess.

141
00:06:27.440 --> 00:06:28.640
Yeah, pretty simple.

142
00:06:28.640 --> 00:06:30.400
What do you think I'm going to go first?

143
00:06:30.400 --> 00:06:31.280
I will.

144
00:06:31.280 --> 00:06:31.920
Delicious.

145
00:06:32.960 --> 00:06:33.440
Smooth.

146
00:06:34.400 --> 00:06:35.600
The lasting flavor.

147
00:06:35.600 --> 00:06:36.240
Yummy.

148
00:06:36.240 --> 00:06:36.960
12 years.

149
00:06:36.960 --> 00:06:38.080
Got to respect that.

150
00:06:38.080 --> 00:06:38.960
Mm.

151
00:06:38.960 --> 00:06:41.200
I'm going to go pretty high rated on this one.

152
00:06:41.200 --> 00:06:43.520
I'm thinking like a 7.2.

153
00:06:45.920 --> 00:06:46.880
Let's forget.

154
00:06:46.880 --> 00:06:47.280
Thank you.

155
00:06:48.240 --> 00:06:49.680
Yeah, I was going to go six or seven.

156
00:06:49.680 --> 00:06:51.200
My gut said seven.

157
00:06:51.200 --> 00:06:54.160
And then I was like, this probably something better out there.

158
00:06:54.160 --> 00:06:57.200
So I haven't had a lot that I like prefer to this.

159
00:06:57.200 --> 00:06:59.280
There's some really highly rated whiskeys

160
00:06:59.280 --> 00:07:02.400
that everybody loves, but I actually like this more

161
00:07:02.400 --> 00:07:03.680
than a lot of them.

162
00:07:03.680 --> 00:07:05.760
So I'll go with like a seven as well.

163
00:07:05.760 --> 00:07:06.560
Nice.

164
00:07:06.560 --> 00:07:08.480
Yeah, I totally agree with the like,

165
00:07:08.480 --> 00:07:10.880
I think once you hit a certain price threshold,

166
00:07:10.880 --> 00:07:13.360
it's just like, it's not any better

167
00:07:13.360 --> 00:07:14.960
if it's $500 a bottle.

168
00:07:14.960 --> 00:07:17.360
It's just like, oh, maybe if you're like,

169
00:07:17.360 --> 00:07:18.960
you have a really sophisticated palette

170
00:07:18.960 --> 00:07:20.720
or something you can taste, something that makes it better.

171
00:07:20.720 --> 00:07:23.200
But for me, like, not worth it.

172
00:07:23.200 --> 00:07:24.640
But yeah, so this is pretty good.

173
00:07:24.640 --> 00:07:26.000
I'm not usually a Scotch fan.

174
00:07:26.000 --> 00:07:27.200
This is not all that Scotchy.

175
00:07:27.200 --> 00:07:29.200
So I am a pretty big fan of this one.

176
00:07:29.280 --> 00:07:30.640
I'm not going to go all the way to seven.

177
00:07:30.640 --> 00:07:32.400
I'm going to say six point eight.

178
00:07:33.360 --> 00:07:33.840
Nice.

179
00:07:33.840 --> 00:07:35.600
Plus minus points two on the seven.

180
00:07:38.000 --> 00:07:39.360
Yeah, I leaned up.

181
00:07:39.360 --> 00:07:40.320
I'm always going to do that.

182
00:07:40.320 --> 00:07:41.680
I'm like an optimistic person.

183
00:07:41.680 --> 00:07:42.960
I like complimenting things.

184
00:07:42.960 --> 00:07:45.520
So I'll probably always sway, sway up the number.

185
00:07:45.520 --> 00:07:48.160
I'll give you the benefit of this whisky.

186
00:07:50.640 --> 00:07:52.000
Yeah, I was just going with whole numbers.

187
00:07:52.000 --> 00:07:55.600
I was like, I'll leave the decimal off.

188
00:07:55.600 --> 00:07:58.560
Yeah, it is hard to have fractions of a tentacle, I guess.

189
00:07:58.560 --> 00:07:59.760
But we do it.

190
00:08:01.760 --> 00:08:03.920
If you have a fraction, it'll just regrow, right?

191
00:08:03.920 --> 00:08:06.320
Like most tentacles, tentacle regrow.

192
00:08:06.320 --> 00:08:08.160
Yes, that is true.

193
00:08:08.160 --> 00:08:09.840
Chuck would always say that because he's like,

194
00:08:09.840 --> 00:08:11.840
there could be a nine tentacle octopus.

195
00:08:11.840 --> 00:08:14.080
If one, if you cut one off, you can grow two back.

196
00:08:14.080 --> 00:08:14.240
So.

197
00:08:15.360 --> 00:08:17.120
Well, that'd be a really popular octopus.

198
00:08:17.120 --> 00:08:18.960
It's got like the split tentacle.

199
00:08:18.960 --> 00:08:21.840
All the ladies are like, oh, do you see that tentacle?

200
00:08:21.840 --> 00:08:23.040
How do you think that feels?

201
00:08:24.960 --> 00:08:26.320
Snakes out.

202
00:08:26.320 --> 00:08:26.720
Crazy.

203
00:08:27.520 --> 00:08:30.160
Yeah, what if you just cut like all of them a little bit

204
00:08:30.160 --> 00:08:31.600
and have like a thousand tentacles?

205
00:08:32.960 --> 00:08:34.640
Like if you grew back a bunch.

206
00:08:34.640 --> 00:08:36.880
So what's the, what's the origin story

207
00:08:36.880 --> 00:08:38.640
of the tentacle rating system?

208
00:08:38.640 --> 00:08:39.920
Where did that come from?

209
00:08:39.920 --> 00:08:42.160
Well, I'll give you the not that long version.

210
00:08:42.160 --> 00:08:44.480
We had a consultancy called ship shape.

211
00:08:44.480 --> 00:08:47.520
Our logo was like an octopus like creature.

212
00:08:47.520 --> 00:08:49.440
So like the crack in a boat, yeah.

213
00:08:50.400 --> 00:08:52.640
Yeah, it's technically, if you want to be 100%

214
00:08:52.640 --> 00:08:54.080
technical, it's a cthulhu.

215
00:08:54.080 --> 00:08:55.280
A cthulhu face.

216
00:08:55.280 --> 00:08:55.680
Yeah.

217
00:08:56.720 --> 00:08:58.480
But no one's everyone like half people

218
00:08:58.480 --> 00:08:59.280
don't know what that is.

219
00:08:59.280 --> 00:09:00.880
And then like, I don't know.

220
00:09:00.880 --> 00:09:01.760
We just, we make it easy.

221
00:09:01.760 --> 00:09:03.840
I mean, it's octopus like, I know what it is.

222
00:09:04.480 --> 00:09:05.360
Yeah, yeah.

223
00:09:06.240 --> 00:09:08.080
But yeah, so that's not the way to think.

224
00:09:08.080 --> 00:09:10.400
Yeah, I, the first time I saw it was Southpock,

225
00:09:10.400 --> 00:09:11.680
not down to the dragons.

226
00:09:13.200 --> 00:09:15.200
I've learned so much from Southpork.

227
00:09:15.200 --> 00:09:16.160
It's not even funny.

228
00:09:19.040 --> 00:09:20.080
Educating the masses.

229
00:09:21.040 --> 00:09:22.960
Oh, they're mocking the masses.

230
00:09:22.960 --> 00:09:24.800
They're so good at making fun of us.

231
00:09:24.800 --> 00:09:27.680
And I just love the perspective that they, that they share.

232
00:09:27.680 --> 00:09:29.040
It's, it's good stuff.

233
00:09:29.040 --> 00:09:29.760
I'm not caught up though.

234
00:09:29.760 --> 00:09:31.520
There's like an episode I'm not caught up on.

235
00:09:31.520 --> 00:09:33.280
Are you caught up in a month on Southpark?

236
00:09:33.280 --> 00:09:36.000
No, I actually got, I got a subscription

237
00:09:36.000 --> 00:09:38.000
to powder mod plus finally to watch it.

238
00:09:38.000 --> 00:09:39.680
But I just, I was flying over the weekend.

239
00:09:39.680 --> 00:09:41.200
So I'm going to watch it this week.

240
00:09:41.200 --> 00:09:41.760
Gotcha.

241
00:09:41.760 --> 00:09:44.800
Yeah, it's like the only TV show I still watch these days.

242
00:09:44.800 --> 00:09:47.280
I was watching Alien Earth, but the season ended.

243
00:09:47.280 --> 00:09:49.200
So I'm back to no shows.

244
00:09:49.280 --> 00:09:50.800
I got a list for you if you need a list.

245
00:09:51.760 --> 00:09:53.200
Yeah, well, give it a shot.

246
00:09:53.200 --> 00:09:54.640
We're like oddly picky on our house.

247
00:09:54.640 --> 00:09:56.800
My wife falls asleep to everything.

248
00:09:56.800 --> 00:09:59.680
If she stays awake, it's like, oh, she likes a show.

249
00:09:59.680 --> 00:10:00.960
Did you watch Ozark?

250
00:10:00.960 --> 00:10:02.080
I think I started that one.

251
00:10:02.080 --> 00:10:03.120
I think I got halfway in.

252
00:10:03.120 --> 00:10:05.440
That was a drug smuggling show, right?

253
00:10:05.440 --> 00:10:06.080
Yeah.

254
00:10:06.080 --> 00:10:07.360
I think I got halfway into that one.

255
00:10:07.360 --> 00:10:07.840
I don't know.

256
00:10:07.840 --> 00:10:10.880
That's a new, uh, new Jason Bateman show

257
00:10:10.880 --> 00:10:12.720
called Black Rabbit that I just started.

258
00:10:12.720 --> 00:10:14.960
It's like similar vibes that's, uh,

259
00:10:15.840 --> 00:10:16.960
pretty fun to watch so far.

260
00:10:17.520 --> 00:10:17.840
Cool.

261
00:10:18.560 --> 00:10:19.440
What are you watching them on?

262
00:10:20.000 --> 00:10:22.080
I've been watching lots of anime recently,

263
00:10:22.080 --> 00:10:26.000
but the last live action thing I watch was slow horses.

264
00:10:26.000 --> 00:10:26.720
Have you heard of it?

265
00:10:27.520 --> 00:10:30.080
No, I've heard of it, but I haven't.

266
00:10:30.080 --> 00:10:31.200
I haven't pulled the trigger.

267
00:10:31.200 --> 00:10:33.360
They keep showing up, but I'm going to make sure to watch this.

268
00:10:33.360 --> 00:10:35.600
The name makes you think it's not going to be good,

269
00:10:35.600 --> 00:10:36.960
but it's actually really good.

270
00:10:36.960 --> 00:10:39.760
It's a really good spy thriller with comedy in it.

271
00:10:39.760 --> 00:10:41.840
The premise is that it's a British show.

272
00:10:41.840 --> 00:10:43.680
And I forgot the actor's name,

273
00:10:43.760 --> 00:10:48.080
but he played Sirius Black and in the Nolan movies,

274
00:10:48.080 --> 00:10:49.440
he was Commissioner Gordon.

275
00:10:49.440 --> 00:10:50.560
Like, he's a really good actor.

276
00:10:51.280 --> 00:10:54.320
So they are the rejects of MI5.

277
00:10:54.320 --> 00:10:56.000
They can't kick them out of the agency,

278
00:10:56.000 --> 00:10:57.760
so they get sent to this dump,

279
00:10:57.760 --> 00:10:59.840
and they're all like these rejects.

280
00:10:59.840 --> 00:11:00.720
And it's about them,

281
00:11:00.720 --> 00:11:03.040
but like it's also a Sirius spy thriller show.

282
00:11:03.040 --> 00:11:04.000
So it's like really funny,

283
00:11:04.000 --> 00:11:06.480
but also really good spy thriller entry,

284
00:11:06.480 --> 00:11:07.280
all of that.

285
00:11:07.280 --> 00:11:10.160
And it's almost like slight,

286
00:11:10.160 --> 00:11:11.600
like two movies per season.

287
00:11:11.600 --> 00:11:13.280
It's like five episodes per season.

288
00:11:13.680 --> 00:11:16.080
And there's five seasons out so far with,

289
00:11:16.080 --> 00:11:17.520
you know, one story per season.

290
00:11:17.520 --> 00:11:18.160
Pretty good.

291
00:11:18.160 --> 00:11:20.160
Nice. I'm definitely down to that premise.

292
00:11:20.160 --> 00:11:20.880
Yeah.

293
00:11:20.880 --> 00:11:22.400
Yeah, you know what else is good

294
00:11:22.400 --> 00:11:22.960
that I've heard?

295
00:11:24.080 --> 00:11:24.400
Flow.

296
00:11:29.360 --> 00:11:30.880
Ah, everybody loves the flow state.

297
00:11:30.880 --> 00:11:31.600
What can I say?

298
00:11:34.320 --> 00:11:36.800
No, this is almost like,

299
00:11:36.800 --> 00:11:39.040
almost a cliche at this point for me.

300
00:11:39.040 --> 00:11:41.040
Like I was like the biggest flow defender.

301
00:11:41.040 --> 00:11:42.960
I was like updating my attempts.

302
00:11:43.680 --> 00:11:45.120
What happened?

303
00:11:45.120 --> 00:11:46.560
I don't get to use it much.

304
00:11:46.560 --> 00:11:47.920
I don't get to use it much anymore,

305
00:11:47.920 --> 00:11:49.680
but for the longest time,

306
00:11:49.680 --> 00:11:52.640
I was updating my website this, this like last week,

307
00:11:52.640 --> 00:11:54.320
and I was finding all my talks.

308
00:11:54.320 --> 00:11:58.080
And my first ever talk that's actually up online somewhere

309
00:11:58.080 --> 00:12:00.400
was I had a meetup I was talking about flow.

310
00:12:01.200 --> 00:12:04.080
So it's almost like almost nostalgic for me.

311
00:12:04.080 --> 00:12:06.160
Like I used it for my first like big job,

312
00:12:06.160 --> 00:12:07.840
like my first type system was flow.

313
00:12:07.840 --> 00:12:09.120
So it kind of like made sense.

314
00:12:09.760 --> 00:12:12.800
And yeah, so I often like talked about how I like

315
00:12:12.800 --> 00:12:16.000
prefer things about flows like type system to type trip.

316
00:12:16.000 --> 00:12:17.840
And in a lot of ways, I still do.

317
00:12:17.840 --> 00:12:19.040
It's foster.

318
00:12:19.040 --> 00:12:19.840
It makes more sense.

319
00:12:19.840 --> 00:12:21.200
It's more consistent.

320
00:12:21.200 --> 00:12:24.720
The downside is it's not as polished as TypeScript.

321
00:12:24.720 --> 00:12:28.320
TypeScript is just like so over-engineered

322
00:12:28.320 --> 00:12:30.080
and like executed so well

323
00:12:30.720 --> 00:12:34.000
that it's very difficult to convince people to like choose flow

324
00:12:34.000 --> 00:12:37.440
because you have to you have to want correctness over convenience.

325
00:12:38.240 --> 00:12:39.760
Which most people don't get.

326
00:12:39.760 --> 00:12:40.640
I do that work now.

327
00:12:40.640 --> 00:12:42.960
I feel like, hey, I could annotate the hell out of flow.

328
00:12:42.960 --> 00:12:47.520
And it just like make this yeah, it takes sort of the tediousness out of it.

329
00:12:47.520 --> 00:12:50.720
For the longest time, flow needed fewer annotations than TypeScript.

330
00:12:50.720 --> 00:12:52.160
Now it needs more.

331
00:12:52.160 --> 00:12:55.200
And then soon they will go back down to fewer again.

332
00:12:55.200 --> 00:12:59.200
That they've been doing this like massive refactor over multiple years.

333
00:12:59.200 --> 00:13:03.040
And like TypeScript also like actually shipped this feature that flow had to ship

334
00:13:03.040 --> 00:13:03.760
just to scale.

335
00:13:04.640 --> 00:13:08.720
Where flow makes you write annotations for all exports

336
00:13:08.800 --> 00:13:12.240
so that it can like, you know, check your code faster

337
00:13:12.240 --> 00:13:14.960
and TypeScript to file exports or function exports.

338
00:13:14.960 --> 00:13:17.040
Yeah, like file like like module exports.

339
00:13:17.040 --> 00:13:18.880
And but also function up.

340
00:13:18.880 --> 00:13:22.000
But like module exports even functions need return types.

341
00:13:22.000 --> 00:13:23.200
Like you have to annotate everything.

342
00:13:23.200 --> 00:13:26.400
So it's not like it doesn't have to infer like all the way up the chain.

343
00:13:26.400 --> 00:13:27.280
It can just grab that.

344
00:13:27.920 --> 00:13:30.160
Yeah, and that was done a few years ago.

345
00:13:30.160 --> 00:13:32.320
And I forgot, it's called the types first architecture.

346
00:13:32.960 --> 00:13:36.640
Whereas basically like, oh, you know, you can just type check a few files

347
00:13:36.720 --> 00:13:37.360
and you're good.

348
00:13:37.360 --> 00:13:39.680
And you're have to like look at the whole global state,

349
00:13:39.680 --> 00:13:44.080
which is why it's like scales to, I don't know, like 50,000 files

350
00:13:44.080 --> 00:13:46.960
or something at like Facebook's Mono repo.

351
00:13:46.960 --> 00:13:48.560
It like works fairly well.

352
00:13:48.560 --> 00:13:52.560
And TypeScript actually shipped that feature last year as like a flag.

353
00:13:52.560 --> 00:13:53.680
Like you can opt into it.

354
00:13:53.680 --> 00:13:54.400
Mm-hmm.

355
00:13:54.400 --> 00:13:57.360
It's going to say that's a killer feature to just partial check.

356
00:13:58.080 --> 00:13:58.720
Yeah.

357
00:13:58.720 --> 00:14:00.480
And so you can do an island of checking.

358
00:14:00.480 --> 00:14:02.000
You don't have to check the world.

359
00:14:02.000 --> 00:14:03.440
Oh, that's huge.

360
00:14:03.440 --> 00:14:05.280
That's a really annoying game.

361
00:14:05.360 --> 00:14:06.240
TypeScript once in a minute.

362
00:14:06.240 --> 00:14:06.880
Yeah, it does.

363
00:14:06.880 --> 00:14:09.760
Of like the whole inferred versus explicit,

364
00:14:09.760 --> 00:14:11.760
like everyone has been team inferred types

365
00:14:11.760 --> 00:14:13.120
because they don't even write more.

366
00:14:13.920 --> 00:14:16.480
But if you get an actual benefit out of doing it,

367
00:14:17.440 --> 00:14:19.440
that's totally different answer possibly.

368
00:14:20.160 --> 00:14:21.200
Maybe this is hot again.

369
00:14:22.400 --> 00:14:26.240
And then you can have an LSP because like when you're in the file,

370
00:14:26.240 --> 00:14:29.440
you can infer the types and then it can just insert them for you.

371
00:14:29.440 --> 00:14:31.440
So it's not like you have to type them out.

372
00:14:31.440 --> 00:14:33.120
You just have to have them in your court.

373
00:14:33.280 --> 00:14:35.520
So it's not the end of the world.

374
00:14:35.520 --> 00:14:37.680
What like slow falls down on is like,

375
00:14:37.680 --> 00:14:40.480
oh, for the longest time, it's like auto-complete was way worse.

376
00:14:40.480 --> 00:14:42.800
So it like wouldn't auto-complete like object keys.

377
00:14:42.800 --> 00:14:43.760
That's just tooling though.

378
00:14:43.760 --> 00:14:45.040
That's not flow's fall, right?

379
00:14:45.040 --> 00:14:49.040
That's it's kind of it's the tooling part of slow.

380
00:14:49.600 --> 00:14:53.280
You know, like there's the type checking part where I think flow is always better.

381
00:14:53.280 --> 00:14:56.080
And then there's everything else where flow has always been worse.

382
00:14:56.080 --> 00:14:59.840
Like generating type annotations, all of that's been bad.

383
00:14:59.840 --> 00:15:04.800
You wrote Stylex, which is a typed library as far as I know.

384
00:15:04.800 --> 00:15:07.440
And you're interfacing with CSS, which is typed.

385
00:15:08.000 --> 00:15:10.880
How did CSS shape your understanding of types?

386
00:15:10.880 --> 00:15:14.800
And how did you shape CSS to fit into the typed world of Stylex?

387
00:15:14.800 --> 00:15:17.600
Also, I don't know if everybody knows what Stylex is.

388
00:15:17.600 --> 00:15:22.000
By the way, Stylex is the official, the only as far as I know,

389
00:15:22.000 --> 00:15:29.040
the only official way to style React components that is compliant with the latest variant of React.

390
00:15:29.600 --> 00:15:32.480
And so it'll work with server components or client components.

391
00:15:32.480 --> 00:15:35.360
It works across the entire spectrum of React.

392
00:15:35.360 --> 00:15:36.640
It's the only one that does that.

393
00:15:36.640 --> 00:15:40.000
And it's very near and dear to the interface that you probably

394
00:15:40.000 --> 00:15:42.720
loved from your previous React styling solution.

395
00:15:42.720 --> 00:15:45.840
So anyway, that's Stylex, Namanis, the creator.

396
00:15:45.840 --> 00:15:50.320
I introed him a little bit about that, but probably went over your head as I was talking.

397
00:15:50.320 --> 00:15:51.280
You know, money boys.

398
00:15:51.280 --> 00:15:51.440
Yeah.

399
00:15:51.440 --> 00:15:55.840
Anyway, so like how did types, because you're in a fully typed scenario,

400
00:15:55.840 --> 00:15:58.720
you're typed in the library, you're typed with CSS,

401
00:15:58.720 --> 00:16:02.320
you're typed in typescript, you're typed in your React components.

402
00:16:02.320 --> 00:16:04.720
How did that shape your perspectives?

403
00:16:05.280 --> 00:16:08.880
Yeah, so like, I don't know, like we, which I don't know Amsterdam,

404
00:16:08.880 --> 00:16:13.600
I don't know if I mentioned this, but like CSS was the first language of the web that I learned.

405
00:16:14.320 --> 00:16:15.840
So programming language.

406
00:16:16.720 --> 00:16:17.600
It's a programming language.

407
00:16:17.600 --> 00:16:18.160
You heard it here.

408
00:16:18.160 --> 00:16:18.800
He said language.

409
00:16:20.560 --> 00:16:22.080
It's definitely a language.

410
00:16:22.080 --> 00:16:24.160
I don't get into those debates because I'm like,

411
00:16:24.960 --> 00:16:27.920
I'm like, programming language doesn't make it superior.

412
00:16:27.920 --> 00:16:30.320
Scripting language, though, apparently.

413
00:16:31.360 --> 00:16:34.080
Yeah, like a markup language is made for something.

414
00:16:34.080 --> 00:16:34.880
It can be good.

415
00:16:34.880 --> 00:16:37.600
It can be better than a programming language sometimes.

416
00:16:37.600 --> 00:16:39.280
It's kind of gone over back and forth.

417
00:16:39.280 --> 00:16:44.960
So I didn't start Stylex, but I like took over like maybe a couple of weeks in.

418
00:16:44.960 --> 00:16:48.880
The first commits were by Sebastian McKenzie, creator of Babel.

419
00:16:48.880 --> 00:16:53.680
So he like had like a proof of concept that atomic styles are faster

420
00:16:53.680 --> 00:16:57.040
and that things can be typed, but we want to write objects.

421
00:16:57.040 --> 00:17:00.240
My elevator pitch would be Stylex is what if Dale win,

422
00:17:00.240 --> 00:17:04.480
but you don't have to learn all new syntax is just, you know, the normal thing.

423
00:17:04.480 --> 00:17:05.200
You dealt with that?

424
00:17:06.240 --> 00:17:06.720
I don't know.

425
00:17:06.720 --> 00:17:08.080
I would have to see it, I think.

426
00:17:08.080 --> 00:17:10.320
And I would also have to use React, which I don't.

427
00:17:11.280 --> 00:17:13.600
You don't have to react, to be honest.

428
00:17:13.600 --> 00:17:18.880
You can use it with anything where your markup and your JavaScript is in the same file.

429
00:17:19.840 --> 00:17:21.840
Okay, so it works with solid.

430
00:17:21.840 --> 00:17:23.840
It works with the svelte.

431
00:17:23.840 --> 00:17:28.000
It works with view with like a little bit more mess to like set up.

432
00:17:28.000 --> 00:17:29.520
And it works with Astro.

433
00:17:29.520 --> 00:17:30.640
These are the ones I've tested.

434
00:17:30.640 --> 00:17:32.320
It works with quick uses.

435
00:17:32.960 --> 00:17:34.960
Give it a try with Ember and let me know.

436
00:17:36.640 --> 00:17:37.920
I have not tried Ember.

437
00:17:37.920 --> 00:17:39.840
It does work with Angular, but it's not great.

438
00:17:39.840 --> 00:17:41.840
So I would not recommend it with Angular.

439
00:17:41.840 --> 00:17:47.600
It's probably the same, like the same syntax is kind of the same across Ember and Angular,

440
00:17:47.600 --> 00:17:51.360
like the using directives and classes and all of the things.

441
00:17:51.360 --> 00:17:56.080
But Ember does have single file components where you can do your markup

442
00:17:56.080 --> 00:17:57.840
and JavaScript in the same file.

443
00:17:57.840 --> 00:18:00.000
So maybe we could get it to work, but I don't know.

444
00:18:00.000 --> 00:18:03.600
Angular, the problem was you had to define it and then bind it and then use the,

445
00:18:03.600 --> 00:18:06.960
like it was like too many steps to define the use.

446
00:18:06.960 --> 00:18:12.240
And I think with the single file components, which I've seen some rumblings of it also coming,

447
00:18:12.240 --> 00:18:15.840
to Angular, I don't know if it's part of Angular itself or just analog,

448
00:18:15.840 --> 00:18:17.200
which is their like metering work.

449
00:18:18.160 --> 00:18:20.640
In one of those things that probably will be better,

450
00:18:20.640 --> 00:18:23.200
but literally no one has ever asked for it.

451
00:18:23.200 --> 00:18:25.440
In the year and a half, since dialects has been out,

452
00:18:25.440 --> 00:18:27.840
there have been lots of people who want to use it with views.

453
00:18:27.840 --> 00:18:32.560
Like everything else other than Ember and Angular, nobody seems to want it.

454
00:18:32.560 --> 00:18:34.400
And it's felt also like nobody actually wants it.

455
00:18:34.400 --> 00:18:36.640
I just tried it and it just worked.

456
00:18:36.640 --> 00:18:37.600
It was pretty straightforward.

457
00:18:37.600 --> 00:18:39.920
Well, they're using, yeah, the CSS module is out of the box.

458
00:18:39.920 --> 00:18:44.720
Why not do an atomic scenario that's honestly kind of cooler.

459
00:18:44.720 --> 00:18:45.680
So a little bit more free.

460
00:18:45.680 --> 00:18:48.480
Okay, so tell people a little about like how it integrates.

461
00:18:48.480 --> 00:18:51.360
How do you define your styles and then how are they referring to an element?

462
00:18:51.360 --> 00:18:54.000
Sylex is a bunch of functions that are all compiled away.

463
00:18:54.640 --> 00:18:58.400
So there's a stylix.create that like lets you define some styles.

464
00:18:59.040 --> 00:19:02.960
But conceptually speaking, you should just think of that as when you do that,

465
00:19:02.960 --> 00:19:05.920
it gets compiled away and turns into an object

466
00:19:06.560 --> 00:19:09.440
where it maps keys to class names, which are atomic.

467
00:19:10.000 --> 00:19:13.760
And then you apply them with this function called stylix.props,

468
00:19:14.000 --> 00:19:18.320
which basically takes a bunch of style objects, which are just class names.

469
00:19:19.040 --> 00:19:24.400
And it merges them similar to like CN or whatever those class names utilities.

470
00:19:24.400 --> 00:19:30.320
And it gives you back a class name prop and sometimes a style prop I'll come to that later.

471
00:19:30.880 --> 00:19:36.880
And that's conceptually all you have to think about in terms of like how it works like at runtime.

472
00:19:36.880 --> 00:19:41.120
If you limit yourself to the same constraints as tailwind,

473
00:19:41.120 --> 00:19:45.600
which is you define all your styles in the same file and you use them all in the same file,

474
00:19:45.600 --> 00:19:50.640
then it is as fast as tailwind because we will also compile away stylix.props and just put a

475
00:19:50.640 --> 00:19:55.120
string there. If you can figure out what string would be there at compile time, we'll just put it

476
00:19:55.120 --> 00:20:00.000
there. And if you use some like conditions, so you're like this is my base styles and if it's

477
00:20:00.000 --> 00:20:04.960
active, I want my active styles otherwise I don't, which is their own like sets of class names or

478
00:20:05.680 --> 00:20:13.200
we pre compile that down into multiple strings and then just like this like bitwise operator

479
00:20:13.200 --> 00:20:19.600
business to like choose from them. So it's like super fast, just compare the conditions and pick

480
00:20:19.600 --> 00:20:24.720
the class name, but nothing else. In the past, it used to use a ternary expressions to like add

481
00:20:24.720 --> 00:20:30.000
strings together, but it would sometimes add extra spaces to this class names and then every time

482
00:20:30.000 --> 00:20:34.000
we would make a change, there would be like what do you call snapshot tests breaking. So we don't do

483
00:20:34.080 --> 00:20:40.000
that anymore. So in that case, it's as fast. Then a lot of people with tailwind use this function called

484
00:20:40.000 --> 00:20:45.440
tailwind merge, which lets you like just throw styles together and like merge them at runtime.

485
00:20:45.440 --> 00:20:50.720
Tailwind merge is three to four times bigger than the runtime of stylix in like

486
00:20:51.280 --> 00:20:58.640
kilobytes and it is must not using bitwise. It is, it is just crazy slow like because tailwind

487
00:20:58.640 --> 00:21:03.680
doesn't want it to exist. Like the tailwind team doesn't like him. That's the benefit of it.

488
00:21:03.680 --> 00:21:08.640
I've never used it personally. In terms of like developer experience, there's nothing better

489
00:21:08.640 --> 00:21:13.200
than to be able to just like pass styles around it as if it's just data and like override

490
00:21:13.200 --> 00:21:19.040
whenever, whatever you want. And tailwind merge is like 80% as good, just actually pretty decent

491
00:21:19.040 --> 00:21:26.720
in terms of like the devex. It's just like bloated and slow. It's like five x bigger and like maybe

492
00:21:26.800 --> 00:21:34.720
10 x slower. And like stylix.props is fast both because of how it's implemented. It like uses like

493
00:21:34.720 --> 00:21:41.040
a tree of weak maps behind the scenes to like cache everything and all of that. But it also like

494
00:21:41.040 --> 00:21:47.280
stylix itself is designed for that. So like stylix is not generating strings is generating objects

495
00:21:47.280 --> 00:21:51.920
or strings. And so like when you have to merge them, it's like way faster than like looking up a

496
00:21:52.000 --> 00:21:57.760
string and being like is grow a flex box property. Like if you put grow and then later you put shrink

497
00:21:57.760 --> 00:22:02.400
which one should win. So like tailwind merge has to have this like massive list of things of like

498
00:22:02.400 --> 00:22:07.200
all these exceptions where they don't have a consistent prefix for every property because it's

499
00:22:07.200 --> 00:22:12.560
like optimized for like typing less. It's not optimized for merging. And stylix is optimized for

500
00:22:12.560 --> 00:22:17.840
like reading and merging. It's not optimized for like typing less. That's all right. So I understand

501
00:22:17.840 --> 00:22:23.200
the concept. But I'm not understanding like a concrete example. Can you give me an example of

502
00:22:23.200 --> 00:22:28.960
like when you would want to merge two or like what gets you into this situation? Let me give you a

503
00:22:28.960 --> 00:22:35.280
very like like an example that exists out there which is every card on facebook.com has a few

504
00:22:35.280 --> 00:22:41.840
things that are like predefined. Like they all have like this border radius. And you can have one

505
00:22:41.840 --> 00:22:46.640
of like three border radii depending on where you're using it. Like you can have a configuration

506
00:22:46.720 --> 00:22:51.760
for like shadow. But then other than that in different places you want completely arbitrary styles.

507
00:22:51.760 --> 00:22:55.840
You may want different background colors. You may want like different padding, different sizing,

508
00:22:55.840 --> 00:23:02.320
all of that. So you just have like some default styles and then the user passes in the rest of the

509
00:23:02.320 --> 00:23:07.920
styles. And you consistently get the last thing applied. Cool. I'm on the same page now. Sorry,

510
00:23:07.920 --> 00:23:12.480
I just was understanding for a second. I started working on stylix for that. So I was on the

511
00:23:12.480 --> 00:23:18.000
component steam like the design system team. And I was not supposed to work on stylix. It was

512
00:23:18.000 --> 00:23:24.480
supposed to be complete. And I was like making components. And then I'm like, this is so annoying.

513
00:23:24.480 --> 00:23:29.920
I'm like, I have like this massive list of props for like all these like booleans of like,

514
00:23:29.920 --> 00:23:34.720
do I want like primary or not? Do I want this or not? It's like just like we would get these

515
00:23:34.720 --> 00:23:40.400
massive lists of like toggles to like up conditionally apply different like styles. It would make

516
00:23:40.960 --> 00:23:46.720
the like the API of a component is just like annoying. And we were like recreating essentially

517
00:23:46.720 --> 00:23:53.600
like CSS in like react props. And then we were like, why could we just like pass in like styles?

518
00:23:53.600 --> 00:23:57.680
That would be so much better than this mess. And like that's when I started working on stylix.

519
00:23:57.680 --> 00:24:01.680
That was like the first thing I'm like, I need this. And that's why it's like type safe because

520
00:24:01.680 --> 00:24:06.960
we're like, hey, like you're you're overriding styles for a for a card. Don't change the border

521
00:24:06.960 --> 00:24:10.640
radius. We don't allow you to do that. You can change everything else, but not border radius.

522
00:24:10.640 --> 00:24:15.360
That's predefined. Don't worry about it. And like everything like came from there for like two,

523
00:24:15.360 --> 00:24:20.000
three years. Like stylix started. I don't know if tailwind existed then or not, but like no one

524
00:24:20.000 --> 00:24:24.880
knew about it. I started working on it in 2018. It was like internal for many years. I find it

525
00:24:24.880 --> 00:24:30.880
really funny because like the first YouTube video to cover like stylix was Theo's video because

526
00:24:30.880 --> 00:24:35.760
like he found like this like beta website. I had somewhere because I was like working on it.

527
00:24:35.760 --> 00:24:40.160
Wasn't even open source yet. And he just found the link somewhere and he made a video about it.

528
00:24:40.160 --> 00:24:44.160
And he's like Facebook tried tailwind. Then they made this and said, I'm like, we never tried

529
00:24:44.160 --> 00:24:50.960
tailwind. We didn't even know about it. Y'all tried vanilla extract and you're like, we can do

530
00:24:50.960 --> 00:24:57.360
better from like, I don't know if everyone can notice here, but Naman has a very high attention to

531
00:24:57.360 --> 00:25:04.000
detail. And so when I was at Chrome and I'm watching stylix evolve, which also was considering

532
00:25:04.080 --> 00:25:08.960
how to integrate design systems that are full of custom properties like open props. I was like,

533
00:25:08.960 --> 00:25:13.760
oh, a library is actually giving a crap about native CSS variables, which is why I was paying

534
00:25:13.760 --> 00:25:18.560
attention to vanilla extract because it would scope my custom properties and my keyframes with

535
00:25:18.560 --> 00:25:23.840
robo vomit names. It sort of helps them be pseudo private and stuff. And I'm watching as stylix

536
00:25:23.840 --> 00:25:28.560
is evolving and I'm watching the months taking attention to detail into making sure that the

537
00:25:28.560 --> 00:25:35.040
modern CSS authoring experience is not crammed into stylix. There was an attention to detail

538
00:25:35.040 --> 00:25:41.120
there across. It sounds like for about six years that you didn't want this thing to age poorly.

539
00:25:41.120 --> 00:25:46.000
I'd account almost its entire success into you carrying the torch forward. What was motivating

540
00:25:46.000 --> 00:25:49.680
you there other than it sounds like you were dog fooding it and you're like, it sucks for me.

541
00:25:49.680 --> 00:25:54.320
So it's going to suck for other people like how did you find some intrinsic like motivations there?

542
00:25:54.400 --> 00:25:59.120
For the longest time, I was just an internal thing. Just making improvements based on what people

543
00:25:59.120 --> 00:26:04.160
were complaining about. There was lots of improvements that are very hard to even describe because

544
00:26:04.160 --> 00:26:11.120
they were just like internal messes. Like how does it fit into this like 15 year old bundling

545
00:26:11.120 --> 00:26:16.720
situation that Facebook uses that is impossible to change at this point written in PHP? Like lots of

546
00:26:16.720 --> 00:26:23.680
that type of stuff, which I always struggled with. But basically, Tamachino who was still at Facebook

547
00:26:23.760 --> 00:26:29.760
to like COVID or something, he told me open source it. And I was like, I'll do it. And then I just like,

548
00:26:29.760 --> 00:26:34.880
I was like, oh, if only I'll do this one more feature. And I just kept not not shipping it for

549
00:26:34.880 --> 00:26:40.800
years. So that's like totally on me. And I finally like felt like it had everything. Once I added

550
00:26:40.800 --> 00:26:47.440
the teaming APIs, which the teaming APIs themselves took like, I want to say six months of iteration.

551
00:26:47.440 --> 00:26:52.400
Those hooked me hard. Those were really well done. I was really impressed with those. That's my

552
00:26:52.400 --> 00:26:57.760
like proudest part of style X is the teaming APIs because we had the first version. I was like,

553
00:26:57.760 --> 00:27:03.360
hey, can we do this? And they're like, no, the bills will take too long. So there was like all

554
00:27:03.360 --> 00:27:07.200
these constraints because at the same time, we were designing those. There was like this like work

555
00:27:07.200 --> 00:27:12.880
internally to like make a themeable component system. I don't know if it ever got done. But basically,

556
00:27:12.880 --> 00:27:19.040
we wanted all these different design systems to all be one design system, which is different themes.

557
00:27:19.040 --> 00:27:24.880
And the designers had like this really insane ideas, which makes sense in Figma. But like,

558
00:27:24.880 --> 00:27:29.440
in hindsight, it makes sense on the component level because there were just like thousands and

559
00:27:29.440 --> 00:27:33.680
thousands of CSS variables. Like, that's what they wanted. I didn't know that if you put 10,000 CSS

560
00:27:33.680 --> 00:27:38.480
variables, you can literally crash your browser back then. So yes, I can material designed it.

561
00:27:38.480 --> 00:27:43.440
At first, they really crossed the browser and then they crashed Safari and then they crashed.

562
00:27:43.760 --> 00:27:50.480
It's like every browser was like, pretty funny. So I designed this whole system. I'm like, okay,

563
00:27:50.480 --> 00:27:56.240
it needs to scale to 10,000 variables. And it needs to be so casual that only the files that you

564
00:27:56.240 --> 00:28:02.960
change have to be recompiled. And I was like, how the hell will I do that? I was like, just spending

565
00:28:02.960 --> 00:28:08.560
weeks after weeks thinking about ideas and finally came up with this API. And I'm like super happy

566
00:28:08.640 --> 00:28:12.880
with it. Like because like, especially with my react brain, it makes a lot of sense because it

567
00:28:12.880 --> 00:28:18.880
just feels like react context to me, like create context provider. And it's like define was created

568
00:28:18.880 --> 00:28:23.360
theme. Like, I don't know if those are the best names, but well, they're good names. But like,

569
00:28:23.360 --> 00:28:28.640
yeah, theme UI was like the more popular one before you were implementing this. And I hated that

570
00:28:28.640 --> 00:28:34.160
one. I was like, whoa, this is a lot of hoops. This is definitely developer driven abstraction

571
00:28:34.160 --> 00:28:38.880
into I'm not feeling effective anymore. And I feel like stylics did not give me that sense.

572
00:28:38.880 --> 00:28:42.560
So you did really well sort of like taking the torch and carrying it on.

573
00:28:42.560 --> 00:28:47.120
The thing that people wanted the most just to like give a shout out is stitches. Do you have a

574
00:28:47.120 --> 00:28:52.080
play around with stitches? Yeah, stitches in vanilla extract were the two things that right,

575
00:28:52.080 --> 00:28:58.480
those came together, right? Uh, stitches were pretty little bit on the extract stitches.

576
00:28:58.480 --> 00:29:03.680
The same person though, that's the same guy, right? Is it? I swear, it's the same thing that

577
00:29:03.680 --> 00:29:09.280
did stitches did, uh, I don't know. I know that vanilla extract is the same person who did

578
00:29:09.280 --> 00:29:14.160
CSS modules. I don't know what stitches. Okay, yeah, let me look it up. Stitches, uh,

579
00:29:14.160 --> 00:29:17.920
they're, I swear those two work together though. Mark work with the other dude that made stitches.

580
00:29:17.920 --> 00:29:23.920
Like, this is a very like the ecosystem of stitches and villa extract and sprinkles is a tight

581
00:29:23.920 --> 00:29:28.080
scenario. I think stitches was like deprecated and they were like, go use vanilla extract,

582
00:29:28.080 --> 00:29:31.200
at least like, I don't know if it's the same person, but like they definitely were like,

583
00:29:31.200 --> 00:29:35.120
go use vanilla extract. And so stitches had this like very interesting

584
00:29:35.120 --> 00:29:39.200
theming system, which people love using. And I think it's like a really good devex,

585
00:29:39.200 --> 00:29:44.880
actually even, even today. And if I could implement that for stylex, I would,

586
00:29:45.680 --> 00:29:51.040
but it's just like completely breaks types. Like it completely ruins the type safety of

587
00:29:51.040 --> 00:29:57.760
variables in stylex. So I caught because it basically lets you arbitrarily nest variables as

588
00:29:57.760 --> 00:30:02.880
many times as you want. So you can like have namespaces of namespaces of namespaces. And there's

589
00:30:02.880 --> 00:30:08.240
like two problems with that. Like one is like pretty hard to like make that type safe. But two is,

590
00:30:08.240 --> 00:30:13.120
now your variables can't have different values based on media queries, which is something I want

591
00:30:13.120 --> 00:30:18.880
in, which that's something nobody else does. I'm like all variable, like in CSS, you can define a

592
00:30:18.880 --> 00:30:23.920
variable and then like say, if like I'm in preferred dark mode, then it's a different value. Why

593
00:30:24.000 --> 00:30:29.360
doesn't anything else let you do that? So like when I designed like new APIs for stylex,

594
00:30:29.360 --> 00:30:35.200
I always start with like CSS. Like my goal is I want the capabilities, but not the,

595
00:30:36.000 --> 00:30:42.960
not the learning curve. So like not the global context maybe even. Yeah. So like I intentionally,

596
00:30:42.960 --> 00:30:47.200
like don't want you to think about selectors ever. That's like one thing. There's another thing,

597
00:30:47.200 --> 00:30:52.720
this one, I don't know what you think about it. But like I have like a personal aversion to

598
00:30:53.680 --> 00:30:59.360
any like values that you reference by strings. Think about like react query, like you have query

599
00:30:59.360 --> 00:31:03.760
keys, which are just strings. I am like very averse to that because I'm like, oh, I'm just like

600
00:31:03.760 --> 00:31:09.280
arbitrarily typing a string. And that's not type safe. Instead, I go for things which are like,

601
00:31:09.280 --> 00:31:14.080
you define them once and then you have to import them everywhere and use them. So those are like

602
00:31:14.080 --> 00:31:18.240
the two things that I'm like always like biased towards. I'm like, I don't want strings like

603
00:31:18.240 --> 00:31:22.720
arbitrary strings that mean things. And I don't want you to like have to think about selectors

604
00:31:22.720 --> 00:31:29.760
and stuff. It should just feel like data. But I want all the capabilities. And the hardest feature

605
00:31:29.760 --> 00:31:36.640
to implement in stylex was view transitions. Because view transitions one did not have view

606
00:31:36.640 --> 00:31:43.200
transition class at the time. Yeah. And that was just impossible. Like it's like, oh, you literally

607
00:31:43.280 --> 00:31:51.760
can't share it. Like it's unsherable to CSS. And that was the first time I like went to the CSS WG

608
00:31:51.760 --> 00:31:55.520
GitHub and like commented on things. I'm like, please do this. What are you doing?

609
00:31:58.080 --> 00:32:04.480
This just in whiskey.fund is now open for all your merge needs. That's right, Robbie. We're hearing

610
00:32:04.480 --> 00:32:11.760
reports of hats, sweaters and t-shirts as well as a link to join our discord server. What's a

611
00:32:11.760 --> 00:32:17.120
discord server? Just read the prompt or man. Hit subscribe. Leave us a review on your

612
00:32:17.120 --> 00:32:21.840
favorite podcast app and tell your friends about our broadcast. It really does help us reach

613
00:32:21.840 --> 00:32:26.800
more people and keeps the show growing. All right, back to your regularly scheduled programming.

614
00:32:30.480 --> 00:32:34.640
Anyway, I don't know what I was answering. Like, what was your question? I just wanted to hear

615
00:32:34.640 --> 00:32:38.800
more about stylex. I love that we got into view transitions. I was waiting for Robbie to be like,

616
00:32:38.880 --> 00:32:43.600
there's too much tech here, like web. Where's the what not? But at the same time, you started talking

617
00:32:43.600 --> 00:32:48.080
about view transitions. And I was like, Robbie and I are in view transitions a little bit of a

618
00:32:48.080 --> 00:32:55.360
hell right now where we're like, how do we make this really good? We've made it okay. We would

619
00:32:55.360 --> 00:32:58.880
like it to be better. Yeah, Robbie, tell them about like what we're pairing on and how we're trying

620
00:32:58.880 --> 00:33:04.800
to fight view transitions right now. Yeah. So we're using the Astro. We're building star pod,

621
00:33:04.800 --> 00:33:10.240
star pod that if you want to check it out. Shout out to my podcast. It looks good. Yeah,

622
00:33:10.240 --> 00:33:14.960
sorry, my voices. So I can feel my nose being stuffed up right now. It has this built in client

623
00:33:14.960 --> 00:33:20.400
router thing on Astro where like if you do nothing, it kind of like cross fades the pages and like,

624
00:33:20.400 --> 00:33:26.400
looks kind of nice, but Adam threw in a nice like the title of the episode from the episode list

625
00:33:26.400 --> 00:33:32.480
will go like zoom in and out when you like go to the episode and stuff. Or like I guess it did both

626
00:33:32.480 --> 00:33:37.200
with client router. But if you don't have client router, it only does one way. I'm not I'm not

627
00:33:37.200 --> 00:33:42.720
even remembering like the full scope because like subtle things work with client router or don't.

628
00:33:42.720 --> 00:33:48.080
And the main reason we need client router is because we want to play an episode and then like move

629
00:33:48.080 --> 00:33:52.640
around the site and have the episodes to play. It's like for anyone that doesn't know Astro is like

630
00:33:52.640 --> 00:33:59.120
a static site generator. So it's like multi page app. It's not a spa. So it's like going to have

631
00:33:59.120 --> 00:34:04.240
it'll stop every time you change pages unless you have something to handle that. That's our big

632
00:34:04.240 --> 00:34:10.800
dilemma right now. Yeah, we're stuck between like, hey, imagine we're Spotify and we want to ship a

633
00:34:10.800 --> 00:34:17.760
multi page app because it's better for SEO and it's easier for users to just like go to a playlist

634
00:34:18.480 --> 00:34:22.640
and then hit play. You know, so they're immediately taken to a detail to get server side rendered.

635
00:34:22.640 --> 00:34:28.880
But in this case, it's static. The client router is a way in Astro to it's kind of like a hot wire.

636
00:34:28.880 --> 00:34:33.520
What's the what's the rails way that does this where it intercepts your request and only partially

637
00:34:33.520 --> 00:34:40.000
renders the paging Aaron Francis. Paging. Francis. No, sorry. That's live wire. And that's not

638
00:34:40.000 --> 00:34:48.640
the rails. That's PHP. But it's something anyway. It's like yeah, hotline wire probably. I think sorry

639
00:34:48.640 --> 00:34:53.920
to everyone that I offended by getting all those wrong. No worries. It's similar to that where it's

640
00:34:53.920 --> 00:34:59.920
like Astro's like, Hey, we see we're we're we're ready to render you server side generated. However,

641
00:34:59.920 --> 00:35:05.440
the destination page here can be client side partial rendered. If you like, we'll look at the entire

642
00:35:05.440 --> 00:35:10.480
HTML page that comes back from the server. Take just a little tiny chunk and then render that into

643
00:35:10.480 --> 00:35:15.040
the little spot and we'll add some view transitions in there for you because we're Astro and we're tight

644
00:35:15.920 --> 00:35:19.920
and we'll auto name it and shit. So it's kind of like the modest talking about like we're naming

645
00:35:19.920 --> 00:35:25.440
things and coming with unique names becomes really difficult or unique view transition class names

646
00:35:25.440 --> 00:35:31.120
gets even hairier. Anyway, so it's like we're stuck between like if we use the client router in Astro

647
00:35:31.120 --> 00:35:35.920
which makes us more like a single page application. A spa as I call them. Damn it. It's a spa. That

648
00:35:35.920 --> 00:35:42.640
should be a spicy question. Is it a spa or an SPA? It's a spa. Well, it's a spa. I like spa. That's

649
00:35:42.640 --> 00:35:47.040
good. You can't say impah though unless you want to sound like a what's the band that did like

650
00:35:49.920 --> 00:35:55.600
Hansen. Hansen. Yeah. The funny part about that question is whoever answers fastest is the loser.

651
00:35:55.600 --> 00:36:01.280
So I guess that's. Hey, I used to love Hansen man. Me and my best friend in kindergarten

652
00:36:01.280 --> 00:36:07.120
listen to Hansen on the reg. Hansen D2 or I think the monosome of the same Hansen too.

653
00:36:07.440 --> 00:36:15.920
I'm on team SBA. I go out of my way to not start saying words that wouldn't mean something else

654
00:36:15.920 --> 00:36:24.640
to people who are not devs and spa already means something. Okay. Nice. Yeah. Another one I heard today

655
00:36:24.640 --> 00:36:32.240
or pond. Yeah. What? I haven't heard those ones before. No. So today I heard a new one which is

656
00:36:32.960 --> 00:36:38.480
like ooming like out of memory errors. And I was like, wait, people say oom for that. I didn't

657
00:36:38.480 --> 00:36:43.440
I was the first time I heard that today. You know, that's like saying Earl. You're like, no, that's

658
00:36:43.440 --> 00:36:50.560
just the the Hick that lives down the street. That's not a URL. Yeah. Like the one the one abbreviation

659
00:36:50.560 --> 00:36:56.000
that I have definitely failed on is Jason. I pronounce it like more Jason rather than Jason

660
00:36:56.080 --> 00:37:03.280
because like people will hear Jason and be like, who? What? Yeah. It's Jason. It's Jason. Yeah. Yeah.

661
00:37:03.280 --> 00:37:08.640
I agree. Hey, they should be a part of the spicy question. So like, how do you say this?

662
00:37:08.640 --> 00:37:16.080
Jason or Jason? Is it Jason or Jason? Yeah. Oh, the gif and gif one is like really annoying. I'm

663
00:37:16.080 --> 00:37:21.600
team Jeff, by the way. I don't know. Team Jeff. Oh, you say Jeff. I admire. So this is like one of

664
00:37:21.600 --> 00:37:26.320
those weird ones. I'm like, I admire you for saying gif, but that's fucking peanut butter. So

665
00:37:26.960 --> 00:37:34.560
it's taken it can be peanut butter and a picture format. The peanut butter is named off to

666
00:37:34.560 --> 00:37:41.920
the picture format. They wanted to get in on the hot. Yeah. So my argument for this was like

667
00:37:42.560 --> 00:37:48.640
jiffy or you'll you would probably say giffy. Well, that's a J and just service to like

668
00:37:49.360 --> 00:37:54.400
no, with the like the service to get gifs like in Slack and throw a gif in there, whatever.

669
00:37:54.400 --> 00:37:58.560
Like, you know, I'm talking about giffy. So I would I thought it was supposed to be giffy

670
00:37:59.280 --> 00:38:05.200
and because it's fast like to grab one and like that it all goes together. It's all gif. I

671
00:38:05.200 --> 00:38:09.360
don't know. I don't know if I think they have taken a stance that it is giffy, but I'm like,

672
00:38:09.920 --> 00:38:16.160
why? I thought the creator said it's gif and then everybody. Yeah. I think it's officially he

673
00:38:16.160 --> 00:38:25.760
was meaming though. Okay. Wait, I create a tweet storm. He came. I have seen the video. It's

674
00:38:25.760 --> 00:38:31.440
like hilarious. No, like you remember the apple slide where they like dropped this massive no.

675
00:38:31.760 --> 00:38:38.080
It was like as like as big as their entire screen. It just said no. And so like he came out and he's

676
00:38:38.080 --> 00:38:46.320
like, it's pronounced JIF, not GIF. And it's like it's got like epic music playing and he's like

677
00:38:46.320 --> 00:38:51.200
on stage and it's got this big screen behind him. And he just has that and he does that and he leaves

678
00:38:51.760 --> 00:39:00.240
and he does say anything else. So yeah, that happened much later. I don't know why. Like

679
00:39:00.240 --> 00:39:05.760
everybody used to say gif. Like I've been saying gif since like high school, a middle school. I

680
00:39:05.760 --> 00:39:13.360
don't know. Everybody's saying gif. Not gif. No, I grew up in India. I grew up in India. We did not

681
00:39:13.360 --> 00:39:18.480
have the JIF peanut butter. In fact, I didn't know peanut butter was a thing that time.

682
00:39:19.520 --> 00:39:24.000
Because I was like, that's that's strange. And I don't know. Like that sauce, right?

683
00:39:24.000 --> 00:39:27.200
You have peanut sauce, not peanut butter. You're like, why would you make a butter out of this

684
00:39:27.200 --> 00:39:31.920
delicious sauce? I don't know. No, I just need dropping out like like roasted peanuts.

685
00:39:32.720 --> 00:39:39.200
I'm like, fucking shame, man. Yeah. Yeah. So I was like words like gin are like, like they have

686
00:39:39.200 --> 00:39:46.720
the J song with the GI. And then. So just sound like gins. And then and then skin.

687
00:39:48.880 --> 00:39:54.960
Got to wear your key while you drink some gin. I had gone deeper into this. It basically comes down

688
00:39:55.040 --> 00:40:01.920
to like word roots. So like Latin-based words, GI is always G. But Germanic words is G.

689
00:40:02.720 --> 00:40:06.960
So there's gin, but there's also gift. And so you can take whatever you pick because it's not

690
00:40:06.960 --> 00:40:12.400
a real word. It's such an abbreviation. Okay. That's so funny. This all branched off of MPA versus

691
00:40:12.400 --> 00:40:18.400
SPA. Some people say spa. Some people say SPA. They were like, no one says spa though. I don't

692
00:40:18.400 --> 00:40:23.840
know. No one says spa. Yeah, that's unless Hansen was making a website and they're like,

693
00:40:23.840 --> 00:40:31.200
we specifically used astral to make a pop. That's Fred. Fred. Reach out to Hansen and get

694
00:40:31.200 --> 00:40:38.640
them to make you a commercial about MPAs. Okay. So wait, we're making the site. It's got future

695
00:40:38.640 --> 00:40:43.760
transitions. It's got that we have to we're choosing to go a client side router that intercepts

696
00:40:43.760 --> 00:40:47.840
and does partial rendering just so that the audio can continue place the same reason. Spongebob.

697
00:40:47.920 --> 00:40:54.880
If anyone remembers Jason Miller's article about Jason. Jason Miller. Jason Miller.

698
00:40:56.000 --> 00:40:59.600
Makes him sound like Jason the Rulow.

699
00:41:01.440 --> 00:41:06.320
Makes him sound fancy. Like I'm in Japan. It's like Jason. He's a wait, but wait, you would say

700
00:41:06.320 --> 00:41:11.520
Jason. Son. Jason. Son. Okay. That's a funny to me. Probably no one else. Okay. You could

701
00:41:11.520 --> 00:41:16.960
go back to what you were saying. Jason wrote a article about like, oh, it had a really catchy name.

702
00:41:16.960 --> 00:41:21.680
We'll put it in the show notes, but it's like, I went to use an SPA, went to use an MPA. Here's

703
00:41:21.680 --> 00:41:26.640
five concrete scenarios where you have to use a single page application. Here's a concrete

704
00:41:26.640 --> 00:41:31.760
scenario where you should never use a single page application. And he's he outlines them in there.

705
00:41:31.760 --> 00:41:35.840
And one of them is if you're an audio player that needs to continue playing audio or a video

706
00:41:35.840 --> 00:41:40.880
player that needs to continue playing video during page navigation, during router changes,

707
00:41:41.840 --> 00:41:47.760
then you need a single page application. And so start pod. This podcast player is playing audio

708
00:41:47.760 --> 00:41:52.240
and as you change navigations and you float around the site or you fart around the site as I wanted

709
00:41:52.240 --> 00:41:56.560
to say, but I edited myself for some reason. Anyway, fart around the site. You crack like a duck,

710
00:41:56.560 --> 00:42:00.320
like my wife, she farts and quacks like a duck. That's just a joke for her to listen to later and

711
00:42:00.320 --> 00:42:06.000
think it's funny. Anyway, we want the audio to be continuous. But Robbie's today, he's like,

712
00:42:06.080 --> 00:42:09.840
we can have our cake and eat it too, man. We can go single page application or we can go

713
00:42:10.720 --> 00:42:16.320
multi page application. If they change the page while audio is playing, we'll just keep track

714
00:42:16.320 --> 00:42:22.080
of where they were and resume because it's going to be like near instant navigation. And if we

715
00:42:22.080 --> 00:42:27.760
nearly instantly resume there where they were, what's the loss? Because the game for us is a lot

716
00:42:27.760 --> 00:42:33.040
in terms of SEO. We have some performance gains. There's like page with the scripts required for

717
00:42:33.040 --> 00:42:38.320
the client side router. It's just noise. And so Robbie and I are working on the site as like a,

718
00:42:38.320 --> 00:42:43.120
how do we reduce noise? Client router is noise. But dammit, we need that. I went no more. What do you

719
00:42:43.120 --> 00:42:47.600
think about like trying to like navigate this like difficult scenario? What would you do?

720
00:42:47.600 --> 00:42:56.800
You want to hear my spicy take here? Yes. You say I win. I don't mind being able to be honest.

721
00:42:56.800 --> 00:43:02.640
It's okay. But my spicy take is I think everything is fine as a single page application.

722
00:43:02.720 --> 00:43:09.120
I think client routing is is never a problem. It is spicy. Like I feel like there are bad

723
00:43:09.120 --> 00:43:13.840
implementations. There are bad frameworks that maybe add too much complexity. And then you're like,

724
00:43:13.840 --> 00:43:18.880
hey, this is too annoying. And I'll just do multi page application. But I don't think the the

725
00:43:18.880 --> 00:43:23.280
concept of client side routing is the problem. It's it's just like bad implementations. If you're

726
00:43:23.280 --> 00:43:28.800
on reachable to be spicy take. Yeah. Yeah. No, I think that's so I agree with that. I think,

727
00:43:28.800 --> 00:43:37.600
but it's like it's hard to convince someone either way, I think, but like what we want to do is

728
00:43:37.600 --> 00:43:43.600
try to like use all just like primitives. Like use the web as the platform. Don't add like

729
00:43:44.240 --> 00:43:50.160
extra stuff. So it's like it's more of an exercise in like what can we do here? Not what should we

730
00:43:50.160 --> 00:43:57.280
do? So we're like trying to like show how would you do it if you weren't using a spa? So like I

731
00:43:57.280 --> 00:44:04.960
think like this spa and the spa boundary is getting kind of blurry. Have you seen this library

732
00:44:04.960 --> 00:44:11.680
called like morph DOM? Yes, but that's like so. That's that's like a competitor to H and others,

733
00:44:11.680 --> 00:44:17.600
right? Like hyper hyper renderer. It's oh, no, let me check it out. So morph DOM is a DOM

734
00:44:17.600 --> 00:44:24.160
differ, not a virtual DOM differ. It's a DOM differ. So like I feel like you can have an MPA

735
00:44:24.160 --> 00:44:30.720
in pretty much always, but like when you click on a link, you can run morph DOM to fetch the next

736
00:44:30.720 --> 00:44:38.400
page and then patch your existing page with the new HTML and that kind of gives you the benefits

737
00:44:38.400 --> 00:44:45.120
of an MPA where you can have a bunch of static HTML files, but you can like keep the state of

738
00:44:45.680 --> 00:44:50.720
like audio elements or like video elements or whatever like that because it'll just be like in

739
00:44:50.720 --> 00:44:56.400
this place in my DOM, it's the same exact element. It just doesn't replace it. It just leaves it

740
00:44:56.400 --> 00:45:03.760
as it's because it's diffing it. And so I think something like HTML X for hot wire which I just linked

741
00:45:03.760 --> 00:45:09.360
yeah, which are very similar. Yeah, I would say it's closer to hot wire than HTML X because HTML X

742
00:45:09.360 --> 00:45:14.720
is all about parcels. And I think morph DOM is more about this is the page I'm on. This is the

743
00:45:14.720 --> 00:45:20.240
next page and I'll change what needs to be changed because like usually if you do a full page

744
00:45:20.240 --> 00:45:25.600
navigation, you throw away the last page and you get a new page, but like this is here's the

745
00:45:25.600 --> 00:45:32.320
old page, here's the new page, what changed? Let me update that. And I think that's like a lightweight

746
00:45:32.320 --> 00:45:39.040
like SBA more on top of MPA tooling, which I think would work really well for a lot of these things.

747
00:45:39.040 --> 00:45:44.160
I always talk about these things and like I think Adam, you're like the most close to this that I

748
00:45:44.160 --> 00:45:48.960
know out of anyone who's like worked on standards and stuff. You've written like specifications,

749
00:45:48.960 --> 00:45:53.920
but like I like constantly have like why can't we do something like this on the web and I like

750
00:45:53.920 --> 00:45:58.320
want to like tell everyone about it, but they're like write a proposal and I'm like fine, here's

751
00:45:58.320 --> 00:46:01.600
the blog post. They're like, but that's not a specification. I'm like, I don't know how to write

752
00:46:01.600 --> 00:46:08.080
a specification that's to do weird. That's fine. The blog post is a stellar starter. Writing a

753
00:46:08.080 --> 00:46:15.040
specification is a chore and it's not even really a moment to like really go conceptualize something.

754
00:46:15.040 --> 00:46:20.960
It's a moment to harden something. So your blog post is a perfect scenario where you're like,

755
00:46:20.960 --> 00:46:26.800
here's what I want and here's what the problem is. That's enough to go seed the people that do write

756
00:46:26.800 --> 00:46:30.640
the specs that want to harden things. So think about like a scenarios where some people are good

757
00:46:30.640 --> 00:46:35.440
at ideas and some people are good at abstractions and making like really tight pure functions. That's

758
00:46:35.440 --> 00:46:40.560
the harmony that you're looking for here. You want to propose and articulate a need and they're

759
00:46:40.560 --> 00:46:45.280
going to go write the type to function that fits in slots right into the huge system. Honestly,

760
00:46:45.280 --> 00:46:49.760
it's kind of like designer and developer relationships where you're kind of being a spec designer

761
00:46:50.320 --> 00:46:55.840
and you're awaiting a spec developer. Ooh, that was a nice little pop. Yeah, I want to make my

762
00:46:55.840 --> 00:47:02.720
pop. That's good. Hey, it's good. And it wasn't good. Wait, hold up. Everyone doing it now?

763
00:47:03.440 --> 00:47:10.000
No, I can't hear it at all. I'm like, I think I could hear that sound for a long time. That's a very

764
00:47:10.000 --> 00:47:18.720
pleasing sound. Yeah, it's much better than the twist off cap. Yeah, this is how you know it's fancy.

765
00:47:18.720 --> 00:47:24.240
Yeah, I mean, like the closest I've gotten to like specwalk is like attend open UI meetings.

766
00:47:24.800 --> 00:47:30.000
Sometimes I think like I can brag that there's like two things I've like contributor to like

767
00:47:30.000 --> 00:47:36.320
significantly. And one of them is shit in Chrome. So the first one is interest target. I want to say

768
00:47:36.320 --> 00:47:42.080
holy shit. That was huge. Yeah. So it was already being worked on before I like ever

769
00:47:42.720 --> 00:47:49.280
like did anything. Like I met Yuna last year at React Miami. I was working on hover cards

770
00:47:49.280 --> 00:47:54.160
for Facebook back then and she like, oh, we're working on interest target, which is similar.

771
00:47:54.160 --> 00:47:57.520
And then I came in and then I attended many meetings and I'm like, this is how it should work.

772
00:47:57.520 --> 00:48:03.680
And like, I think the specification is like about 80 to 90% exactly what I did.

773
00:48:04.160 --> 00:48:10.560
So nice. I feel pretty good about that one. And then I didn't write specs. I didn't write.

774
00:48:10.560 --> 00:48:16.160
I did not write a single word of that specification. You're the muse. You're Yoko Ono.

775
00:48:16.160 --> 00:48:21.280
Naman, here you go. Here's the title for the episode. Naman Kowell is Yoko Ono for standards.

776
00:48:22.160 --> 00:48:31.440
I know everyone hits Yoko on. Just like, oh, I don't hate her. I just, I'm like ambivalent.

777
00:48:31.440 --> 00:48:37.760
I don't know what what her deal is. But yes, ambivalently don't want to be her. Yep. Probably not.

778
00:48:39.680 --> 00:48:43.600
I'll be John London though. That's fine. No, but I didn't write it. So it can't be John London.

779
00:48:43.600 --> 00:48:48.960
Sorry. And the other one, which is still being like worked on is called Link Delegation.

780
00:48:48.960 --> 00:48:54.000
I don't know. Is this where you want a card to be clickable? But yes, that oh my goodness.

781
00:48:54.000 --> 00:49:00.160
This one's okay. I'm about to go to T-pack. Shopify wants this. I want this. My website has it

782
00:49:00.160 --> 00:49:03.920
all over the place. It's an annoying piece of JavaScript that I want to rip out.

783
00:49:03.920 --> 00:49:08.720
What are we talking about? I will let you present. This is a phenomenal idea.

784
00:49:08.720 --> 00:49:13.200
I am a co-author of that one. I did very good. Do you tell everyone what this is?

785
00:49:13.920 --> 00:49:18.720
You want a whole card to be clickable, but the card has other buttons or links inside of it.

786
00:49:18.720 --> 00:49:25.600
So you have nested clickable things, which means that it's not valid HTML and it's not accessible

787
00:49:25.600 --> 00:49:30.320
and everybody hates you. But you can make it work if you want, but like everyone will hate you

788
00:49:30.320 --> 00:49:36.320
and it's not accessible. And so there are all these hacks that people do, which are fine if you can

789
00:49:36.320 --> 00:49:41.440
like achieve them, but they're not flexible enough that you can use them wherever.

790
00:49:41.440 --> 00:49:46.480
So like the best hack I've seen is that you make the outermost thing like the card itself

791
00:49:46.480 --> 00:49:52.560
position relative and then everything else inside of it is position static. And then your primary

792
00:49:52.640 --> 00:49:59.040
link. So say like there's a title inside of the card. That title has like a child inside of it,

793
00:49:59.040 --> 00:50:05.440
which is position absolute of just like zero, zero, zero, zero. And so it expands to fill the card.

794
00:50:05.440 --> 00:50:09.760
And so no matter where you're clicking on the card, you're clicking on the link actually,

795
00:50:09.760 --> 00:50:15.600
like the title bar. That's like one solution that has been around for like 10, 15 years.

796
00:50:15.600 --> 00:50:21.280
I think I saw an article on CSS tricks showing off this trick. So this is a really old trick.

797
00:50:21.280 --> 00:50:27.040
It works, but like what if your card needs like position relative between the card and the actual

798
00:50:27.040 --> 00:50:33.120
thing? Now you're like screwed. So nothing else like scales properly. So like when I was working on

799
00:50:33.120 --> 00:50:38.560
components, the first version of our like link component, I actually just allowed you to like nest

800
00:50:38.560 --> 00:50:43.840
links. I like discovered that if you put a anchor tag inside of an anchor tag, like a browser will

801
00:50:43.840 --> 00:50:50.480
literally break, but you can wrap the. You can put a button inside of

802
00:50:50.960 --> 00:50:56.880
actually we weren't using buttons and we was using divs for IE reasons, but I think you can put

803
00:50:56.880 --> 00:51:01.200
buttons inside of buttons, but you cannot put links inside of links. But I found out that you can

804
00:51:01.200 --> 00:51:05.840
wrap the nested link inside an object tag and then you can make it all work. And I was very proud

805
00:51:05.840 --> 00:51:10.960
of myself and I made it all work, even if you nested links and stuff. And then like two months later,

806
00:51:10.960 --> 00:51:14.880
the accessibility team reaches out to me and I'm like, what have you done? Nothing is accessible.

807
00:51:14.880 --> 00:51:20.640
It's horrible. So then there's our link role in numbers, linting that's like never do this.

808
00:51:22.320 --> 00:51:26.960
Yeah, it's like the browser literally won't let you do like it will literally break.

809
00:51:26.960 --> 00:51:32.640
It will close the outer link before the inner link starts. It breaks in really horrible ways

810
00:51:32.640 --> 00:51:38.000
unless you put that weird object tag in the middle. And then like lots of months of like

811
00:51:38.960 --> 00:51:44.320
trying different things. I tried like the index tricks. I tried the absolute position tricks.

812
00:51:44.320 --> 00:51:50.960
And then the final solution, which is the spec like the proposal on Open UI now is there is no

813
00:51:50.960 --> 00:51:55.200
nested links. So you have a card, which is just a div. And then you just have a bunch of links

814
00:51:55.200 --> 00:52:00.000
inside of it. And then on the div, you're like, Hey, if somebody clicks on you, just forward

815
00:52:00.000 --> 00:52:06.560
you click to that one. So there's a primary link on the container. And that's all it does. And

816
00:52:06.560 --> 00:52:14.800
that is completely accessible because for screen reader users, the card itself is just a div.

817
00:52:15.280 --> 00:52:20.800
Like they don't have to think about it. It's just a way to be able to click without

818
00:52:20.800 --> 00:52:24.160
being able to know where you're clicking. You can just like click wherever and just forward

819
00:52:24.160 --> 00:52:29.280
you click to the correct place. But that's all it does. And that's pretty much the specification.

820
00:52:29.280 --> 00:52:32.880
It's pretty simple. That's why I was willing to write it because it's so short.

821
00:52:32.880 --> 00:52:38.160
That's not true. Yeah. Very cool though. Definitely solves a problem that I feel like a lot of

822
00:52:38.160 --> 00:52:46.720
people have had. But I do want to wear 58 minutes in now. And the title of this episode is rust

823
00:52:46.720 --> 00:52:53.440
is overrated. And we haven't talked about Russ. How do you feel about Russ? Okay. So I I wrote a

824
00:52:53.440 --> 00:52:58.800
blog post. I don't know. Many years ago now where I said Swift is a more convenient trust.

825
00:52:58.800 --> 00:53:03.680
But I don't hate Russ. Like I think rust is fine. I think it's pretty good for certain things.

826
00:53:03.680 --> 00:53:07.680
There's like this like spectrum of languages where there's like super high level

827
00:53:07.680 --> 00:53:12.720
convenient languages like JavaScript and Python. And then there's like assembly on the other end.

828
00:53:12.720 --> 00:53:17.600
And nobody writes assembly with lots of people will write CC++ and now they're starting to write

829
00:53:17.600 --> 00:53:24.160
rust. It's pretty close to like the C++ and C end of things. There's like this big gap in the

830
00:53:24.160 --> 00:53:29.760
middle. And it's kind of weird that whenever we want something faster than JavaScript,

831
00:53:29.760 --> 00:53:35.040
we jump all the way to the other extreme. And there's like examples of why you shouldn't do that,

832
00:53:35.040 --> 00:53:40.960
which is go. Like yes, build is go. And like TypeScript is now being rewritten and go. So like

833
00:53:40.960 --> 00:53:46.080
go is a pretty good language for all of this stuff as well. And I think go is like fine and good.

834
00:53:46.080 --> 00:53:51.440
And like useful for lots of things. There's also OCaml coming back to flow, which was always written

835
00:53:51.440 --> 00:53:58.080
in an OCaml, which is why it was like faster. But there's like a problem with both OCaml and go,

836
00:53:58.080 --> 00:54:03.920
which is that they're both garbage collected languages. So there are certain scenarios where you

837
00:54:03.920 --> 00:54:08.160
were like, I don't want garbage collection. I want like predictable performance. I don't

838
00:54:08.160 --> 00:54:14.800
I don't know. And also like all the boundaries. Ah, it's control. It's like you want control.

839
00:54:14.800 --> 00:54:19.280
Yes. Or you're like look, it's control. And I will orchestrate. You're just like, I'm an

840
00:54:19.280 --> 00:54:24.480
orchestrator. I don't want automated things. I would like to tell you when to release and when to

841
00:54:24.480 --> 00:54:31.200
grab. I don't want to tell you, but I also don't want that overhead. So like the example would be

842
00:54:31.200 --> 00:54:36.800
technically tooling is not a great example for this. Like bundlers can have GC pauses and it's

843
00:54:36.800 --> 00:54:42.400
probably fine. But like there are scenarios like when you're like building UIs and stuff. This is like

844
00:54:42.400 --> 00:54:48.480
one of the reasons Apple is like super anti garbage collection all the time is if you're scrolling

845
00:54:48.480 --> 00:54:53.040
and it GC pauses while it's scrolling and you see a cup that's like the worst thing ever.

846
00:54:53.040 --> 00:54:58.400
So the OS just like defer GC though. You're like, geez, it's not a good time. You know,

847
00:54:58.400 --> 00:55:03.840
don't do it now. Sure. Like there are there are solutions. Like you can like work around it. There

848
00:55:03.840 --> 00:55:09.200
are also fancy GCs. I don't know. There's like tracing GC and other. I don't know. But there are

849
00:55:09.200 --> 00:55:14.000
kinds of GC and somewhat better than others. But like basically like if you have like virtualized

850
00:55:14.000 --> 00:55:18.480
lists and you're doing lots of work wireless scrolling, you can't just be like, I'm just not going

851
00:55:18.480 --> 00:55:24.240
to collect any garbage till I'm done scrolling because like you might do like 1000 cells before

852
00:55:24.240 --> 00:55:30.560
you ever stop scrolling. And so that's like one of the reasons like Apple says at least why they don't

853
00:55:30.560 --> 00:55:38.240
want GC. And so there are like valid reasons outside of like just you know iOS for not wanting GC.

854
00:55:38.720 --> 00:55:44.720
And that's why people go to rust because like go is like really good and really fast. But one,

855
00:55:44.720 --> 00:55:50.240
it's like intentionally a simple kind of dumb language, which some people love and some people

856
00:55:50.240 --> 00:55:56.160
hate. But to do it's definitely GC. And so if you don't want that like the next best thing for most

857
00:55:56.160 --> 00:56:02.640
people is rust. But like rust is like not all the way to CNC plus plus where like manually allocating

858
00:56:02.720 --> 00:56:08.480
and deallocating everywhere. But you still have to really, really think about memory all the time.

859
00:56:08.480 --> 00:56:12.720
So it's in your face, but you don't actually have to touch it. You have to touch it. But like you

860
00:56:12.720 --> 00:56:18.480
can't make a mistake. It'll make you do the right thing, but you have to do it. And then in rust,

861
00:56:18.480 --> 00:56:25.280
there's this like wrapper type called RC. There's also ARC, which stands for reference counting,

862
00:56:26.160 --> 00:56:30.640
which is literally a counter. So like every time you like make something, you just like bump

863
00:56:30.640 --> 00:56:34.400
its number like, hey, three things are looking at it. Four things are looking at it. And then when

864
00:56:34.400 --> 00:56:38.480
they stop looking at it, they're like, okay, back down to three, back down to two. And then whenever

865
00:56:38.480 --> 00:56:44.880
it goes down to zero, it just cleans itself up. So rust is manual by default, but you can opt into

866
00:56:44.880 --> 00:56:48.960
reference counting. And then it's very explicit when you're doing reference counting when you have to

867
00:56:48.960 --> 00:56:54.400
like, I don't remember the function calls, but you have to like explicitly call like bump.

868
00:56:54.400 --> 00:56:58.400
It's like, I'm using it now. Like all it's like called clone or something. It's like a dirty

869
00:56:58.480 --> 00:57:05.520
check. And anyway, whatever. Yes. And I think like 99% of things that we're doing with rust are fine

870
00:57:05.520 --> 00:57:09.920
with that. Like you do have slightly more overhead because you're adding and subtracting numbers

871
00:57:09.920 --> 00:57:14.240
all over the place, but adding and subtracting numbers are actually pretty fast. So it's fine.

872
00:57:15.120 --> 00:57:21.840
And so Swift is just like RC by default, but you can opt into the rusts not RC if you want. And I

873
00:57:21.840 --> 00:57:26.000
think like for most people, that's the better default. Like you don't want to constantly think about

874
00:57:26.000 --> 00:57:32.320
memory all the time. You would rather have like the GC type of developer experience. And then when

875
00:57:32.320 --> 00:57:38.080
you need like manual control, you can just like do some annoying things and it works out. And that's

876
00:57:38.080 --> 00:57:43.600
that's what Swift is for the most part. That was like my whole take is like, I think Swift is better

877
00:57:43.600 --> 00:57:48.000
because you're have to think about memory most of the time. Okay. So you can't opt out of it in

878
00:57:48.000 --> 00:57:52.800
rust and what you're saying, but it's like Swift is very similar except you can just use it when

879
00:57:53.360 --> 00:57:58.160
you work. Yeah, it's it's just like what's the default? So in rust, the manual version is the

880
00:57:58.160 --> 00:58:04.080
default. So if you opt into RC, which is more convenient, you have to write a whole bunch of words

881
00:58:04.880 --> 00:58:09.520
to be like, Oh, I'm making I'm bumping the count now. I'm like done with it. Like you don't have to

882
00:58:09.520 --> 00:58:14.480
clean up, but you still have to be like, I'm making a clone now. This is another listener to this

883
00:58:14.480 --> 00:58:19.280
or like another thing is looking at this reference. And in Swift, that is the default. So you don't

884
00:58:19.280 --> 00:58:23.760
have to think about it if you're just doing that all the time. But it's like if something is slow

885
00:58:23.760 --> 00:58:27.760
and you're like, Hey, reference counting is not good enough for this or I never want this to be

886
00:58:27.760 --> 00:58:32.640
cloned ever because this like a file handle or something, then you have to write extra lines

887
00:58:32.640 --> 00:58:38.480
in in Swift. So there's a trade off, but I think the Swift trade off makes more sense because 90%

888
00:58:38.480 --> 00:58:42.880
of the times I just want the convenience of being able to like copy things and like pass them around

889
00:58:42.880 --> 00:58:48.640
like references. And then only 10% of the times I want to be like, Hey, hey, don't copy this ever.

890
00:58:48.640 --> 00:58:52.960
This is a thing that should never be cloned. This is why I like Naman talking about this because

891
00:58:52.960 --> 00:59:00.800
like for me, I'm motivated by computers should be computers and humans should not be computers.

892
00:59:01.360 --> 00:59:08.640
So there's like a couple. It sounds so simple, but it's like, I don't want to put my brain

893
00:59:08.640 --> 00:59:14.720
into a scenario where I need to act more like a computer. I'm like, no, this is why we're in the

894
00:59:14.720 --> 00:59:22.640
year of 2020 fucking five, where I don't have to be a computer. In the 70s, you had to be a computer.

895
00:59:22.640 --> 00:59:29.040
It made sense. You needed to micromanage and like orchestrate all of the things. But in the future,

896
00:59:30.240 --> 00:59:34.320
you shouldn't need to. And so whenever I like hear people talking about rust, I'm like, holy

897
00:59:34.320 --> 00:59:39.920
shit, this has the worst of all of my worlds, which is it's like for Bose, I have to hold the hand

898
00:59:40.640 --> 00:59:45.280
of it. And there's like all these little memory. Oh my goodness. I'm like, this is not an advanced

899
00:59:45.280 --> 00:59:51.440
language. This is a language asking me to do a shitload of work. And so when I hear Naman talk about

900
00:59:51.440 --> 00:59:57.360
Swift, I'm like, ah, Swift sounds like it's in a sweet spot where not only am I in a minimal

901
00:59:57.360 --> 01:00:04.000
syntactic sugar scenario where like I don't have to type a shitload of curly braces and a lot of

902
01:00:04.000 --> 01:00:10.560
semi-colons and a lot of open noise. To me, that's noise in an author as a human reading code.

903
01:00:11.120 --> 01:00:17.520
parentheses, curly brackets and semi-colons are noise. That's computer talk. That's computer

904
01:00:17.520 --> 01:00:22.000
ending and beginning different things. Team curly braces over here.

905
01:00:22.960 --> 01:00:27.040
Team, hey, yeah, curly brace said like, and I know it feels good. Like it feels good to put a

906
01:00:27.040 --> 01:00:33.840
semi-colon somewhere. But at the same time, like over time, it feels better to express and not

907
01:00:33.840 --> 01:00:39.440
syntactically finesse. Ooh, it rhymes. But that's also, it's like, I don't want to micromanage my

908
01:00:39.440 --> 01:00:44.560
parentheses and my curly brackets and my semi-colons. That's noise to my purpose. The purpose is

909
01:00:44.560 --> 01:00:48.880
I want to get some shit done. That's why I haven't gotten into rust. Rust, to me, looks like a

910
01:00:48.880 --> 01:00:53.840
place where I'm going to go spend time not getting shit done. I'm going to spend time articulating and

911
01:00:53.840 --> 01:00:59.920
finessing in a very finite way, which is probably satisfying in the same way typescript is satisfying.

912
01:00:59.920 --> 01:01:06.880
However, this Swift scenario sounds to me where I can, by default, get a preferred scenario.

913
01:01:07.680 --> 01:01:12.720
However, also write minimally because I'm a human and I don't want to write twice as many

914
01:01:12.720 --> 01:01:17.200
characters as needed to express my intents. Anyway, so it's like, that's where I'm coming from as an

915
01:01:17.200 --> 01:01:22.480
author of code these days and for the past seven years or so. It's like, I want to write as little

916
01:01:22.480 --> 01:01:27.840
as possible as close to English as possible and micromanage as little as possible because I just

917
01:01:27.840 --> 01:01:32.720
want to express intent. And so Swift, to me, has always been atticing that way. But yeah, go ahead.

918
01:01:32.720 --> 01:01:37.840
Yeah. Sorry. I just want to say, I think this is a thing we've discussed several times. A lot of

919
01:01:37.840 --> 01:01:44.720
people don't want to get things done. You forget that people want hard engineering problems. They

920
01:01:44.720 --> 01:01:50.160
want to hand roll the rust thing for two years because it's fun, not because they want to get stuff

921
01:01:50.720 --> 01:01:55.440
done. That's what a lot of people love. I'm a little bit like that. I won't lie.

922
01:01:55.440 --> 01:02:01.200
There's something I've been doing. I've been using the Codex CLI to write a

923
01:02:01.200 --> 01:02:08.160
JavaScript parser in Swift. And so far, I'm done with the tokenizer. And I tried this last year

924
01:02:08.160 --> 01:02:13.280
and it was like completely incapable of doing it. Like none of the models could do it. And this

925
01:02:13.280 --> 01:02:18.640
year, they can do it. So Codex is tight this year. Yeah. There's this like thing that I've been

926
01:02:18.640 --> 01:02:22.640
like wanting somebody to make. And nobody will make it because I don't know how to like

927
01:02:23.600 --> 01:02:30.000
publicize it enough. But basically, I had this idea like maybe a year and a half ago, a year ago,

928
01:02:30.000 --> 01:02:36.640
where prettier put out this like big blog post about how to format ternary expressions.

929
01:02:36.640 --> 01:02:41.520
I don't know if you saw that. And it was like a mini controversy on Twitter because

930
01:02:41.520 --> 01:02:47.920
everybody wants things to be formatted differently. And basically, I saw that and I like took part in

931
01:02:47.920 --> 01:02:52.320
it. I'm like, I want things to look like this. And then like two days later, I'm like, actually,

932
01:02:52.320 --> 01:02:57.840
no, I want them to look like this. And then essentially, my final thing was like, why do we have

933
01:02:57.840 --> 01:03:02.160
ternaries? They're so hard to read. We should just have if expressions. But we can't have them

934
01:03:02.160 --> 01:03:07.360
because like JavaScript, you can't have breaking changes in JavaScript. And then I was like,

935
01:03:07.360 --> 01:03:12.640
TypeScript is a JavaScript superset. So is flow for the most part. There's like small exceptions.

936
01:03:12.640 --> 01:03:17.360
But like for the most part, there's supersets, which means like if JavaScript made mistakes,

937
01:03:17.360 --> 01:03:21.680
we just have to live with them. But there are a whole bunch of like compiled JavaScript languages

938
01:03:21.680 --> 01:03:27.440
outside of these two where they don't look like JavaScript. You're all like, you get like these

939
01:03:27.440 --> 01:03:32.560
like list languages and you get these languages that look like Haskell or you're like, you get

940
01:03:32.560 --> 01:03:36.640
Elm. And then they don't look like JavaScript. They don't work like JavaScript. They're just like

941
01:03:36.640 --> 01:03:43.200
completely foreign. And I'm like, what if you just like made TypeScript? But you just like

942
01:03:43.280 --> 01:03:47.520
fixed things like TypeScript with breaking changes. And I'm like, that would be great because like

943
01:03:47.520 --> 01:03:52.640
and then you could just like. CoffeeScript went too far. CoffeeScript was like, I loved

944
01:03:52.640 --> 01:03:56.720
CoffeeScript as you can tell from like, I want to write very little and give very far and express

945
01:03:56.720 --> 01:04:02.240
myself in succinct ways. Nothing comes close to CoffeeScript. I hated CoffeeScript.

946
01:04:03.840 --> 01:04:08.320
Most people hated it. I know. And so there's one specific reason I hated it more than anything.

947
01:04:08.320 --> 01:04:13.520
It didn't make a decision of how you call functions. You could call do function name. You

948
01:04:13.520 --> 01:04:19.040
could call function name parentheses or you could do function name space arguments. And I'm like,

949
01:04:19.040 --> 01:04:25.600
just like, I loved it. I hated that. That alone was the entire reason I could not tolerate

950
01:04:25.600 --> 01:04:30.400
CoffeeScript. But the space with the parameters that was a little funky. I'm going to admit that

951
01:04:30.400 --> 01:04:36.080
went a little too far. But okay. Anyway, you're right. You're right. So I made this website. It's still

952
01:04:36.080 --> 01:04:41.440
live. It's called lightningScript.dev. When I'm like, please, someone make this language. And I

953
01:04:41.440 --> 01:04:46.160
just like put it out there like more than a year ago. And nobody did it. And so I'm hoping that

954
01:04:46.160 --> 01:04:50.960
like this codex will one day make this language. We'll see. I don't have time to actually work on

955
01:04:50.960 --> 01:04:56.320
it myself. But if an AI can do it, then I'm looking forward to a language like this existing.

956
01:04:57.200 --> 01:05:01.680
Yeah. Yeah. I was going to say I wonder like how far away are we from you just describing the

957
01:05:01.680 --> 01:05:06.080
language you want to an AI? And you can write whatever you want. And it'll just work.

958
01:05:06.080 --> 01:05:10.640
It's probably closer than we think. It's pretty good at translation right now.

959
01:05:10.640 --> 01:05:17.360
Yeah. The new ontropic model announcement post has a mention of they made it make a new language.

960
01:05:18.160 --> 01:05:24.080
So really, I've been thinking about a next gen CSS language for many years. Chris Coier and I

961
01:05:24.080 --> 01:05:28.880
have talked about it multiple times. Like what would tell me more? What would the next version be?

962
01:05:28.880 --> 01:05:35.760
Well, that's kind of the problem is I can articulate questions problems. But CSS is so nimble

963
01:05:35.760 --> 01:05:41.920
and so capable at the same time. It's a very difficult language to dethrone. And so anytime I kind of

964
01:05:41.920 --> 01:05:48.080
get into the weeds of like dethroning it, it's more about property value, succinct solutions,

965
01:05:48.080 --> 01:05:53.280
and like corrections as opposed to structural corrections. But anyway, sorry, I didn't mean to

966
01:05:53.360 --> 01:05:59.760
derail. No, it's completely fine. I can always note out about CSS. You want to hear a tiny,

967
01:05:59.760 --> 01:06:06.320
mini hot take on CSS syntax. Yeah, absolutely. Container queries should not be at rules.

968
01:06:06.320 --> 01:06:11.440
They should be pseudo classes. Have you seen the proposal for media queries and container

969
01:06:11.440 --> 01:06:16.160
queries to be pseudo classes as function, pseudo functions? I've seen the function version.

970
01:06:16.160 --> 01:06:21.840
Yeah, yes, yes, yes, yes. Yeah, it's kind of ridiculous. Yeah, it's a little ridiculous that

971
01:06:21.840 --> 01:06:26.080
we have to at rule those. They should be something you can attach to the selector itself.

972
01:06:26.080 --> 01:06:34.240
Dude, 100%. Yeah, I like it in the value. So this is the one thing where I went against what CSS does

973
01:06:35.040 --> 01:06:40.640
and then CSS caught up to stylics, which is the API of stylics is you don't write

974
01:06:40.640 --> 01:06:45.520
base styles and then like mobile styles. You just write styles. And then your values can be

975
01:06:45.520 --> 01:06:50.960
adaptive. So like your width can be different values for like different media queries or whatever.

976
01:06:50.960 --> 01:06:55.760
And that was like the weirdest thing to everyone who was using stylics and those good reasons

977
01:06:55.760 --> 01:07:02.480
behind it, but I won't go into it right now. And ever since CSS shipped custom functions and like if

978
01:07:03.600 --> 01:07:11.120
functions, now you have that in CSS. And I think it's a way better than like being like, hey,

979
01:07:11.120 --> 01:07:14.960
these are like my normal styles and these are my like, if you're doing responsive design,

980
01:07:14.960 --> 01:07:18.320
I don't think you should be writing your styles like that. You should always be thinking of

981
01:07:18.320 --> 01:07:24.720
all screen sizes. Yeah, we talked to a guy that builds apps for flip phones. And he's like,

982
01:07:24.720 --> 01:07:30.880
no one thinks about like 160 pixels being your screen size or whatever it is episode. Yeah.

983
01:07:32.160 --> 01:07:37.840
Damn. I don't even think about that. I don't know. Yeah. Yeah. But like it's reaching everyone

984
01:07:37.840 --> 01:07:43.120
and we're reaching just a partial amount. Yeah. Yeah. Yeah. It's, I mean, it's more than you think.

985
01:07:43.120 --> 01:07:48.000
But yeah, we're pretty over time. So before we end, what would you like to plug?

986
01:07:48.000 --> 01:07:52.640
I guess I'll plug like solenoid, which is not something you should. Yeah, you will.

987
01:07:52.640 --> 01:08:00.160
I give a talk and react summit earlier, like I think in June. And solenoid is just like this idea

988
01:08:00.160 --> 01:08:06.080
I had for like more than a year. I didn't have the idea for you. I developed this idea over

989
01:08:06.080 --> 01:08:11.040
year. And it was just like all these different things happening. HTMLX was happening. There was like

990
01:08:11.040 --> 01:08:15.200
all these new like so aside rendering things and like react server components was happening.

991
01:08:15.200 --> 01:08:19.520
Astro was happening. I was looking at all of this and I was looking at solid JS and I was looking

992
01:08:19.520 --> 01:08:25.200
at like Ryan Karni also stream. And I was just taking it on in and I had this like weird idea.

993
01:08:25.200 --> 01:08:30.720
I'm like, what if you did this? And so I'd like made solenoid for that. And that's all it is. It's

994
01:08:30.720 --> 01:08:36.000
just like this like experiment where it's like a radically different way of rendering apps.

995
01:08:36.080 --> 01:08:41.120
The closest thing to it is quick JS. But if I was to give you the elevator pitch,

996
01:08:41.120 --> 01:08:49.440
it's the idea is that it is interactive as the HTML streams in. So if you do like

997
01:08:49.440 --> 01:08:54.320
server side rendering, like async server side rendering where you have like suspense boundaries

998
01:08:54.320 --> 01:08:59.120
and those suspense boundaries get plugged in later or whatever. And you're streaming in your HTML

999
01:08:59.120 --> 01:09:03.280
and say you have like a really slow internet connection where you get like a few lines of HTML

1000
01:09:03.280 --> 01:09:08.960
at a time. Even if you've just gotten like the first like 8 10 lines of your HTML, it's already

1001
01:09:08.960 --> 01:09:14.000
interactive. And then like the things that come in later just catch up to your client state when

1002
01:09:14.000 --> 01:09:19.360
they come in. And that sounds awesome. I don't know if that's a good idea because that your HTML

1003
01:09:19.360 --> 01:09:23.360
is bigger and your JavaScript is much smaller. I haven't built anything big with it. The framework

1004
01:09:23.360 --> 01:09:28.080
is not even complete. But I think it's like a cool idea. So I would like love just discussions about

1005
01:09:28.080 --> 01:09:32.320
it. For sure. Very cool. All right. Yeah. Thanks for coming on. Thanks everyone for listening. If

1006
01:09:32.320 --> 01:09:35.360
you liked it, please subscribe. Leave us some ratings and reviews. We appreciate it. And we

1007
01:09:35.360 --> 01:09:41.680
will catch you next time. You've been watching whiskey web and whatnot recorded in front of a live

1008
01:09:41.680 --> 01:09:47.920
studio audience. What the fuck are you talking about, Chuck? Enjoyed the show? Subscribe. You know,

1009
01:09:47.920 --> 01:09:53.520
people don't pay attention to these right? Head to whiskey.fun for merchant to join our

1010
01:09:53.520 --> 01:09:59.680
discord server. I'm serious. Like 2% of people who actually click these links. And don't forget to

1011
01:09:59.680 --> 01:10:04.480
leave us a five star review and tell your friends about the show. All right, dude. I'm out of here.

1012
01:10:05.280 --> 01:10:10.240
Still got it.
