1
00:00:02,040 --> 00:00:08,160
Testing Secure your Elixir apps 
with Paraxial IO. 

2
00:00:08,360 --> 00:00:11,400
From code analysis and bot 
defense to dependency checks, 

3
00:00:11,400 --> 00:00:14,640
they've got you covered. 
Elixir first design with GitHub 

4
00:00:14,640 --> 00:00:17,040
integration. 
Elevate your security at 

5
00:00:17,040 --> 00:00:22,200
paraxial dot IO. 
Hi, I'm Jacob. 

6
00:00:22,200 --> 00:00:25,480
My YouTube channel and podcast 
reach thousands of engaged 

7
00:00:25,480 --> 00:00:28,520
Elixir developers every month. 
If you're looking to promote 

8
00:00:28,520 --> 00:00:32,280
your developer tools, services, 
or job opportunities to a 

9
00:00:32,280 --> 00:00:34,840
focused audience of Elixir 
professionals, head to 

10
00:00:34,840 --> 00:00:38,440
elixirmentor.com and let's 
discuss sponsorship options. 

11
00:00:42,640 --> 00:00:45,240
What's up? 
I'm Jacob Blitzo, your Elixir 

12
00:00:45,240 --> 00:00:48,320
mentor, and welcome to another 
exciting episode of the Elixir 

13
00:00:48,320 --> 00:00:50,480
Mentor Podcast. 
This is where we discuss 

14
00:00:50,480 --> 00:00:53,000
everything related to Elixir, 
from interviews with 

15
00:00:53,000 --> 00:00:55,520
enthusiasts, pioneers in the 
community, to innovative 

16
00:00:55,520 --> 00:00:57,880
projects and library shaping. 
Elixir's feature. 

17
00:00:58,240 --> 00:01:02,280
Today, I'm excited to welcome 
Miguel Camba, a senior engineer 

18
00:01:02,280 --> 00:01:05,720
at Dockyard and key contributor 
to the Beacon CMS project. 

19
00:01:06,360 --> 00:01:09,080
Welcome to the show, Miguel. 
Thank you so much for being 

20
00:01:09,080 --> 00:01:11,400
here. 
Do you want to just go ahead and

21
00:01:11,680 --> 00:01:13,560
give a brief introduction of 
yourself? 

22
00:01:14,360 --> 00:01:18,040
Sure. 
Well, Miguel, as you said, I 

23
00:01:19,600 --> 00:01:22,640
seen the developer doctor. 
I've been a doctor for the last 

24
00:01:23,160 --> 00:01:27,560
six years. 
I think it's quite a long time. 

25
00:01:27,560 --> 00:01:33,800
I live in Spain, northwest 
Spain, and yeah, even I feel 

26
00:01:33,800 --> 00:01:40,840
like a intruser to intruders to 
some extent because I don't do 

27
00:01:40,840 --> 00:01:44,560
elixir all that often. 
I do it personally on Fridays 

28
00:01:44,560 --> 00:01:50,560
mostly because I on my 
day-to-day I do more JavaScript 

29
00:01:50,560 --> 00:01:52,120
than I do at Elixir by a third 
margin. 

30
00:01:52,160 --> 00:01:53,960
It's not. 
It's not to be close, but I've 

31
00:01:53,960 --> 00:01:58,080
been doing Elixir for a long, 
long time even though it's not 

32
00:01:58,240 --> 00:02:02,040
my primary language. 
I started with Elixir in memory 

33
00:02:02,040 --> 00:02:04,960
serves very early as soon as it 
was announced. 

34
00:02:05,160 --> 00:02:09,199
Probably because I do remember 
that was doing Ruby at the time 

35
00:02:09,199 --> 00:02:15,800
I started my career as soon as I
exit college doing Ruby and I 

36
00:02:15,800 --> 00:02:21,280
was kind of very into the Ruby 
community and I knew many of the

37
00:02:21,400 --> 00:02:23,280
core contributors, including 
Just Say. 

38
00:02:24,480 --> 00:02:31,360
So when Just Say published the 
idea of Elixir, I was interested

39
00:02:31,800 --> 00:02:34,240
for two reasons. 
First of all, I knew him and I 

40
00:02:34,240 --> 00:02:39,920
knew the kind of things the OR 
the kind of premises Elixir was 

41
00:02:39,920 --> 00:02:45,360
based upon, like being, you 
know, nice to read performance, 

42
00:02:46,480 --> 00:02:49,920
multi threaded. 
Even multi threaded is not 

43
00:02:49,920 --> 00:02:52,440
really descriptive enough 
because it's not really they're 

44
00:02:52,440 --> 00:02:58,160
not really threaded. 
The processes that took my that 

45
00:02:58,240 --> 00:03:04,120
took my eye. 
And then it just happens that in

46
00:03:04,120 --> 00:03:10,920
my College, in university, I 
happen to, it happens to be or 

47
00:03:10,920 --> 00:03:16,800
it happens to have a pretty 
strong airline department. 

48
00:03:17,240 --> 00:03:18,520
It did. 
It was by chance. 

49
00:03:18,520 --> 00:03:20,920
And in fact, I wasn't 
particularly involved in Erlang 

50
00:03:21,480 --> 00:03:24,720
while I was studying there, but 
I knew that they were doing cool

51
00:03:24,720 --> 00:03:25,920
things in Erlang. 
They do. 

52
00:03:26,000 --> 00:03:30,960
They were working on a video 
distribution, video distribution

53
00:03:30,960 --> 00:03:34,760
platform in Erlang. 
So in some research team and I 

54
00:03:34,760 --> 00:03:37,920
knew of Erlang, which is 
something most people didn't at 

55
00:03:37,920 --> 00:03:40,080
the time. 
And the fact that this thing was

56
00:03:40,080 --> 00:03:44,680
supposed to be like a better 
Erlang or or at least a more a 

57
00:03:44,680 --> 00:03:49,520
more recent Erlang. 
Exactly that took my because I 

58
00:03:49,520 --> 00:03:52,480
heard a lot of the things about 
Erlang even though I didn't use 

59
00:03:52,480 --> 00:03:55,760
it myself while in while 
studying and lucky. 

60
00:03:55,760 --> 00:03:58,920
Because when I was in college I 
was only able to learn Java. 

61
00:03:59,720 --> 00:04:05,360
Well, I did learn Java, and I 
remember well, there was a few, 

62
00:04:05,360 --> 00:04:09,360
there were a few odd tacks in 
among my professors because 

63
00:04:09,360 --> 00:04:12,000
there were some who were very 
into Erlang, even though there 

64
00:04:12,000 --> 00:04:15,040
wasn't one of the subjects at 
all, and also Ocaml. 

65
00:04:15,480 --> 00:04:19,720
So actually my first functional 
programming language was Ocaml, 

66
00:04:20,000 --> 00:04:22,320
even though it was like, I mean,
just deep in my toes. 

67
00:04:23,360 --> 00:04:28,360
But I did do some small amount 
of functional programming while 

68
00:04:28,360 --> 00:04:32,320
studying. 
And back to Elixir, when I saw 

69
00:04:32,640 --> 00:04:35,440
the announcement, I, as soon as 
I could, I play with it, you 

70
00:04:35,440 --> 00:04:37,360
know, open the puzzle, run some 
commands. 

71
00:04:37,840 --> 00:04:42,320
And I remember maybe a few weeks
or months into the release, 

72
00:04:42,640 --> 00:04:47,000
someone published what I think 
was the first framework to start

73
00:04:47,520 --> 00:04:50,280
in Elixir, which I remember was 
called Dynamo. 

74
00:04:51,280 --> 00:04:56,160
And I, I tried it for like, you 
know, created a page where you 

75
00:04:56,160 --> 00:05:00,040
could stream a story to several 
browsers at the same time. 

76
00:05:00,160 --> 00:05:05,640
But well, that was my first 
naive attempt to doing multi, 

77
00:05:07,600 --> 00:05:10,520
multi threading on web servers. 
And I, I mean, I thought it was 

78
00:05:10,520 --> 00:05:17,120
cool, but again, I didn't have, 
I didn't have a professional 

79
00:05:17,720 --> 00:05:22,320
stake on it until much, much 
later because I've been after 

80
00:05:22,320 --> 00:05:25,840
doing Ruby, even though I didn't
stop Ruby doing Ruby, I also 

81
00:05:25,840 --> 00:05:30,200
started doing Elixir, sorry 
Elixir, JavaScript, Ember in 

82
00:05:30,200 --> 00:05:34,320
particular at the time before 
that was a time before React 

83
00:05:34,320 --> 00:05:37,720
came out and even before. 
Well, I, I think Angular already

84
00:05:37,720 --> 00:05:44,000
existed, but, but back in the 
day was Backbone, Erlang, sorry 

85
00:05:44,000 --> 00:05:49,840
Erlang, Ember and sorry, Angular
one, the first Angular, the one 

86
00:05:49,840 --> 00:05:54,280
that pretty much everyone hated.
Yeah. 

87
00:05:54,280 --> 00:05:58,640
And I started doing JavaScript 
and it didn't stop ever since. 

88
00:05:59,040 --> 00:06:01,720
JavaScript is a very It's 
probably the most popular 

89
00:06:01,720 --> 00:06:03,480
language in the world. 
Yeah, it's done a. 

90
00:06:03,560 --> 00:06:05,520
Good Python. 
Python is over there, but I 

91
00:06:05,520 --> 00:06:10,160
think still there is a lot of 
people who does Python that also

92
00:06:10,160 --> 00:06:13,520
has to do JavaScript because the
web is what it is. 

93
00:06:15,920 --> 00:06:20,840
So even if you include first 
language and second language, 

94
00:06:21,680 --> 00:06:24,280
there is one of those is 
probably JavaScript. 

95
00:06:24,320 --> 00:06:26,680
Whether you do Java and 
JavaScript, whether you do Ruby 

96
00:06:26,680 --> 00:06:28,520
and JavaScript, whether you do 
Python And JavaScript, 

97
00:06:28,600 --> 00:06:32,640
JavaScript is always there. 
My first like language where I 

98
00:06:32,640 --> 00:06:36,560
started working professionally 
was Swift, and then it became 

99
00:06:36,560 --> 00:06:39,480
JavaScript because I started 
working on APIs and became a 

100
00:06:39,480 --> 00:06:44,920
back end engineer. 
And now I just try to stay in 

101
00:06:44,920 --> 00:06:48,960
Elixir and I have to look up 
syntax every time I have to 

102
00:06:48,960 --> 00:06:52,480
write JavaScript because I 
forget I forget how to write it.

103
00:06:52,480 --> 00:06:54,720
But it's still it's still up 
there somewhere. 

104
00:06:55,360 --> 00:07:00,880
We almost an awesome Elixir 
contributor back to JavaScript, 

105
00:07:01,440 --> 00:07:06,240
Daniel who just landed his first
full time Elixir job and that 

106
00:07:06,240 --> 00:07:08,840
that's pretty cool. 
So I was excited, and that was 

107
00:07:08,840 --> 00:07:11,560
from a conversation on this 
podcast, and I felt pretty, 

108
00:07:12,160 --> 00:07:15,800
pretty special to be able to 
contribute to that. 

109
00:07:16,920 --> 00:07:20,040
I also feel that sometimes if 
I'm I'm biased because I do 

110
00:07:20,040 --> 00:07:24,400
JavaScript pretty often, but I I
think that Elixir developers are

111
00:07:24,400 --> 00:07:27,280
willing to go to great lengths 
to avoid the writing JavaScript.

112
00:07:27,760 --> 00:07:29,040
Yeah. 
Me I. 

113
00:07:29,240 --> 00:07:32,600
I I've invented my own projects 
just to keep writing Elixir. 

114
00:07:34,160 --> 00:07:39,000
I don't have that a bias or 
that, you know, allergy myself, 

115
00:07:39,360 --> 00:07:44,520
but I can I can see the bill 
because I I I feel the the I 

116
00:07:44,520 --> 00:07:48,640
feel the easiness of mind of 
having everything, you know, 

117
00:07:48,640 --> 00:07:50,280
looking the same. 
I'm feeling the same. 

118
00:07:50,280 --> 00:07:51,720
I'm not having to switch 
context. 

119
00:07:51,960 --> 00:07:56,440
That is nice. 
Switching is difficult, but I 

120
00:07:56,440 --> 00:08:00,560
like, I'm interested to hear. 
So you want to explain a little 

121
00:08:00,560 --> 00:08:03,680
bit about what you've been 
working on with Beacon CMS, 

122
00:08:03,680 --> 00:08:07,400
because I think it is really 
cool and it's probably going to 

123
00:08:07,400 --> 00:08:12,200
be the most noticed feature of 
Beacon, I think. 

124
00:08:13,560 --> 00:08:18,840
Yes, and probably one of the 
ones one would have to get right

125
00:08:19,080 --> 00:08:21,200
for the project to be 
successful. 

126
00:08:21,200 --> 00:08:27,800
Because at the end as developers
we can create live view pages 

127
00:08:28,240 --> 00:08:31,800
that didn't. 
I mean and that's fine, but ACMS

128
00:08:31,800 --> 00:08:34,840
is not about developers. 
Although developers have a role 

129
00:08:34,840 --> 00:08:37,919
in making plug insurance and 
extensions, it's mostly about 

130
00:08:37,919 --> 00:08:43,799
non-technical people being able 
to use the two tools to create 

131
00:08:43,799 --> 00:08:48,960
and maintain projects without 
without going into the trenches,

132
00:08:49,560 --> 00:08:52,600
or at least avoiding them for as
far for as long as they can. 

133
00:08:53,360 --> 00:08:59,360
So the keystone of that is an 
editor in order to ACMS. 

134
00:08:59,360 --> 00:09:03,960
It's it has 2 has two sides of 
the coin. 

135
00:09:04,120 --> 00:09:09,280
One of them is the the 
publishing thing where you you 

136
00:09:09,280 --> 00:09:13,480
see the pages and you load the 
pages and you navigate from 1:00

137
00:09:13,480 --> 00:09:17,280
to the other and essentially you
read the blog or go through the 

138
00:09:18,040 --> 00:09:23,160
checkout process of a shop. 
All of that and the other part 

139
00:09:23,160 --> 00:09:27,800
is the creation process. 
So one of them is for the end 

140
00:09:27,800 --> 00:09:33,000
user as as in the shop would be 
the the buyer and the other one 

141
00:09:33,000 --> 00:09:35,160
is the admin area which is for 
the shop owner. 

142
00:09:36,840 --> 00:09:42,000
Not that bacon is particularly 
centre as AE shop thing but it 

143
00:09:42,000 --> 00:09:46,440
could be. 
Either way the admin area is 

144
00:09:46,440 --> 00:09:50,520
should allow non-technical users
to create whatever they want to 

145
00:09:50,520 --> 00:09:54,720
create in live view without 
actually called in live view. 

146
00:09:56,600 --> 00:10:02,560
Ideally at all. 
It just have to be a Lego Lego 

147
00:10:02,560 --> 00:10:08,200
like UI that allows you to drop 
things and pre-order then change

148
00:10:08,200 --> 00:10:12,720
the content, apply some styles. 
This has to be a heavy and this 

149
00:10:12,760 --> 00:10:18,960
I want this margin to be wider. 
I want you know 3 columns with 

150
00:10:19,320 --> 00:10:22,760
whatever images. 
Anything they can imagine should

151
00:10:22,760 --> 00:10:26,000
be done using a mouse and 
without writing a single line of

152
00:10:26,000 --> 00:10:28,840
felixer. 
Yeah, now I'm guessing too part 

153
00:10:28,840 --> 00:10:31,960
of the visual editor that you're
making, dude, not only have the 

154
00:10:31,960 --> 00:10:35,840
drag and drop, right for the 
non-technical, non developers, 

155
00:10:35,840 --> 00:10:39,240
right, you also have a code 
editor and I'm guessing that's a

156
00:10:39,240 --> 00:10:43,760
major part of the same system. 
So you're constantly you're you 

157
00:10:43,760 --> 00:10:48,240
have to support Elixir code and 
heeks templates as well as the 

158
00:10:48,240 --> 00:10:50,920
drag and drop. 
And if you guys haven't checked 

159
00:10:50,920 --> 00:10:54,400
it out yet, highly recommend at 
least checking out the demo, the

160
00:10:54,400 --> 00:11:00,160
demo project for Beacon and just
the speed, like it's instant, 

161
00:11:00,160 --> 00:11:02,800
like the real time updates 
between the code editor and the 

162
00:11:02,800 --> 00:11:05,200
drag and drop is pretty, pretty 
amazing. 

163
00:11:05,680 --> 00:11:10,760
Yeah, as soon as you, as soon as
you drop something the the HTML 

164
00:11:10,760 --> 00:11:13,000
and Elixir, the Higgs template 
changes. 

165
00:11:14,360 --> 00:11:16,520
We have to invent some cool 
things. 

166
00:11:16,520 --> 00:11:23,120
I mean invent essentially we 
have to create a parser from 

167
00:11:23,120 --> 00:11:27,160
Higgs to Jason. 
So we represent the AST of your 

168
00:11:27,160 --> 00:11:31,480
template as a Jason object that 
we can manipulate from the 

169
00:11:31,480 --> 00:11:34,760
editor and then serialize back 
into Higgs. 

170
00:11:34,760 --> 00:11:40,160
So the template is safe, so. 
Everything the the base data of 

171
00:11:40,160 --> 00:11:43,800
everything is just a Jason. 
They say that the single source 

172
00:11:43,800 --> 00:11:49,480
of true of your page is the 
Higgs template, and that is what

173
00:11:49,480 --> 00:11:53,080
we read and write. 
The Higgs template is the end of

174
00:11:53,080 --> 00:11:56,360
be all of your page. 
It just happens. 

175
00:11:56,360 --> 00:11:59,760
We have to come up with a way of
two ways of editing. 

176
00:11:59,760 --> 00:12:03,440
One of them is just writing on 
an editor and the other one is 

177
00:12:03,440 --> 00:12:05,560
dragging and dropping and using 
UIS. 

178
00:12:05,800 --> 00:12:07,880
At the end, you are only 
modified. 

179
00:12:07,960 --> 00:12:13,640
You are modifying the AST of 
that Higgs template and as soon 

180
00:12:13,640 --> 00:12:16,320
as you save, it goes and it's 
serialized. 

181
00:12:16,520 --> 00:12:18,080
Well, actually you don't have to
click save. 

182
00:12:18,080 --> 00:12:21,200
It's save all the time on you 
only published. 

183
00:12:21,240 --> 00:12:27,520
But yes, as soon as you make a 
change it should be persistent 

184
00:12:27,520 --> 00:12:29,680
in the his template. 
And if you switch from the 

185
00:12:29,680 --> 00:12:32,160
visual editor to the code 
editor, you can see the changes 

186
00:12:32,160 --> 00:12:34,480
reflect immediately. 
Yeah, it's pretty cool. 

187
00:12:35,320 --> 00:12:39,480
Now I'm curious, are those 
changes like when, when you 

188
00:12:39,480 --> 00:12:43,800
toggle between the two, are you 
doing a fresh reload? 

189
00:12:43,800 --> 00:12:48,160
Are you doing a full like live 
view reload where you just 

190
00:12:48,160 --> 00:12:50,360
update the change data or how 
does that work? 

191
00:12:51,320 --> 00:12:53,960
Not really because every time 
you make a change it's like 

192
00:12:53,960 --> 00:12:57,600
persisted because we have the 
channels open and we have the 

193
00:12:58,160 --> 00:13:01,080
the the the Higgs template is 
being updated so. 

194
00:13:01,560 --> 00:13:04,560
You're really just shifting UI 
and the data's there already. 

195
00:13:04,760 --> 00:13:10,680
Essentially you you have at mode
at somewhere in the template 

196
00:13:10,920 --> 00:13:14,440
that it switches from visual to 
from from editor to visual. 

197
00:13:14,880 --> 00:13:19,120
And if an if it's an if on the 
on your live view, either we 

198
00:13:19,120 --> 00:13:25,080
switch, we show the code editor 
or we show the the the visual 

199
00:13:25,080 --> 00:13:31,360
editor and the visual editor. 
It is precisely not live view. 

200
00:13:31,800 --> 00:13:33,440
At least most of them is not 
live view. 

201
00:13:33,880 --> 00:13:37,320
I want to touch on that. 
That's probably kind of how you 

202
00:13:37,320 --> 00:13:40,280
got pulled into this project 
because you're a JavaScript 

203
00:13:40,280 --> 00:13:42,920
developer for Docyard, right? 
For the most part. 

204
00:13:43,480 --> 00:13:44,920
Exactly. 
Yeah. 

205
00:13:45,240 --> 00:13:50,160
So what were some of like your 
initial prototypes and like 

206
00:13:50,160 --> 00:13:53,600
failures at the beginning? 
Did you originally know you had 

207
00:13:53,600 --> 00:13:56,520
to use JavaScript to accomplish 
what you wanted to accomplish? 

208
00:13:57,200 --> 00:14:00,960
Yeah, we knew right away. 
And the reason being that I 

209
00:14:00,960 --> 00:14:05,040
don't know if you tried to do 
drag and drop on live view. 

210
00:14:05,040 --> 00:14:09,760
And while it's possible is not 
the most economic experience. 

211
00:14:09,760 --> 00:14:12,760
I mean, because not like a 
simple drag and drop using the 

212
00:14:12,760 --> 00:14:15,600
drag control PPI from 
JavaScript, because we're going 

213
00:14:15,960 --> 00:14:17,680
far beyond the basic drop and 
drop. 

214
00:14:17,880 --> 00:14:20,760
As soon as, you know, we have 
hovering and as soon as you 

215
00:14:20,760 --> 00:14:24,440
hover, you highlight an element 
and also the element around it. 

216
00:14:24,840 --> 00:14:28,880
And then when you select it, you
have to, you know, have a border

217
00:14:28,880 --> 00:14:32,640
and have a kind of a handle 
button that you click and and 

218
00:14:32,640 --> 00:14:35,560
without releasing the mouse, you
move up and down or left or 

219
00:14:35,560 --> 00:14:37,320
right and the things reorder on 
the page. 

220
00:14:38,000 --> 00:14:43,760
That would be quite challenging 
or not challenging. 

221
00:14:45,840 --> 00:14:49,520
Well, when you start relying 
fully on like the client side, 

222
00:14:49,520 --> 00:14:51,800
you don't want to always taking 
trips to the server. 

223
00:14:51,800 --> 00:14:54,000
You're kind of stuck using 
JavaScript. 

224
00:14:54,360 --> 00:14:56,240
One of, yeah, there's two folds 
to that. 

225
00:14:56,240 --> 00:14:59,200
One of The thing is you don't 
want any latency when you drag 

226
00:14:59,200 --> 00:15:02,320
and drop things, even if it's 
100 or 150 milliseconds, it's 

227
00:15:02,320 --> 00:15:06,760
noticeable. 
So when we're talking about non 

228
00:15:06,760 --> 00:15:11,120
committed states, like if you 
are hovering something but 

229
00:15:11,120 --> 00:15:14,800
nothing has happened yet, you 
really shouldn't or don't have 

230
00:15:14,800 --> 00:15:17,280
to let the server know that 
you're hovering an element. 

231
00:15:17,920 --> 00:15:20,360
That would be an extra round 
trip that you don't really need 

232
00:15:20,880 --> 00:15:24,920
and really the server doesn't 
care. 

233
00:15:24,920 --> 00:15:28,320
I mean, it's not that you want 
to persist what you were 

234
00:15:28,320 --> 00:15:30,280
hovering at a certain point in 
time. 

235
00:15:30,280 --> 00:15:33,000
That is not that actual value 
information that you you have to

236
00:15:33,000 --> 00:15:34,640
sync. 
Well, you don't want to lose 

237
00:15:34,640 --> 00:15:38,800
performance and lag and then UX 
would go downhill too if you're 

238
00:15:38,800 --> 00:15:39,520
constantly. 
Hitting. 

239
00:15:40,120 --> 00:15:43,280
I mean there is some in 
situations in which you may want

240
00:15:43,280 --> 00:15:46,640
to relay that information in 
case, for instance, you wanted 

241
00:15:46,640 --> 00:15:49,760
to allow multi user edition like
you were talking about Google 

242
00:15:49,760 --> 00:15:51,520
Docs. 
When you have, you know, John's 

243
00:15:51,520 --> 00:15:54,720
cursor and Mary's cursor and 
they're moving around, that is 

244
00:15:55,200 --> 00:15:58,200
one situation in which you may 
want to, you know, relate this 

245
00:15:58,200 --> 00:16:01,280
information. 
For the most part, most UI state

246
00:16:01,400 --> 00:16:06,320
on an editor of the desert is 
not a separate concern at all. 

247
00:16:06,320 --> 00:16:10,400
It's just what you're hovering, 
what you're selecting. 

248
00:16:11,480 --> 00:16:14,400
That is not something that 
necessarily has to be persisted.

249
00:16:15,200 --> 00:16:19,760
So can you kind of breakdown how
you're implementing JavaScript 

250
00:16:19,880 --> 00:16:24,600
like for for me, I'm only used 
to using it for, you know, I'll,

251
00:16:24,920 --> 00:16:27,560
you know, you create your 
JavaScript hooks and you know, 

252
00:16:27,560 --> 00:16:31,360
you do it for small front end 
animations, super simple drag 

253
00:16:31,360 --> 00:16:35,440
and drop reordering things. 
How did you have to approach 

254
00:16:35,920 --> 00:16:40,040
your visual editor to be 
responsive and organized and 

255
00:16:40,040 --> 00:16:41,560
work well? 
Because essentially it's a 

256
00:16:41,560 --> 00:16:43,080
project in itself. 
It's. 

257
00:16:43,680 --> 00:16:45,640
Because it is. 
It is a different application. 

258
00:16:45,640 --> 00:16:49,280
It just happens to be embedded 
within a larger live view app. 

259
00:16:49,560 --> 00:16:52,600
Break that down for us and how 
does how does that like at least

260
00:16:52,600 --> 00:16:56,880
the macro, How does it work? 
OK, I'm going to explain how it 

261
00:16:56,880 --> 00:17:02,680
started and how we transition 
into live view and what we gain 

262
00:17:02,680 --> 00:17:04,119
from that. 
So let me explain. 

263
00:17:04,440 --> 00:17:10,599
The admin UI was already live 
view and it has the code editor 

264
00:17:10,599 --> 00:17:13,760
because that was the easiest 
thing to do, which because you 

265
00:17:13,760 --> 00:17:16,920
can just drop an editor, which 
is a JavaScript package with 

266
00:17:16,920 --> 00:17:21,000
nice syntax lighting and you 
have something to work on the 

267
00:17:21,640 --> 00:17:26,359
visual editor we need. 
We knew we needed one and at the

268
00:17:26,359 --> 00:17:30,120
beginning we were wondering how 
to do it by experience, by 

269
00:17:30,440 --> 00:17:35,160
checking other other platforms 
doing visual editors. 

270
00:17:35,160 --> 00:17:37,640
And I'm thinking there's a lot 
of them. 

271
00:17:37,640 --> 00:17:41,840
But I'm for instance, we took a 
look at, you know, framer, which

272
00:17:41,840 --> 00:17:47,600
is a very has a very nice editor
shuffled on dev is another one. 

273
00:17:49,160 --> 00:17:52,200
There are, I mean, there are 
many work WordPress plug 

274
00:17:52,200 --> 00:17:54,240
insurance themselves that have 
nice editors. 

275
00:17:54,760 --> 00:17:59,160
So looking at what they do, we 
realized that building that 

276
00:17:59,160 --> 00:18:04,680
relying only on Labview with so 
much interactivity and very fine

277
00:18:04,680 --> 00:18:08,120
grain like, you know, as 
hovering and moving controls to 

278
00:18:08,120 --> 00:18:12,400
widen the margin of an element 
and everything reacting so 

279
00:18:12,400 --> 00:18:15,440
instantly was probably not a 
good idea. 

280
00:18:15,440 --> 00:18:16,680
We needed to do that in 
JavaScript. 

281
00:18:16,800 --> 00:18:24,000
So if I think of that, I, I, I 
mentioned it earlier before we 

282
00:18:24,000 --> 00:18:28,680
start recording that I think of 
JavaScript when we're doing live

283
00:18:28,680 --> 00:18:35,720
view, somewhat akin to going 
down to Rust when we're doing 

284
00:18:35,720 --> 00:18:40,400
Elixir or some Elixir library. 
So maybe you want to build an 

285
00:18:40,400 --> 00:18:44,400
Elixir library that can, you 
know, parse Markdown, for 

286
00:18:44,400 --> 00:18:47,200
instance, and it happened. 
I mean, you want this to be 

287
00:18:47,320 --> 00:18:49,840
very, very fast. 
If you want something that does 

288
00:18:49,920 --> 00:18:53,400
one specific task very fast, 
it's very common that you go for

289
00:18:53,680 --> 00:18:58,760
an existing C or Rust module and
you wrapped that in a nice 

290
00:18:59,040 --> 00:19:02,000
Elixir API and you do the 
linking with FFI. 

291
00:19:02,280 --> 00:19:07,480
So, so when you need the maximum
performance, you you when you 

292
00:19:07,480 --> 00:19:11,680
would need to get closer to the 
metal, you use a better tool and

293
00:19:11,680 --> 00:19:17,440
you link that is the idea of 
using Rust and C over when 

294
00:19:17,440 --> 00:19:22,080
you're doing Elixir with FFI. 
It's also the idea when you're 

295
00:19:22,080 --> 00:19:27,600
doing Rust or C to go to an 
assembler, if you are into this 

296
00:19:27,600 --> 00:19:29,320
kind, if if you are into hard 
rocks. 

297
00:19:31,960 --> 00:19:36,080
And it's the same idea when 
you're doing a web app like live

298
00:19:36,080 --> 00:19:39,360
view app, but you have one 
specific thing that has a lot of

299
00:19:39,360 --> 00:19:41,080
interactivity and it's very fine
grain. 

300
00:19:41,080 --> 00:19:44,240
And you have to be interacting 
with browser APIs all the time, 

301
00:19:44,240 --> 00:19:47,480
like crack and roll video, 
playing audio and things of 

302
00:19:47,480 --> 00:19:50,240
that, that you have to get 
closer to the metal. 

303
00:19:50,280 --> 00:19:52,560
And closer to the metal in the 
browser means JavaScript. 

304
00:19:52,720 --> 00:20:00,560
So I think that is going a step 
down or yeah, step down in the. 

305
00:20:01,040 --> 00:20:05,600
Abstraction layer, you go closer
to the browser to do something 

306
00:20:05,600 --> 00:20:09,000
that is either unavailable 
because you're you have to 

307
00:20:09,000 --> 00:20:12,480
interact with browser with 
browser APIs, or you want to 

308
00:20:12,480 --> 00:20:15,320
squeeze the maximum performance 
and not go through, not go 

309
00:20:15,320 --> 00:20:19,360
through the network or it just 
happens to be more convenient 

310
00:20:19,360 --> 00:20:23,200
because of the kind of fine 
grained Doming Dom manipulation 

311
00:20:23,200 --> 00:20:28,480
you're doing. 
And the way we decided that 

312
00:20:29,160 --> 00:20:31,560
we're going, we're going to 
start building this application.

313
00:20:32,000 --> 00:20:35,760
We're starting at JavaScript 
allocation from scratch ING as 

314
00:20:35,760 --> 00:20:39,280
well as well as well. 
JS is a very, very nice 

315
00:20:40,400 --> 00:20:43,760
JavaScript framework that we 
have been using here for a 

316
00:20:43,760 --> 00:20:48,920
while. 
Well, I'm not here to praise, to

317
00:20:48,920 --> 00:20:51,160
praise it, to praise a 
JavaScript framework. 

318
00:20:51,160 --> 00:20:57,160
I know my audience, but it is it
is my my personal date. 

319
00:20:57,160 --> 00:21:01,720
It is very is depending of the 
curve between nice to use and 

320
00:21:01,720 --> 00:21:04,440
performance with in within 
JavaScript ecosystem. 

321
00:21:04,600 --> 00:21:07,040
Now you're allowed to talk nice 
about JavaScript. 

322
00:21:07,040 --> 00:21:10,480
It's a big part of your project,
so you're allowed. 

323
00:21:11,560 --> 00:21:13,240
We'll. 
Keep the We'll keep the elixir 

324
00:21:13,240 --> 00:21:17,160
guys off your back. 
But yes, I mean, essentially 

325
00:21:17,160 --> 00:21:22,120
it's a, it's a high level, high 
level JavaScript framework, 

326
00:21:22,600 --> 00:21:24,680
which is also a compiler to some
extent. 

327
00:21:25,080 --> 00:21:28,840
So by restricting the kind of 
JavaScript you write to some, it

328
00:21:29,160 --> 00:21:36,280
allows your JavaScript to be in 
understood at compile time and 

329
00:21:36,280 --> 00:21:40,240
transfer in a very, very small 
and performant JavaScript 

330
00:21:40,240 --> 00:21:47,240
bundle. 
And we started with a full, a 

331
00:21:47,240 --> 00:21:53,840
full-fledged individual stand 
alone JavaScript application and

332
00:21:53,840 --> 00:21:58,040
we started designing an API to 
communicate and but we find out 

333
00:21:58,040 --> 00:22:00,840
that the designing this API was 
a lot of work. 

334
00:22:01,320 --> 00:22:07,480
And because when something 
doesn't fill the contract of, 

335
00:22:07,680 --> 00:22:13,040
you know, REST APIs very well, 
because the kind of operations 

336
00:22:13,040 --> 00:22:15,920
you're doing, they're not really
so much creating and updating 

337
00:22:15,920 --> 00:22:20,440
things, but very fine grain 
things like reordering and 

338
00:22:20,440 --> 00:22:24,440
editing a class and modifying a 
margin. 

339
00:22:25,040 --> 00:22:27,600
Technically those are updates, 
but updates over what? 

340
00:22:27,600 --> 00:22:31,720
So it's not really, it doesn't 
feel really feel good to do that

341
00:22:31,720 --> 00:22:36,920
as a REST API. 
It wasn't easy to do that as 

342
00:22:38,040 --> 00:22:44,400
more like a Graph QL API either.
So we've, we spent some time 

343
00:22:44,520 --> 00:22:50,280
thinking how the AST would work,
how, how, how we would load it, 

344
00:22:50,520 --> 00:22:54,960
load the list of components that
you can drag, how, how we would 

345
00:22:54,960 --> 00:22:58,280
get a preview of how the 
component would look if dropped 

346
00:22:58,320 --> 00:23:01,640
in a specific location. 
So you can preview what the the 

347
00:23:01,640 --> 00:23:05,400
changes you are about to make 
without actually making them and

348
00:23:05,400 --> 00:23:07,040
so on. 
And we found that that was 

349
00:23:07,040 --> 00:23:10,240
tricky. 
And then we learn about the 

350
00:23:10,240 --> 00:23:15,560
project, which for us was a 
pretty life savior, which is 

351
00:23:16,440 --> 00:23:19,200
life is felt. 
Life is felt. 

352
00:23:19,360 --> 00:23:26,040
It is a project that essentially
allows you to embed is felt 

353
00:23:26,040 --> 00:23:28,520
applications as components 
within live view. 

354
00:23:29,400 --> 00:23:35,800
And I think I, I describe it as 
islands of is felt within a live

355
00:23:35,800 --> 00:23:38,680
view application because you 
just better application becomes 

356
00:23:39,200 --> 00:23:44,440
sort of becomes a live component
and you can pass properties and 

357
00:23:44,600 --> 00:23:49,240
the wealth application can send 
events that you handle in live 

358
00:23:49,240 --> 00:23:52,120
view. 
So of course, since it's 

359
00:23:52,120 --> 00:23:54,480
JavaScript, it becomes a little 
bit of a black box, but it's a 

360
00:23:54,520 --> 00:23:57,120
black box you can pass 
properties to and receive events

361
00:23:57,120 --> 00:23:59,200
from. 
So essentially it is a component

362
00:23:59,200 --> 00:24:02,680
when you see a component like, I
don't know, open brackets dot 

363
00:24:02,680 --> 00:24:07,840
form and you pass things. 
Oh, open brackets dot my custom 

364
00:24:07,840 --> 00:24:13,040
button in live view that is a 
blackboard for you when you you 

365
00:24:13,240 --> 00:24:15,840
don't need to know what's going 
on inside. 

366
00:24:15,840 --> 00:24:19,440
You just have an API to have to 
fulfil and some events you have 

367
00:24:19,440 --> 00:24:21,360
to listen to. 
And this is the same. 

368
00:24:21,440 --> 00:24:24,400
It just happens that this 
component it is actually 

369
00:24:24,400 --> 00:24:31,600
JavaScript. 
So that we started exploring 

370
00:24:31,600 --> 00:24:35,360
that and we think a couple hours
I knew this was the way we 

371
00:24:35,360 --> 00:24:41,600
should load because it 
essentially remove there is 2 

372
00:24:41,600 --> 00:24:43,800
there is let me let me go back a
little bit. 

373
00:24:44,040 --> 00:24:51,040
There is 2 kind of problems, the
ones you have to improve upon 

374
00:24:51,360 --> 00:24:57,400
and go and make progress towards
solving them and the ones you 

375
00:24:57,400 --> 00:24:59,920
should eliminate all together. 
And this was the second. 

376
00:25:00,720 --> 00:25:03,920
The best problem is not the one 
you have to fix, it's the one 

377
00:25:04,040 --> 00:25:10,840
you have to not have. 
So by going into live view and 

378
00:25:10,840 --> 00:25:16,280
using spell components as sorry 
this multiplication as if it was

379
00:25:16,960 --> 00:25:21,360
a live view component, we 
realized that we didn't have to 

380
00:25:21,360 --> 00:25:28,000
design A Jason API at all. 
So that entirely removes an 

381
00:25:28,000 --> 00:25:31,400
entire not a problem. 
It it, it removes an entire 

382
00:25:31,400 --> 00:25:36,000
category of problems. 
All that has to do with, you 

383
00:25:36,000 --> 00:25:41,520
know, course communication, 
Jason format parsing, it all 

384
00:25:41,520 --> 00:25:44,960
goes all goes away. 
We just happens to have a 

385
00:25:44,960 --> 00:25:50,160
component that receives, sorry, 
we'll have a compile component 

386
00:25:50,160 --> 00:25:54,720
in this case, I mean a 
JavaScript spell component that 

387
00:25:54,720 --> 00:25:57,320
happens to receive data from 
live view. 

388
00:25:58,080 --> 00:26:01,400
And we don't know and we don't 
care how that happens. 

389
00:26:01,400 --> 00:26:03,640
It just happens now I'm. 
Curious, did did you end up 

390
00:26:04,480 --> 00:26:08,920
using live spelt for the whole 
admin dashboard then at that 

391
00:26:08,920 --> 00:26:11,640
point or is it still just the 
visual editor components? 

392
00:26:11,640 --> 00:26:15,520
It's the visual editor because 
it's really the only place where

393
00:26:15,800 --> 00:26:17,520
we need to go closer to the 
metal. 

394
00:26:17,520 --> 00:26:20,400
For everything else, we prefer 
to stay in live view. 

395
00:26:20,440 --> 00:26:26,040
And in fact, I am removing parts
from this wealth application and

396
00:26:26,040 --> 00:26:31,240
making them back into the live 
view applications because 

397
00:26:31,240 --> 00:26:35,160
precisely I started building or 
let's when we built the 

398
00:26:35,160 --> 00:26:40,920
application, we built all the 
life editor, the I mean editor, 

399
00:26:41,560 --> 00:26:43,880
not the, you know, the sidebar 
and the buttons are out. 

400
00:26:43,880 --> 00:26:47,440
But the thing where you see the 
preview of the page and you can 

401
00:26:47,440 --> 00:26:50,600
drag things and you can select 
something on the right side. 

402
00:26:50,600 --> 00:26:56,200
You can change the classes or 
add new properties to an element

403
00:26:56,800 --> 00:26:59,840
that that all that was as as 
well. 

404
00:27:00,480 --> 00:27:06,520
But over time we realize that 
really, for instance, the right 

405
00:27:06,520 --> 00:27:09,520
sidebar that doesn't have any 
drop and drop and it only 

406
00:27:09,520 --> 00:27:11,920
displays the classes and the 
elements. 

407
00:27:12,160 --> 00:27:15,600
That is actually something that 
could perfectly well live in 

408
00:27:16,600 --> 00:27:23,800
live view because not it's not. 
You can have many JavaScript or 

409
00:27:23,800 --> 00:27:28,240
as well components talking to 
each other and they don't have 

410
00:27:28,240 --> 00:27:30,840
to be nested within each other. 
I mean they can be in different 

411
00:27:30,840 --> 00:27:33,640
section of the live view page 
talking to each other without 

412
00:27:33,640 --> 00:27:35,280
live view knowing about them at 
all. 

413
00:27:36,160 --> 00:27:43,200
So that is so to put it to put 
an example, if imagine you have 

414
00:27:43,240 --> 00:27:48,760
like it's not the case, but 
imagine you had one of these 

415
00:27:48,920 --> 00:27:53,400
chats pop up pages on the bottom
right corner that, you know, 

416
00:27:53,400 --> 00:27:56,440
it's like an assistant of sorts,
an AI assistant. 

417
00:27:57,320 --> 00:28:00,800
And then you and that maybe that
assistant has some complicated 

418
00:28:00,800 --> 00:28:04,200
logic and you you do you want 
that to be as well as component 

419
00:28:04,200 --> 00:28:06,680
or a JavaScript component. 
And then you have the editor. 

420
00:28:07,440 --> 00:28:10,880
And maybe imagine you can 
imagine that this AI assistant 

421
00:28:10,880 --> 00:28:14,640
is very smart and is powered by 
some AI that you can explain to 

422
00:28:14,640 --> 00:28:16,440
that assistant what you want to 
create. 

423
00:28:17,480 --> 00:28:22,600
And you can type on there 
create, you know, create a 

424
00:28:22,600 --> 00:28:27,000
section with three columns. 
It's called has an image in the 

425
00:28:27,000 --> 00:28:31,080
header and sunloading ipsum on 
the bottom. 

426
00:28:32,640 --> 00:28:36,000
And that component could do its 
thing and communicate with the 

427
00:28:36,040 --> 00:28:40,000
live admin, sorry with the live 
editor and create that code. 

428
00:28:40,280 --> 00:28:43,040
And the rest of the rest of the 
live view application doesn't 

429
00:28:43,040 --> 00:28:45,040
have to know if it doesn't, if 
it's not important. 

430
00:28:46,880 --> 00:28:50,880
So the the communication, it can
go through live view, but it 

431
00:28:50,880 --> 00:28:53,320
doesn't have to. 
And for some concerns, like 

432
00:28:54,600 --> 00:28:58,000
where you have where you're 
hovering an element, again, 

433
00:28:58,360 --> 00:29:03,320
that's not something that live 
view has to be concerned about. 

434
00:29:03,760 --> 00:29:06,040
Maybe when you're hovering an 
element, you want to highlight 

435
00:29:06,040 --> 00:29:09,680
something on the other side that
can bypass live view because 

436
00:29:09,680 --> 00:29:11,680
live view doesn't care. 
That's nice. 

437
00:29:11,720 --> 00:29:14,480
So it just stays fully client 
side and just. 

438
00:29:14,560 --> 00:29:15,920
Sadly. 
Just UI. 

439
00:29:16,800 --> 00:29:22,680
Sadly, so we find out that in, 
for instance, by using or by 

440
00:29:22,680 --> 00:29:27,640
moving the sidebar in back into 
live view from, we could 

441
00:29:27,640 --> 00:29:32,200
leverage the tools that we have 
for live view already built that

442
00:29:32,640 --> 00:29:35,000
we do have to port to JavaScript
if we wanted. 

443
00:29:35,280 --> 00:29:41,400
If we have a component library 
that we want to make public and 

444
00:29:41,400 --> 00:29:43,440
that component library, it's 
built for live view. 

445
00:29:43,880 --> 00:29:47,840
And if we want to, you know, 
create menus, and that's 

446
00:29:47,840 --> 00:29:50,960
something we're going to do soon
that we have to create or 

447
00:29:50,960 --> 00:29:54,640
improve the menus, you know, to 
change font size, font style, 

448
00:29:54,640 --> 00:30:00,760
family padding, marking, column 
layout, table layout, all of 

449
00:30:00,760 --> 00:30:03,960
that. 
Visually, we have already a very

450
00:30:03,960 --> 00:30:08,000
extensive library component that
we could leverage in live view. 

451
00:30:08,720 --> 00:30:12,640
So it would be a shame having to
port all of that into JavaScript

452
00:30:12,640 --> 00:30:16,600
just to use them when that side 
of the app is not particularly 

453
00:30:16,600 --> 00:30:18,200
challenging from the white side 
of things. 

454
00:30:18,200 --> 00:30:21,000
It doesn't have a lot of, you 
know, very fine grained 

455
00:30:21,000 --> 00:30:24,640
animations. 
If for instance, we happen to 

456
00:30:24,640 --> 00:30:27,360
have one particular component 
that happens to be very 

457
00:30:27,360 --> 00:30:33,160
complicated. 
Imagine we have a calendar 

458
00:30:33,320 --> 00:30:36,160
picker that you know you have to
select A range of dates. 

459
00:30:36,880 --> 00:30:38,680
Not that I see any point for 
are. 

460
00:30:38,720 --> 00:30:40,560
These components to build right 
there right? 

461
00:30:40,880 --> 00:30:42,560
It is by the way, I built one 
myself. 

462
00:30:42,720 --> 00:30:47,560
It is once and never again. 
But yes, if you want to build 1 

463
00:30:47,560 --> 00:30:53,320
component that deserves to be a 
JavaScript component, you can do

464
00:30:53,320 --> 00:30:57,080
that elsewhere in the page. 
So I'm. 

465
00:30:57,080 --> 00:31:01,120
Curious. 
Will you support like spelt 

466
00:31:01,120 --> 00:31:07,760
components through the admin 
portal for sites on your page 

467
00:31:07,800 --> 00:31:11,960
like from like the agency 
standpoint or not necessarily? 

468
00:31:12,600 --> 00:31:16,240
You mean that like? 
If I was using Beacon CMS to 

469
00:31:16,240 --> 00:31:19,600
build sites, would I? 
Have, yeah, I mean the ability. 

470
00:31:19,600 --> 00:31:24,280
To use JavaScript components. 
Well, you have the ability to 

471
00:31:24,280 --> 00:31:27,080
use JavaScript already in your 
components because through hooks

472
00:31:27,080 --> 00:31:32,800
in this case, but it's 
technically possible that we 

473
00:31:32,800 --> 00:31:37,880
could you, we could make live 
view available to. 

474
00:31:38,000 --> 00:31:40,320
Well, it was, it's something 
that you probably have to do 

475
00:31:40,320 --> 00:31:42,200
because it's a choice of your 
page. 

476
00:31:42,840 --> 00:31:45,520
But if you choose to create your
own components, use the live 

477
00:31:45,520 --> 00:31:47,240
view. 
When you add live and you add 

478
00:31:47,240 --> 00:31:51,600
live view to your project, your 
project should be able your the 

479
00:31:51,600 --> 00:31:54,280
components you create for your 
page should be able to use 

480
00:31:54,280 --> 00:31:57,760
JavaScript or I mean Elixir 
components in this case. 

481
00:31:58,840 --> 00:32:02,400
There's some questions about how
the build process would look 

482
00:32:02,400 --> 00:32:05,640
like, because at the end there 
are two different ramps. 

483
00:32:05,640 --> 00:32:10,840
It's not that you you can right 
now when you create a component,

484
00:32:10,840 --> 00:32:12,240
the component is safe and 
compile. 

485
00:32:13,200 --> 00:32:18,000
If you if your component, if the
only thing your component does 

486
00:32:18,040 --> 00:32:23,600
it's invoking a JavaScript 
component, that's fine. 

487
00:32:26,480 --> 00:32:28,840
But the problem is that that 
JavaScript has to come from it 

488
00:32:28,840 --> 00:32:31,280
somewhere. 
So it's it's not that a 

489
00:32:31,280 --> 00:32:38,040
technical limitation in Beacon, 
we would have to come up with a 

490
00:32:38,040 --> 00:32:40,800
way of making those JavaScript 
components available to you. 

491
00:32:41,040 --> 00:32:44,720
But yes, no, it it is, it is 
possible that you could use 

492
00:32:44,720 --> 00:32:47,760
them. 
For now, I think you at least 

493
00:32:47,760 --> 00:32:50,320
out-of-the-box you're 
constrained to using JavaScript.

494
00:32:50,800 --> 00:32:54,560
Sorry, yeah, the JavaScript 
hooks from live view. 

495
00:32:54,560 --> 00:32:59,720
But you could, you could create 
components that wrap in in fact.

496
00:33:01,000 --> 00:33:04,800
In fact we do actually not not 
like you, because that requires 

497
00:33:04,800 --> 00:33:07,920
this glue code to make those 
components behave as if they 

498
00:33:07,920 --> 00:33:11,520
were library components. 
But you can already have a 

499
00:33:11,560 --> 00:33:16,000
component that happens to be a 
wrapper around some JavaScript 

500
00:33:16,000 --> 00:33:19,280
library for, you know, an editor
with syntax highlighting for 

501
00:33:19,280 --> 00:33:24,120
instance, or a tool tip library 
that is. 

502
00:33:24,400 --> 00:33:29,920
Global. 
That's cool. 

503
00:33:29,920 --> 00:33:33,720
I love that. 
I didn't realize you could that 

504
00:33:33,720 --> 00:33:37,240
live spelt didn't have to 
totally entangle a project that 

505
00:33:37,240 --> 00:33:39,320
you can use it at a component 
level. 

506
00:33:39,320 --> 00:33:45,040
That's really nice. 
In fact, I mean we don't use 

507
00:33:45,040 --> 00:33:52,120
that feature, but it is somewhat
funny that you can have, you can

508
00:33:52,120 --> 00:33:54,840
have live view inside the spelt 
inside live view. 

509
00:33:56,080 --> 00:34:00,680
Nice. 
Because when this when you have 

510
00:34:00,680 --> 00:34:04,720
an island of spelled JavaScript 
island on the live view page 

511
00:34:05,800 --> 00:34:11,159
that is rendered a HTML. 
But if you if the HTML that this

512
00:34:11,159 --> 00:34:16,560
as well component is rendering 
has phoenix click events that it

513
00:34:16,560 --> 00:34:21,600
works nothing prevents yet you 
to, you know, to have a spell 

514
00:34:21,600 --> 00:34:25,199
component that happens to render
something with buttons. 

515
00:34:25,199 --> 00:34:30,239
And those buttons are have the, 
you know, the the phoenix click 

516
00:34:30,239 --> 00:34:34,960
and phoenix value things and 
talk directly with live view 

517
00:34:35,560 --> 00:34:41,120
without this belt even knowing. 
So something that is missing. 

518
00:34:41,120 --> 00:34:43,719
But I think they're being 
they're working on that because 

519
00:34:43,719 --> 00:34:46,639
precisely the new the is belt 5,
which is fairly new. 

520
00:34:46,639 --> 00:34:51,840
I think it has maybe 3 weeks, 
has a new feature in which you 

521
00:34:51,840 --> 00:34:57,560
can define what they call it. 
Snippets. 

522
00:34:57,680 --> 00:35:00,400
Yeah, snippets. 
They're kind of slots, chunks of

523
00:35:00,400 --> 00:35:04,760
code you can pass around from 
component to component, which is

524
00:35:04,760 --> 00:35:08,320
a kind of block of HTML you can 
pass around. 

525
00:35:08,720 --> 00:35:16,760
So they're working on allowing 
the content of the spelled 

526
00:35:16,760 --> 00:35:20,040
components to be customized from
live view. 

527
00:35:20,040 --> 00:35:22,120
Because you know, when you open 
a component, you have an open 

528
00:35:22,120 --> 00:35:25,600
tag, a closed tag, and whatever 
you put in the middle, it's 

529
00:35:25,600 --> 00:35:28,120
still a block of code. 
That is you're, it's going to be

530
00:35:28,120 --> 00:35:30,560
render somewhere within that 
wrapper. 

531
00:35:31,120 --> 00:35:33,880
So yeah, that's something that 
being worked on because the the 

532
00:35:33,880 --> 00:35:43,040
newest belt allows for receiving
and passing snippets of HTML as 

533
00:35:43,040 --> 00:35:46,960
properties. 
So that is, that would be cool. 

534
00:35:46,960 --> 00:35:49,640
I'm not sure how that would be 
useful for us. 

535
00:35:51,080 --> 00:35:54,680
Maybe not in this case because 
this the the editor is pretty 

536
00:35:54,680 --> 00:35:58,640
self-contained, but I can see 
you being able to create 

537
00:35:59,760 --> 00:36:04,480
components that are customizable
from live view, but they happen 

538
00:36:04,480 --> 00:36:06,800
to have JavaScript logic 
attached. 

539
00:36:07,480 --> 00:36:12,080
OK nice. 
Did you run into any weird like 

540
00:36:12,080 --> 00:36:15,960
cross browser compatibility 
issues with your editor? 

541
00:36:16,960 --> 00:36:19,560
No, not so far. 
Although to be fair, since it's 

542
00:36:19,560 --> 00:36:23,040
very early days in the 
development, we are focusing on 

543
00:36:23,040 --> 00:36:27,480
desktop and mostly on Chrome 
because it's the the the browser

544
00:36:27,480 --> 00:36:30,240
that most people uses. 
I did. 

545
00:36:30,400 --> 00:36:33,200
I do use Safari occasionally, 
especially when I'm battery on 

546
00:36:33,200 --> 00:36:36,920
my laptop because so far I mean 
the the power consumption of 

547
00:36:36,920 --> 00:36:40,480
Safari, it is much better than 
Chrome. 

548
00:36:40,480 --> 00:36:44,960
So you can easily get two more 
hours of of battery of your 

549
00:36:44,960 --> 00:36:51,520
laptop if you use Safari. 
But yeah, Safari and and Chrome 

550
00:36:51,520 --> 00:36:54,560
work fine. 
I didn't find any any issues. 

551
00:36:54,760 --> 00:36:56,960
That's good. 
I feel like Safari is always the

552
00:36:56,960 --> 00:37:02,000
one that gets you. 
Today, not so much. 

553
00:37:02,280 --> 00:37:06,000
I, I, I there was to be a time 
where Safari was the pain the 

554
00:37:06,000 --> 00:37:10,160
asses, but I think that now, not
so much. 

555
00:37:10,160 --> 00:37:12,960
And now the Safari is, unless 
you're doing something pretty 

556
00:37:12,960 --> 00:37:17,680
obscure, OK, it it it, it's not 
going to be a problem. 

557
00:37:17,800 --> 00:37:21,680
Even even. 
I would even dare to say that it

558
00:37:21,680 --> 00:37:25,120
is more likely that Firefox is 
going to bite you than Safari 

559
00:37:25,120 --> 00:37:27,120
today. 
Don't play a lot. 

560
00:37:27,280 --> 00:37:31,160
Yeah, you know, actually I kind 
of agree with that because I I 

561
00:37:31,160 --> 00:37:35,920
like to use Firefox a lot and I 
always have the weirder issues 

562
00:37:36,080 --> 00:37:40,600
hit me on Firefox. 
It's a shame because I think so 

563
00:37:40,600 --> 00:37:43,320
far, well, this is changing 
subjects very widely, but I 

564
00:37:43,320 --> 00:37:45,640
think Firefox is somewhat 
underfunded. 

565
00:37:46,840 --> 00:37:51,880
And that shows they do they, 
they do their best, but they 

566
00:37:51,880 --> 00:37:57,680
are, I mean, they probably work 
with 2% of the of the budget 

567
00:37:57,680 --> 00:38:00,160
that Chrome has. 
And then Chrome. 

568
00:38:00,160 --> 00:38:01,960
Chrome is nice, but it's a 
memory hog. 

569
00:38:03,440 --> 00:38:05,920
Yes. 
I mean, I, I have 30 gigabytes, 

570
00:38:05,920 --> 00:38:08,000
so I don't care that much. 
But I do remember before 

571
00:38:08,000 --> 00:38:13,280
changing laptops that it was it 
was I I guess I'm seeing Chrome 

572
00:38:13,280 --> 00:38:14,960
alone taking 12 gigabytes of 
RAM. 

573
00:38:17,280 --> 00:38:19,560
That's insane. 
You're not doing anything 

574
00:38:19,560 --> 00:38:23,680
particularly crazy. 
But yes, going right, going back

575
00:38:23,680 --> 00:38:30,520
around to the as well. 
Elixir communication seems we 

576
00:38:30,960 --> 00:38:35,080
could pass properties directly 
to as well and send events from 

577
00:38:35,080 --> 00:38:40,920
as well to live view. 
We we entirely deleted API that 

578
00:38:40,920 --> 00:38:44,200
we were creating. 
It wasn't needed anymore and 

579
00:38:44,200 --> 00:38:45,800
that's awesome. 
That always feels good. 

580
00:38:47,240 --> 00:38:52,440
And well, essentially we, we, I 
mean, I, I, I don't have the 

581
00:38:52,440 --> 00:38:56,160
number of, of lines of code as 
in the thousands, but 

582
00:38:57,240 --> 00:39:01,840
essentially we remove on in the 
friction between front end and 

583
00:39:01,840 --> 00:39:04,040
back end all together because 
sometimes you think of fronting 

584
00:39:04,040 --> 00:39:08,320
and back end as if they were two
separate realms. 

585
00:39:08,360 --> 00:39:16,000
And sometimes they are. 
And light view bends or blurs 

586
00:39:16,000 --> 00:39:21,000
the line a lot because there is 
you don't, you don't have two 

587
00:39:21,000 --> 00:39:24,000
separate bars that talk through 
an API unless you want to. 

588
00:39:24,000 --> 00:39:27,880
And having an API sometimes from
the business perspective make a 

589
00:39:27,880 --> 00:39:29,320
lot of sense. 
So you allow third party 

590
00:39:29,320 --> 00:39:32,200
integrations to speak with you. 
But it's a choice. 

591
00:39:32,640 --> 00:39:36,640
And with the editor, it doesn't 
really make sense to for the 

592
00:39:36,640 --> 00:39:39,240
editor to have an open API 
because it's not that. 

593
00:39:39,840 --> 00:39:43,760
If we were to open Bitcoin as an
API so other people can do 

594
00:39:43,760 --> 00:39:46,120
things with it, it wouldn't be 
the editor. 

595
00:39:46,120 --> 00:39:48,240
The 1st pick or it not it's not 
the editor. 

596
00:39:48,240 --> 00:39:55,800
Wouldn't be the the thing that 
most people would want to detail

597
00:39:55,800 --> 00:40:00,240
API because at the end if we 
want to, since the single source

598
00:40:00,240 --> 00:40:03,520
is true for your pages, is the 
Higgs template. 

599
00:40:04,520 --> 00:40:08,080
If you wanted to build your 
alternative editor, you could do

600
00:40:08,080 --> 00:40:11,480
whatever you want to do as long 
as you send the new template to 

601
00:40:11,480 --> 00:40:13,920
the beacon. 
So it's the simplest API ever. 

602
00:40:13,920 --> 00:40:18,240
You just send the text of, you 
send a text file and save it and

603
00:40:18,240 --> 00:40:20,600
that is it. 
That is, there isn't anything 

604
00:40:20,600 --> 00:40:26,360
else to be done. 
So all the little details of the

605
00:40:26,360 --> 00:40:32,320
API as of you know update 
classes and and and have an AST 

606
00:40:32,360 --> 00:40:34,800
representing. 
Performance connecting through 

607
00:40:34,800 --> 00:40:37,440
the channels for things like 
that too so. 

608
00:40:38,600 --> 00:40:42,720
Yes, yes, I mean, that is true. 
Although in this case it's not a

609
00:40:42,720 --> 00:40:46,040
limiting factor because since we
are, every time you make a 

610
00:40:46,040 --> 00:40:47,720
change, we're saving the entire 
page as a whole. 

611
00:40:48,480 --> 00:40:51,480
OK, the payloads can be you're. 
Doing that through an API 

612
00:40:51,480 --> 00:40:54,400
request versus. 
No, we do it through channels. 

613
00:40:54,600 --> 00:40:58,080
No, we do it through. 
What I mean is that seeing 

614
00:40:59,000 --> 00:41:02,160
sockets, the bigger advantage of
sockets or sockets shine the 

615
00:41:02,160 --> 00:41:05,240
most when you have a lot of 
updates that happen to be very 

616
00:41:05,240 --> 00:41:08,760
small because you you skip the 
headers and so on. 

617
00:41:09,240 --> 00:41:14,360
When you make updates not so 
often and they happen to be very

618
00:41:14,360 --> 00:41:17,280
big, it's not that advantage is 
not there, but it's not so 

619
00:41:17,280 --> 00:41:22,200
noticeable because if you are 
sending, you know, 250 kilobytes

620
00:41:23,120 --> 00:41:27,120
request, even if it's through 
websockets, it is. 

621
00:41:27,240 --> 00:41:29,560
If you are in 3G, it's still 
going to take a couple of 

622
00:41:29,560 --> 00:41:31,880
seconds because it's a big 
request. 

623
00:41:32,960 --> 00:41:36,280
But if you go back and make 
minor little copy changes, it's 

624
00:41:36,280 --> 00:41:37,680
going to be super. 
Fast. 

625
00:41:38,040 --> 00:41:43,720
And if you have, I mean and for 
the editor predator not so much 

626
00:41:43,720 --> 00:41:47,360
because most of the the the 
state is local precisely because

627
00:41:47,360 --> 00:41:51,320
it's JavaScript. 
But if we wanted to or we need 

628
00:41:51,320 --> 00:41:55,160
to make some updates from the 
editor that are not as big as 

629
00:41:55,160 --> 00:41:58,800
saving the entire page, this 
would be much faster going 

630
00:41:58,800 --> 00:42:03,480
through the web sockets that 
going through an API besides. 

631
00:42:03,800 --> 00:42:07,760
Handling when you send the 
updates, do you have like a 

632
00:42:07,840 --> 00:42:13,000
front end caching service and 
when do you decide or when when 

633
00:42:13,000 --> 00:42:15,800
someone stops making edits as it
pushed to the database? 

634
00:42:15,800 --> 00:42:18,840
How does it work? 
Right now we are sending them 

635
00:42:18,840 --> 00:42:23,920
after every change that it's 
worth persisting because we 

636
00:42:23,920 --> 00:42:29,920
could throttle them if that's if
that proves to be useful. 

637
00:42:30,520 --> 00:42:34,120
But so far we didn't find any 
problems, we just saving all the

638
00:42:34,160 --> 00:42:36,080
time. 
So like right now, a keystroke 

639
00:42:36,360 --> 00:42:40,720
gets sent immediately. 
Not a keystroke because we we do

640
00:42:40,720 --> 00:42:43,000
wait for you to focus out of the
element. 

641
00:42:43,080 --> 00:42:45,520
If if you, I don't know if you 
are an input, you don't, we 

642
00:42:45,520 --> 00:42:48,800
don't save the page for every 
screenshot, every every 

643
00:42:48,800 --> 00:42:52,280
keystroke. 
We, you know, you're changing 

644
00:42:52,280 --> 00:42:55,120
the an attribute of an image, 
you're saying the out of the 

645
00:42:55,120 --> 00:42:57,880
image. 
So you type whatever and you 

646
00:42:57,880 --> 00:43:01,080
move on to doing other changes 
and then we persist that or 

647
00:43:01,080 --> 00:43:04,640
maybe I don't know if we 
persist, if we, if you stay, if 

648
00:43:04,640 --> 00:43:06,440
you stay idle for a while, maybe
we do. 

649
00:43:07,120 --> 00:43:09,880
I think I need to check. 
But either way, it's not with 

650
00:43:09,880 --> 00:43:13,360
every Chris stroke, it's maybe 
with every finalized 

651
00:43:13,360 --> 00:43:15,200
interaction. 
Yeah, that's good. 

652
00:43:15,400 --> 00:43:18,960
I've noticed like if you like 
I've dug through some example 

653
00:43:18,960 --> 00:43:23,960
code of other projects and 
they'll persist on like every 

654
00:43:23,960 --> 00:43:27,000
change in like form validation 
and you'll get noticeable 

655
00:43:27,000 --> 00:43:30,360
bottlenecks on local host where 
things kind of lock up. 

656
00:43:31,480 --> 00:43:34,640
Now, and I mean, because most of
the things, I mean, this is 

657
00:43:34,640 --> 00:43:38,360
free, most of the things you do 
in the editorial are pretty free

658
00:43:38,360 --> 00:43:42,280
because you're writing even 
you're, you're right, writing 

659
00:43:42,360 --> 00:43:46,560
Higgs to some extent, not 
writing it, but whatever changes

660
00:43:46,560 --> 00:43:51,120
on things you're moving around 
is generating at the end a Higgs

661
00:43:51,120 --> 00:43:54,840
template. 
Now I'm curious, how do you keep

662
00:43:54,840 --> 00:43:58,200
track of revision history for 
changes? 

663
00:43:59,840 --> 00:44:02,880
No, but we plan to at some point
because it is. 

664
00:44:03,120 --> 00:44:07,200
It would be so nice to be able 
to do common set and just go 

665
00:44:07,200 --> 00:44:09,200
back. 
Yeah, a little undo button. 

666
00:44:09,800 --> 00:44:12,240
Exactly. 
That would be nice and if. 

667
00:44:12,960 --> 00:44:14,360
Right now it. 
Persists. 

668
00:44:14,760 --> 00:44:17,840
Before I lose my track, that is 
something we could do in 

669
00:44:17,840 --> 00:44:22,160
JavaScript if we use immutable 
structures, which JavaScript 

670
00:44:22,160 --> 00:44:24,800
doesn't have out-of-the-box. 
But there are some libraries 

671
00:44:25,240 --> 00:44:28,080
that mimic the immutable 
structures and we could do. 

672
00:44:28,080 --> 00:44:29,840
That Oh yeah, that's a good 
idea. 

673
00:44:29,880 --> 00:44:31,440
That's kind of a cool. 
I like. 

674
00:44:31,480 --> 00:44:34,880
That there is AI. 
Hope it passes someday, but 

675
00:44:35,120 --> 00:44:39,600
there are a proposal for the 
browser to implement immutable 

676
00:44:40,000 --> 00:44:43,280
versions of the main structures 
like arrays and objects. 

677
00:44:44,480 --> 00:44:47,920
That would be nice, but so far 
you you can do that, but you 

678
00:44:47,920 --> 00:44:51,840
have options as libraries. 
Yeah, yeah, yeah. 

679
00:44:51,840 --> 00:44:57,600
That would be see, immutability 
is just so beneficial once once 

680
00:44:57,600 --> 00:45:03,000
you understand how to use it. 
Now what was I going to say? 

681
00:45:03,040 --> 00:45:05,560
Oh yeah. 
So as you're making changes to, 

682
00:45:06,080 --> 00:45:10,120
you know, your drag and drop or 
anything in the visual editor, 

683
00:45:11,520 --> 00:45:14,000
it's persisting when you leave 
focus. 

684
00:45:14,000 --> 00:45:16,240
So your updates are 
automatically going to the 

685
00:45:16,240 --> 00:45:19,120
database. 
Then is the published version, 

686
00:45:19,120 --> 00:45:23,160
like when you press publish, is 
that just kind of running you're

687
00:45:23,160 --> 00:45:26,680
a build task that builds and 
compiles all the changes you 

688
00:45:26,680 --> 00:45:30,520
just did with like your CSS and 
JavaScript and all of that Is 

689
00:45:30,520 --> 00:45:32,040
that's what is that what 
happens? 

690
00:45:33,120 --> 00:45:36,440
Pretty much. 
It's not the task itself, but 

691
00:45:36,440 --> 00:45:43,760
it's basically promoting that 
draft into production because 

692
00:45:44,120 --> 00:45:46,480
and promoting the draft. 
I'm guessing. 

693
00:45:46,880 --> 00:45:49,280
Exactly. 
That is something that Leandro 

694
00:45:49,280 --> 00:45:51,640
can speak more about, but this 
is the magic of Picon that 

695
00:45:52,840 --> 00:45:58,040
modules are when your templates 
are essentially Elixir files and

696
00:45:58,040 --> 00:46:03,720
they're compiled and in runtime 
they replay, they replace the 

697
00:46:03,720 --> 00:46:07,000
existing version with a new 
model version without you 

698
00:46:07,000 --> 00:46:11,160
noticing anything. 
So publishing it's compiling and

699
00:46:11,160 --> 00:46:14,480
doing a hot swap of a module 
somewhere in in Beacon. 

700
00:46:15,840 --> 00:46:18,560
Yeah, I love it. 
It's so it's so cool. 

701
00:46:18,720 --> 00:46:22,120
I highly everyone watching. 
Actually, I think it's funny 

702
00:46:22,120 --> 00:46:29,040
because we had Leandro on last 
week and he was like, I didn't 

703
00:46:29,040 --> 00:46:31,520
think it sounded like that fun 
of a project. 

704
00:46:31,520 --> 00:46:33,240
It's kind of boring. 
It's just ACMS. 

705
00:46:33,240 --> 00:46:36,720
That was like his original take 
before he started diving in and 

706
00:46:36,720 --> 00:46:38,720
figuring out like all the 
technical needs. 

707
00:46:39,440 --> 00:46:41,320
And I was like, I don't know. 
I thought it was an exciting 

708
00:46:41,320 --> 00:46:45,120
project straight from the start 
because I think I think it's a 

709
00:46:45,200 --> 00:46:51,000
it's a big step, especially for 
onboarding and people adopting 

710
00:46:51,120 --> 00:46:53,920
Phoenix Live View. 
Yeah, Besides, I don't think 

711
00:46:53,920 --> 00:46:55,720
there is such a thing as a 
boring project. 

712
00:46:56,160 --> 00:46:57,520
See I. 
Agree, especially when you're 

713
00:46:57,520 --> 00:46:59,520
the one building it right even. 
Exactly. 

714
00:47:00,120 --> 00:47:02,320
Even if boring. 
People use your project. 

715
00:47:02,320 --> 00:47:04,160
It's still it's still a cool 
project. 

716
00:47:04,520 --> 00:47:07,840
Because I, I, the projects that 
were pretty fun in my days, I 

717
00:47:07,880 --> 00:47:12,480
built a video game with our big 
team and it was a, you know, a 

718
00:47:12,480 --> 00:47:14,920
football, football fantasy 
manager. 

719
00:47:15,480 --> 00:47:21,680
And the, IT was also web-based. 
So the, and they also build like

720
00:47:21,680 --> 00:47:28,520
more boring user facing software
for business to business thing 

721
00:47:28,520 --> 00:47:31,960
that, you know, they track for. 
I did, I did build one for 

722
00:47:33,240 --> 00:47:38,320
recycling companies and 
producers companies so you can 

723
00:47:38,320 --> 00:47:41,960
track where the trash is going. 
So you comply with all the, you 

724
00:47:41,960 --> 00:47:46,200
know, health, environmental 
issues. 

725
00:47:46,400 --> 00:47:50,200
So you can I mean, the only 
thing that changes is the the 

726
00:47:51,000 --> 00:47:53,720
the business logic to some 
extent and the whelming with the

727
00:47:53,720 --> 00:47:59,640
business logic operates. 
And maybe in yeah, in one you're

728
00:47:59,640 --> 00:48:03,600
tracking trash, literally. 
And and in one you are building,

729
00:48:03,960 --> 00:48:08,120
you know, training system that 
decide or a system that decides 

730
00:48:08,680 --> 00:48:11,120
which players you are going to 
get in the playoff. 

731
00:48:11,880 --> 00:48:15,240
Sorry, not not the playoff when 
you choose the player in the 

732
00:48:15,240 --> 00:48:17,600
NBAI don't remember the name, 
the draft. 

733
00:48:17,920 --> 00:48:19,960
It's a draft. 
Oh yeah, yeah, yeah, a draft. 

734
00:48:19,960 --> 00:48:21,520
So it's. 
Like you're asking the wrong 

735
00:48:21,520 --> 00:48:25,480
guy. 
So you, so it is. 

736
00:48:25,520 --> 00:48:29,640
It is all the same, it just 
happens to be 1 is more fun than

737
00:48:29,640 --> 00:48:32,360
the other to talk to your 
friends about. 

738
00:48:32,920 --> 00:48:34,800
Yeah. 
Because I one just. 

739
00:48:34,840 --> 00:48:39,440
Appears to be cooler, but still.
It appears to be cooler, but at 

740
00:48:39,440 --> 00:48:43,680
the end it's the same. 
Another one was for allowing 

741
00:48:43,680 --> 00:48:47,000
studios to show movies and 
shows. 

742
00:48:47,800 --> 00:48:51,560
And I remember that they one of 
the benefits they wanted to get 

743
00:48:51,560 --> 00:48:54,880
from that was if they if they 
have a movie and they have to 

744
00:48:54,880 --> 00:48:58,240
rent A tiger because you can 
rent tigers, are they actually? 

745
00:48:58,760 --> 00:49:02,000
So how do they plan the movie 
when they should watch? 

746
00:49:02,000 --> 00:49:05,040
So they can't rent the tiger for
the least amount of days because

747
00:49:05,040 --> 00:49:07,520
it's it happens to be very 
expensive to rent A tiger. 

748
00:49:07,920 --> 00:49:13,680
So again, this makes for good 
anecdotes, but the work is the 

749
00:49:13,680 --> 00:49:15,520
same. 
Yeah, exactly. 

750
00:49:15,760 --> 00:49:20,600
I agree. 
Well, like one of my boring AS 

751
00:49:20,600 --> 00:49:23,600
projects is my website hosting 
platform. 

752
00:49:23,600 --> 00:49:26,640
And I say boring in quotes 
because yeah, I'm still doing 

753
00:49:26,640 --> 00:49:30,280
really cool stuff. 
It's just it's not as exciting 

754
00:49:30,280 --> 00:49:33,480
as an idea because it's been 
done before, right? 

755
00:49:35,920 --> 00:49:38,280
But again, it's just one makes 
for a better story. 

756
00:49:38,280 --> 00:49:42,200
But the day-to-day it's, it's 
all the same and it is as fun as

757
00:49:42,200 --> 00:49:48,040
you make it to be. 
Yeah, so I am a struggling front

758
00:49:48,040 --> 00:49:50,800
end developer. 
I can I can hack my way through 

759
00:49:50,800 --> 00:49:54,120
and I can do some stuff, but I 
wouldn't say I'm great at it. 

760
00:49:54,120 --> 00:49:58,280
I'm I'm much more I'm much more 
comfortable on back end code. 

761
00:49:59,600 --> 00:50:04,920
How do you like, I know like UX 
is a major thing, especially for

762
00:50:05,360 --> 00:50:08,080
like your visual editor, right? 
If it doesn't work well, people 

763
00:50:08,080 --> 00:50:10,040
will be frustrated. 
They won't want to use it. 

764
00:50:10,640 --> 00:50:17,040
What kind of testing or quality 
assurance things have you put in

765
00:50:17,040 --> 00:50:21,120
place to make sure you don't 
fall into like regression bugs 

766
00:50:21,120 --> 00:50:24,720
or anything like that? 
I'm glad you asked that because 

767
00:50:24,720 --> 00:50:29,240
we just did something cool. 
I think we finished like 

768
00:50:29,680 --> 00:50:33,840
finished it like two years ago 
or three weeks ago, because one 

769
00:50:33,840 --> 00:50:44,200
of my pet peeve with live view 
was that the the worrying, in my

770
00:50:44,200 --> 00:50:47,160
opinion, good enough tools for 
proper end to end testing. 

771
00:50:48,400 --> 00:50:53,040
And because you know, you can 
use there are what is it name? 

772
00:50:53,040 --> 00:50:55,000
I don't remember the name, 
something like Wallaby. 

773
00:50:55,000 --> 00:50:57,880
I think it's Wallaby. 
You have Wallaby for controlling

774
00:50:57,880 --> 00:51:02,920
the browser through it's not 
Selenium, but yeah, you can 

775
00:51:02,920 --> 00:51:04,360
control the browser and click on
things. 

776
00:51:04,960 --> 00:51:09,520
But it wasn't you didn't have 
enough resolution for our needs.

777
00:51:09,520 --> 00:51:13,160
So instance when you are testing
that drag and drop works as you 

778
00:51:13,160 --> 00:51:18,040
expect it to work. 
You want to check that when you 

779
00:51:18,200 --> 00:51:20,960
you just select, you have 4 
items and you select this one 

780
00:51:20,960 --> 00:51:23,400
and start dragging it. 
And you want to check that as 

781
00:51:23,400 --> 00:51:28,520
soon as you overlap 3 pixels 
here this switch because that 

782
00:51:28,520 --> 00:51:32,800
that's how you reorder things. 
So in order for you to test that

783
00:51:35,200 --> 00:51:38,760
the kind of tools that existed 
on the Elixir community, they 

784
00:51:38,760 --> 00:51:41,960
were not, they didn't have the 
resolution for that kind of fine

785
00:51:41,960 --> 00:51:44,600
grained dumb checkings that you 
want to do. 

786
00:51:44,880 --> 00:51:46,960
They're fine for clicking 
things, filling forms, 

787
00:51:46,960 --> 00:51:52,000
submitting forms. 
But this kind of dragging 3 

788
00:51:52,000 --> 00:51:55,800
pixels to the right and assert 
that the elements has switched 

789
00:51:55,800 --> 00:52:00,240
positions and this has been 
displaced 15 pixels down, that 

790
00:52:00,720 --> 00:52:04,400
that one is, is not part of 
their spirit to do this kind of 

791
00:52:04,400 --> 00:52:06,520
things. 
However, in the in the 

792
00:52:06,520 --> 00:52:12,560
JavaScript community, there are 
very mature tools that have that

793
00:52:12,560 --> 00:52:15,600
have this kind of concerns in 
mind. 

794
00:52:15,600 --> 00:52:18,400
And I'm thinking particularly 
the one we are using, it's 

795
00:52:18,400 --> 00:52:24,600
called play Playwright. 
Playwright it's essentially a 

796
00:52:24,600 --> 00:52:27,560
way to control the browser to 
click on things, but it is 

797
00:52:27,560 --> 00:52:32,480
designed for JavaScript. 
So what we are we were building 

798
00:52:33,800 --> 00:52:38,800
it's precisely, well integrate 
that into live view. 

799
00:52:38,800 --> 00:52:44,360
So you can write tests for this 
UI in Playwright, which at the 

800
00:52:44,360 --> 00:52:49,400
moment I believe only has an API
for in JavaScript itself or 

801
00:52:49,400 --> 00:52:54,160
TypeScript and Python because 
Python is very popular and they 

802
00:52:54,160 --> 00:52:57,040
also create a wrapper around it.
I don't know if the wrapper is 

803
00:52:57,040 --> 00:52:59,960
up to date is it's the 
JavaScript is like the gold 

804
00:52:59,960 --> 00:53:03,280
standard because that's what 
they are developing in and every

805
00:53:03,280 --> 00:53:06,680
other version of it is going to 
play catch, but it's never 

806
00:53:06,680 --> 00:53:09,640
going. 
It's always, I mean nothing is 

807
00:53:09,640 --> 00:53:12,400
going to be developed in for 
Python unless it's for 

808
00:53:12,400 --> 00:53:13,800
JavaScript. 
But everything is a port. 

809
00:53:15,000 --> 00:53:18,520
So the latest and the latest and
greatest is going to be the 

810
00:53:18,520 --> 00:53:24,000
JavaScript version of the tool. 
But the so we wanted to use that

811
00:53:24,080 --> 00:53:26,760
and it works beautifully. 
You can click on things, assert 

812
00:53:26,760 --> 00:53:28,520
where things are on the in the 
page. 

813
00:53:29,040 --> 00:53:31,120
The problem is that is not end 
to end testing. 

814
00:53:31,120 --> 00:53:35,600
That's only UI testing. 
The the only thing that you have

815
00:53:35,600 --> 00:53:39,600
to do is you in order to test 
that the editor is doing is 

816
00:53:39,600 --> 00:53:43,400
doing what you expect it to do. 
You have to for every test, you 

817
00:53:43,400 --> 00:53:46,400
have to seed the database 
because you want to test end to 

818
00:53:46,400 --> 00:53:48,240
end. 
You want to load the page and 

819
00:53:48,440 --> 00:53:53,480
the editor is going to get 
received information from live 

820
00:53:53,480 --> 00:53:55,600
view which in turns read it from
the database. 

821
00:53:55,880 --> 00:54:00,600
So you have to see that and you 
cannot see ecto from JavaScript,

822
00:54:01,320 --> 00:54:07,840
that is another thing. 
So we created a wrapper in or we

823
00:54:07,840 --> 00:54:12,840
created like a secret API in the
project that you can use to seed

824
00:54:13,240 --> 00:54:17,880
the database from JavaScript. 
But the cool part is that when 

825
00:54:17,880 --> 00:54:22,080
you start a test, the test gets 
assigned a connection to the 

826
00:54:22,080 --> 00:54:23,880
server and it sticks with a 
connection. 

827
00:54:24,320 --> 00:54:28,440
So we can do the parallel 
testing that you are used to in 

828
00:54:28,440 --> 00:54:31,560
lexer. 
By sporting, you know, six 

829
00:54:31,560 --> 00:54:34,920
different browser windows. 
You can run 6 texts at the same 

830
00:54:34,920 --> 00:54:38,320
time, each one is using a 
different server connection 

831
00:54:38,800 --> 00:54:40,520
which is own database 
transaction. 

832
00:54:41,240 --> 00:54:44,640
So you your tests are not 
polluting each other. 

833
00:54:45,520 --> 00:54:50,000
And then at the end you can make
assertions if you wanted all the

834
00:54:50,000 --> 00:54:52,720
state of the database. 
So you can, you know, see the 

835
00:54:52,720 --> 00:54:55,760
database with a page that you 
know has three items that you 

836
00:54:55,760 --> 00:55:00,080
want to move around and sort. 
You can then go move around and 

837
00:55:00,080 --> 00:55:03,680
solve them and assert that every
stage of the way that the UI is 

838
00:55:03,680 --> 00:55:07,400
behaving as you expected. 
And when you are done and think 

839
00:55:07,400 --> 00:55:10,600
it's a safe, you can go and 
check that on the Higgs 

840
00:55:10,600 --> 00:55:14,120
template. 
Things have uttered the 

841
00:55:14,120 --> 00:55:18,080
community position on the list. 
Now it's in the first position 

842
00:55:18,080 --> 00:55:20,440
of the list. 
So this kind of end to end 

843
00:55:20,520 --> 00:55:23,760
testing is something that at 
least I couldn't find any tool 

844
00:55:23,760 --> 00:55:27,840
that was good enough. 
Because what was good for Elixir

845
00:55:28,600 --> 00:55:31,800
lacked the granularity we needed
for the UI testing. 

846
00:55:32,520 --> 00:55:35,680
And the JavaScript tool in that 
already exists and is pretty 

847
00:55:35,680 --> 00:55:38,680
good for this kind of assertions
and and check insurance on the 

848
00:55:38,680 --> 00:55:43,080
browser didn't have a way of 
communicating with Elixir. 

849
00:55:43,080 --> 00:55:49,320
We decided that it was easier to
get the later and make it 

850
00:55:49,320 --> 00:55:51,600
communicate with Elixer 
properly. 

851
00:55:52,160 --> 00:55:56,840
And the magic was seen about in 
in making each connection 

852
00:55:57,480 --> 00:56:00,840
persistent. 
And it's so you you can run 

853
00:56:00,840 --> 00:56:05,600
tests in parallel as you're used
to with Elixer with an an each 

854
00:56:05,600 --> 00:56:07,000
one with its own database 
connection. 

855
00:56:07,640 --> 00:56:10,360
Nice, that's cool. 
Now like from personal 

856
00:56:10,360 --> 00:56:14,760
experience, UI testing is very I
think it's complicated. 

857
00:56:14,760 --> 00:56:17,200
I think it's hard because 
there's so many use cases, 

858
00:56:17,200 --> 00:56:19,640
right? 
How do you is there? 

859
00:56:19,720 --> 00:56:23,000
Do you just concentrate more on 
like core functionality of? 

860
00:56:24,080 --> 00:56:27,200
I don't think there is an 
answer, but I but I don't think 

861
00:56:27,200 --> 00:56:31,440
there is an answer, but there is
a beacon of hope, pun intended. 

862
00:56:31,880 --> 00:56:36,800
And the beacon of hope is AI in 
this case, because precisely I 

863
00:56:36,800 --> 00:56:38,480
wouldn't. 
I wouldn't say that writing test

864
00:56:38,480 --> 00:56:42,000
for the UI is massively 
complicated, but it's. 

865
00:56:42,040 --> 00:56:44,760
The randomization and like 
hitting all the edge cases I 

866
00:56:44,800 --> 00:56:46,440
think. 
Is yeah, I mean, I agree on 

867
00:56:46,440 --> 00:56:51,320
that, but but I think if you 
could pay, you know, paste all 

868
00:56:51,320 --> 00:56:55,760
good old paper and pencil, you 
can come up with most of these 

869
00:56:55,760 --> 00:56:59,200
cases or at least some 
experienced Qi engineer can come

870
00:56:59,200 --> 00:57:03,120
up with that. 
And one of the things in which I

871
00:57:03,120 --> 00:57:08,080
found AI to be very helpful if 
at this kind of repetitive task,

872
00:57:08,080 --> 00:57:15,200
you can, you can pretty much 
describe to, you know, copilot 

873
00:57:15,200 --> 00:57:20,160
or 10 GPT or anything that you 
want a test for playwright that,

874
00:57:20,400 --> 00:57:23,960
you know, clicks on the button 
with with on the box with ID, 

875
00:57:23,960 --> 00:57:28,040
whatever. 
Move Draxis around 50 pixels to 

876
00:57:28,040 --> 00:57:34,960
the left, release the mouse and 
assert that there is a you know,

877
00:57:35,680 --> 00:57:39,320
notification on the top right 
corner with the ID that says 

878
00:57:39,360 --> 00:57:40,600
change saved or something like 
that. 

879
00:57:41,640 --> 00:57:46,280
You can broadly describe what 
you want and the AI is going to 

880
00:57:46,280 --> 00:57:49,560
get you 90% there. 
So I found that this is the 

881
00:57:49,560 --> 00:57:53,080
writing test is something this 
kind of boring tests that are 

882
00:57:53,080 --> 00:57:57,320
easy to describe in plain 
English, but they are just over 

883
00:57:57,360 --> 00:57:59,600
repeating the same things at the
same steps over and over again 

884
00:58:01,400 --> 00:58:03,360
Exactly. 
And that's what they shine 

885
00:58:03,360 --> 00:58:07,200
about. 
So we, we think we can get 

886
00:58:07,200 --> 00:58:09,160
pretty good coverage. 
And I say we think because 

887
00:58:09,160 --> 00:58:13,560
again, this has been invented to
some extent 2-3 weeks ago. 

888
00:58:13,920 --> 00:58:20,280
So Bitcoin is not fully tested 
yet, but I found that we can 

889
00:58:20,280 --> 00:58:23,360
write tests faster than what we 
thought we could. 

890
00:58:23,360 --> 00:58:26,680
And AI is part of that. 
That's a really smart idea. 

891
00:58:26,680 --> 00:58:30,080
That's a good use case for AI to
write tests. 

892
00:58:31,320 --> 00:58:34,400
But besides I I must say one of 
the downside of the lexer is 

893
00:58:34,400 --> 00:58:37,640
that AI or assistants are not 
particularly good at the lexer 

894
00:58:37,640 --> 00:58:41,800
because it is still somewhat 
niche, whereas they are pretty 

895
00:58:41,800 --> 00:58:43,800
if you want. 
If you're writing Python or 

896
00:58:43,800 --> 00:58:47,280
JavaScript, they're pretty good 
and pretty consistent. 

897
00:58:47,480 --> 00:58:52,400
I would say like, I don't really
use AI much for writing code 

898
00:58:52,400 --> 00:58:56,200
unless it's like a very small 
function and it will sometimes 

899
00:58:56,200 --> 00:59:00,240
it'll get you like 60% there and
then you kind of have to finish 

900
00:59:00,240 --> 00:59:03,560
it in Alexa, you know? 
I'm the same in JavaScript. 

901
00:59:03,560 --> 00:59:10,360
I in fact in JavaScript I rarely
use AI for writing the things 

902
00:59:10,360 --> 00:59:13,880
and writing because it would 
take longer for me to explain 

903
00:59:13,880 --> 00:59:17,200
the AI what I want than it would
it would take for me to actually

904
00:59:17,200 --> 00:59:17,640
do. 
It well. 

905
00:59:17,680 --> 00:59:21,000
I also find the the refactoring 
sometimes takes you longer than 

906
00:59:21,000 --> 00:59:22,560
just writing it in the first 
place. 

907
00:59:24,440 --> 00:59:27,320
Yeah, sometimes, but I I say 
that if you're very experienced 

908
00:59:27,320 --> 00:59:32,080
on a on a language or 
technology, AI helps only with 

909
00:59:32,080 --> 00:59:35,600
the most repetitive task, but 
it's not particularly useful 

910
00:59:35,600 --> 00:59:39,840
with the more involve part of 
the development. 

911
00:59:40,960 --> 00:59:45,080
But for testing is great because
test you can almost test you can

912
00:59:45,400 --> 00:59:48,840
you know this What is the what 
is the name the Gherkin, the 

913
00:59:48,840 --> 00:59:53,120
Gherkin test syntax that is used
for for describing high level 

914
00:59:53,120 --> 00:59:57,160
scenarios in testing. 
You can almost you can feed if 

915
00:59:57,160 --> 00:59:59,360
you have someone, some Q 
engineer that actually write the

916
00:59:59,360 --> 01:00:04,080
Gherkin syntax for Wang 
something, if something, then 

917
01:00:04,080 --> 01:00:06,920
something. 
You can feed that straight 

918
01:00:06,920 --> 01:00:10,320
through an AI and it's going to 
come up with something fairly 

919
01:00:10,320 --> 01:00:12,640
close to what you need I. 
Love that I don't know why I 

920
01:00:12,640 --> 01:00:16,560
never thought about using AI for
like helping me generate tests 

921
01:00:16,560 --> 01:00:19,840
'cause that's a great idea 
that's even good for just simple

922
01:00:19,840 --> 01:00:22,920
unit tests too. 
Yes, or. 

923
01:00:22,960 --> 01:00:31,360
I mean for unit tests, yes or. 
But I I the thing with UI 

924
01:00:31,360 --> 01:00:36,640
testing is very prone to be 
described at this high level and

925
01:00:36,640 --> 01:00:38,320
you don't need all that 
information. 

926
01:00:38,880 --> 01:00:43,880
Whereas with unit testing, very 
often the Gherkin description is

927
01:00:43,880 --> 01:00:47,960
not enough because it has it 
needs to have context of what 

928
01:00:47,960 --> 01:00:51,280
your objects are like and what 
your map property. 

929
01:00:51,280 --> 01:00:53,040
If you have a map but the 
properties your map. 

930
01:00:53,280 --> 01:00:58,520
So whereas with this top level 
description you only need the 

931
01:00:58,520 --> 01:01:02,640
Gorkin thing with if you want to
make a, we get a testing that 

932
01:01:02,640 --> 01:01:06,160
needs to assert on a map that 
this key with this name has the 

933
01:01:06,160 --> 01:01:09,440
value you expect. 
It needs to know what the object

934
01:01:09,440 --> 01:01:12,200
shape. 
Is to share your seed data with 

935
01:01:12,240 --> 01:01:14,240
the. 
AI, well, you can with, you 

936
01:01:14,240 --> 01:01:20,560
know, copilot and such, but I 
think that for UI testing it's 

937
01:01:20,920 --> 01:01:23,240
great precisely because it 
doesn't need that much 

938
01:01:23,480 --> 01:01:25,960
information. 
You can describe things at the 

939
01:01:25,960 --> 01:01:31,400
very high level and you didn't 
and it gets you 90% of the way. 

940
01:01:31,920 --> 01:01:35,240
Yeah, no, that's, that's great. 
Well, I feel like you could 

941
01:01:35,240 --> 01:01:39,760
probably even use it to generate
slightly like randomized UI 

942
01:01:39,760 --> 01:01:43,880
actions too. 
Maybe I didn't think of that, 

943
01:01:43,880 --> 01:01:48,240
but as you know, this saying or 
this joke that QA engineer walks

944
01:01:48,240 --> 01:01:53,520
into a bar another, you know, 1 
beer, 100 beers -1 beer, a 

945
01:01:53,520 --> 01:01:57,240
lizard and, and everything 
breaks. 

946
01:01:57,440 --> 01:02:04,440
So that's maybe, maybe you, you 
can probably tell an AI to come 

947
01:02:04,720 --> 01:02:09,560
to come up with unexpected 
inputs for a function or a or a 

948
01:02:09,560 --> 01:02:12,600
or a test and see whether they 
break or not My. 

949
01:02:13,120 --> 01:02:18,840
My favorite engineer QA meme is 
the one where the engineer has 

950
01:02:18,880 --> 01:02:22,160
the bulletproof vest on and 
tells the QA engineer to shoot 

951
01:02:22,160 --> 01:02:23,360
him and he shoots him in the 
leg. 

952
01:02:25,160 --> 01:02:28,640
That is that that is pretty good
and in fact we since we in 

953
01:02:28,640 --> 01:02:33,000
Tactojar we like to dog food 
what we do which is the way you 

954
01:02:33,720 --> 01:02:37,360
you assert. 
I mean, since we are doing BICON

955
01:02:37,360 --> 01:02:42,320
and also our page is in BICON, 
we want to create our blog post 

956
01:02:42,320 --> 01:02:47,800
using BICON. 
And that is precisely the, it's 

957
01:02:47,800 --> 01:02:49,480
first of all, dog footing, which
is nice. 

958
01:02:50,000 --> 01:02:56,000
And secondly, if I, I mean, I, I
work on the editor, so I can use

959
01:02:56,000 --> 01:03:00,480
it pretty well, but it's nice to
get someone, especially if they 

960
01:03:00,480 --> 01:03:03,480
don't have a particularly 
technical background, drop it 

961
01:03:04,040 --> 01:03:06,440
using your app and see what they
do. 

962
01:03:06,880 --> 01:03:09,120
And it's the most humbling 
experience you're gonna have. 

963
01:03:09,520 --> 01:03:12,720
It's wild, isn't it? 
Exactly because you, you, you 

964
01:03:12,720 --> 01:03:16,760
see things so clearly that 
something should go, should be 

965
01:03:16,760 --> 01:03:20,040
done in a certain way. 
And if you drop someone with no 

966
01:03:20,040 --> 01:03:23,560
context, it's not, it's not 
evident for them that it should 

967
01:03:23,560 --> 01:03:24,360
be that way. 
Yeah. 

968
01:03:24,960 --> 01:03:27,360
And you think about it twice and
say, you know what? 

969
01:03:27,360 --> 01:03:28,240
It's right. 
It's not. 

970
01:03:28,240 --> 01:03:30,720
I mean, I know it's done that 
way, but it's not so obvious 

971
01:03:30,720 --> 01:03:33,360
that it should be done that way.
And it's very humbling. 

972
01:03:33,560 --> 01:03:36,280
Yeah, what I always say too is 
the engineer that built the 

973
01:03:36,280 --> 01:03:40,040
feature is the worst person to 
QA test because. 

974
01:03:40,040 --> 01:03:41,800
They're only. 
Going to do it the way they 

975
01:03:41,840 --> 01:03:43,800
wrote the feature in that. 
Order you're going. 

976
01:03:44,120 --> 01:03:46,920
You're only going to work to 
walk the golden path. 

977
01:03:47,000 --> 01:03:49,160
Yeah, you're only. 
Going to use it the way you 

978
01:03:49,200 --> 01:03:51,760
intended it to be used because 
you're not, you're so close to 

979
01:03:51,760 --> 01:03:56,480
the problem. 
I used to do a lot of industrial

980
01:03:56,480 --> 01:04:00,720
automation, so like PLCS and 
touch screens and machine 

981
01:04:00,720 --> 01:04:07,000
timing, and I would write this 
stuff the way it was intended to

982
01:04:07,000 --> 01:04:09,560
be used. 
And then when I unleashed it 

983
01:04:09,560 --> 01:04:13,560
into testing and started letting
other factory workers and 

984
01:04:13,560 --> 01:04:18,640
operators use my equipment, they
would like immediately break 

985
01:04:18,640 --> 01:04:22,200
things because they were like 
multi touch in the touch screen 

986
01:04:22,400 --> 01:04:25,200
doing everything that, you know,
I never thought about. 

987
01:04:25,200 --> 01:04:29,200
And I was like, all right, we 
have to put locks and disable 

988
01:04:29,200 --> 01:04:31,440
buttons in certain orders of 
things and. 

989
01:04:32,080 --> 01:04:33,160
You just don't think. 
About it. 

990
01:04:33,600 --> 01:04:37,400
That looks pretty cool because 
I'm somewhat involved into, you 

991
01:04:37,400 --> 01:04:41,080
know, home automation and I do 
things with Arduino and so on, 

992
01:04:41,400 --> 01:04:46,320
and I find that feel pretty 
mesmerizing. 

993
01:04:46,840 --> 01:04:53,480
Yeah, it was fun. 
I, I enjoyed it, but it is also 

994
01:04:53,480 --> 01:04:57,200
what led me to become more of a 
software engineer because I, I 

995
01:04:57,200 --> 01:05:02,000
was like, I want to not be stuck
to a specific factory every day.

996
01:05:02,440 --> 01:05:04,640
Now, you know, software 
engineer, I can write code 

997
01:05:04,640 --> 01:05:07,880
wherever my laptop goes. 
So that was kind of like why I 

998
01:05:07,880 --> 01:05:11,120
exited. 
But it was cool, like when you 

999
01:05:11,120 --> 01:05:15,720
build equipment and then see it 
functioning and creating a 

1000
01:05:15,720 --> 01:05:18,640
product, it's it's a pretty cool
accomplishment. 

1001
01:05:19,440 --> 01:05:24,000
It is there is something 
beautiful by seeing the physical

1002
01:05:24,800 --> 01:05:28,560
facet of your, of the somewhere 
you, you build. 

1003
01:05:29,320 --> 01:05:35,040
Yeah. 
And that's why we found that 

1004
01:05:35,040 --> 01:05:39,080
even though if it's not physical
dog food in your project, so you

1005
01:05:39,080 --> 01:05:44,160
use them yourself, it's probably
the only way for you to get 

1006
01:05:45,240 --> 01:05:49,200
honest feedback fast enough. 
Because you can always arrange 

1007
01:05:49,240 --> 01:05:52,760
like, you know, usual testing 
sessions, the sessions and you 

1008
01:05:52,760 --> 01:05:54,840
can find users to test what you 
do. 

1009
01:05:55,120 --> 01:05:59,720
But when you when maybe not so 
much you because precisely you 

1010
01:05:59,720 --> 01:06:03,320
are blind for you like with 
these blinds that the horses 

1011
01:06:03,320 --> 01:06:06,720
have. 
So you only look forward and you

1012
01:06:06,720 --> 01:06:09,240
know what you have to do. 
But when you get someone that 

1013
01:06:09,240 --> 01:06:13,000
sees in this case because we are
a remote, but that's it's two 

1014
01:06:13,000 --> 01:06:17,640
seats from you, and you see that
they have no clue how to use 

1015
01:06:17,640 --> 01:06:20,840
things that you see so clearly, 
how should it should be used? 

1016
01:06:23,400 --> 01:06:26,000
That is both. 
I mean, again, both humbling and

1017
01:06:26,000 --> 01:06:29,480
very very helpful, because you 
can iterate much faster than you

1018
01:06:29,480 --> 01:06:33,000
could otherwise. 
Yeah, I have a superpower in 

1019
01:06:33,280 --> 01:06:37,640
breaking all my Co workers code.
Like they'll hate when IQA test 

1020
01:06:37,640 --> 01:06:41,920
their products cuz I just I go 
and they'll make fun of me. 

1021
01:06:41,920 --> 01:06:45,200
They'll be like, and then, you 
know, I hung upside down, turned

1022
01:06:45,200 --> 01:06:49,240
off my Wi-Fi and dunked my phone
in water and found this bug. 

1023
01:06:52,480 --> 01:06:57,480
Well, I I think at the moment, 
since the where is this 

1024
01:06:57,480 --> 01:07:03,280
internally everyone at doctor, 
it's to some extent AQA yeah. 

1025
01:07:03,480 --> 01:07:07,240
And we are aware that we have 
still a lot of work to do for. 

1026
01:07:07,240 --> 01:07:11,040
So the the editor which I'm, I'm
talking about on my side of 

1027
01:07:11,040 --> 01:07:15,320
things, editor is up to the task
with the best of the industry 

1028
01:07:15,520 --> 01:07:21,040
because at the end we are, we 
just released version 0.2. 

1029
01:07:21,760 --> 01:07:29,520
So we still have a lot to do on 
the UI side of things, but the 

1030
01:07:29,520 --> 01:07:32,320
foundation was there because 
again like with Bacon, the most 

1031
01:07:32,320 --> 01:07:35,920
important part was to, you know,
validate the technology that we 

1032
01:07:35,920 --> 01:07:40,280
could make ACMS in which you 
serve live view pages. 

1033
01:07:40,280 --> 01:07:45,640
And when you make a change, we 
could do hot reload and module 

1034
01:07:47,560 --> 01:07:51,400
in runtime and the page would 
update and it would be compiled 

1035
01:07:51,400 --> 01:07:55,040
and fast. 
That was like the thing you have

1036
01:07:55,040 --> 01:07:58,040
to validate that was possible. 
And then everything around is 

1037
01:07:58,040 --> 01:07:59,240
tooling. 
Yeah. 

1038
01:08:00,000 --> 01:08:03,120
So the idea of Beacon is 
deceptively simple. 

1039
01:08:03,160 --> 01:08:12,640
Is that compile Higgs templates 
or pages into modules into live 

1040
01:08:12,640 --> 01:08:15,960
view, essentially modules that 
you can replace in runtime. 

1041
01:08:17,359 --> 01:08:21,840
And once you do that, you create
stooling around and that's that 

1042
01:08:21,840 --> 01:08:23,399
becomes Acms. 
Yeah. 

1043
01:08:23,840 --> 01:08:26,319
Yeah, because it is what it is, 
a CMS. 

1044
01:08:26,760 --> 01:08:33,240
It's a way of, you know, 
managing content without having 

1045
01:08:33,240 --> 01:08:36,359
to reboot. 
Essentially you make changes and

1046
01:08:36,359 --> 01:08:39,680
the changes get published and 
new users get the new content 

1047
01:08:40,319 --> 01:08:45,960
and and you don't on a compile 
language with with content that 

1048
01:08:45,960 --> 01:08:48,720
is not a static but it has 
itself to be compiled. 

1049
01:08:50,160 --> 01:08:52,600
Elixir. 
It's one of the few technology 

1050
01:08:52,600 --> 01:08:55,279
that is has that built in the 
language. 

1051
01:08:55,479 --> 01:08:58,800
The loading models in runtime is
great. 

1052
01:08:59,279 --> 01:09:03,520
The architecture of routing and 
rendering and using the ads 

1053
01:09:03,520 --> 01:09:08,399
table to speed up finding paths.
It's impressive. 

1054
01:09:08,520 --> 01:09:12,160
You guys, you have a really cool
project, that's for sure. 

1055
01:09:13,080 --> 01:09:18,160
I must say I cannot take any 
credit for that, but it is it is

1056
01:09:18,160 --> 01:09:20,960
that is the part of the 
technology that was the core and

1057
01:09:20,960 --> 01:09:25,560
everything around this tooling. 
And likewise with the editor. 

1058
01:09:25,840 --> 01:09:29,240
The core technology or the core 
thing we have to validate is 

1059
01:09:29,240 --> 01:09:33,479
that we could transform Higgs 
templates into some kind of AST.

1060
01:09:33,479 --> 01:09:38,000
That was that we could 
manipulate in the browser and 

1061
01:09:38,000 --> 01:09:42,080
and for and reverse get that 
modify AST and serialize it 

1062
01:09:42,080 --> 01:09:47,920
back. 
Once that was done, we need we 

1063
01:09:48,680 --> 01:09:51,399
that we could do some kind of 
nice drop and drop. 

1064
01:09:52,000 --> 01:09:54,320
And now we have those two 
things, those two pieces 

1065
01:09:54,320 --> 01:09:57,280
together. 
We know we can move things 

1066
01:09:57,280 --> 01:10:00,800
around the page. 
We know we can get from Hicks to

1067
01:10:02,520 --> 01:10:06,720
AST and from AST to Hicks again.
Everything else is tooling. 

1068
01:10:07,280 --> 01:10:10,440
Everything else is nice, 
controls to make the phone work 

1069
01:10:10,440 --> 01:10:16,480
bigger the the the making it 
bold, increasing the margin, 

1070
01:10:17,200 --> 01:10:19,480
setting the columns or the 
styles of the grid. 

1071
01:10:20,080 --> 01:10:23,000
But it's tooling. 
And now it's when we're going to

1072
01:10:23,040 --> 01:10:28,080
put the 5th gear and just go 
through the process of making 

1073
01:10:28,080 --> 01:10:30,600
these not only work, but be nice
to use. 

1074
01:10:30,880 --> 01:10:33,760
Yeah, yeah, for sure. 
How do you track like your 

1075
01:10:33,760 --> 01:10:37,760
performance benchmarking and 
stuff with your visual editor? 

1076
01:10:37,880 --> 01:10:41,720
Are there any metrics you keep 
track of to make sure things 

1077
01:10:41,720 --> 01:10:45,280
aren't getting less performant 
as you add features and options?

1078
01:10:47,640 --> 01:10:51,440
I'm not very concerned about 
that to be honest, because the 

1079
01:10:51,440 --> 01:10:54,600
performance is coming. 
First of all. 

1080
01:10:54,920 --> 01:10:59,120
One of the three reasons we 
choose as well is precisely, it 

1081
01:10:59,120 --> 01:11:03,120
is very performant. 
I'm not kidding if I say that is

1082
01:11:03,360 --> 01:11:06,680
sometimes maybe accelerating but
it's close. 

1083
01:11:06,680 --> 01:11:10,560
Sometimes depending what you do 
is it can be 3 or 4 times faster

1084
01:11:10,560 --> 01:11:13,280
than React in some extent 
because it's compiled. 

1085
01:11:14,160 --> 01:11:18,480
It is when because you know 
without going into the details, 

1086
01:11:18,560 --> 01:11:20,200
they are reactors due to 
checking. 

1087
01:11:20,800 --> 01:11:24,920
So when you change the property 
and you know that some part of 

1088
01:11:24,920 --> 01:11:29,480
the AST gets embedded in because
you know you have make a change 

1089
01:11:29,480 --> 01:11:32,160
that that change may have 
affected this section of the 

1090
01:11:32,160 --> 01:11:36,040
page. 
React use uses OK, title. 

1091
01:11:36,160 --> 01:11:40,480
I need to I changed this title. 
This node uses the title, No OK 

1092
01:11:40,480 --> 01:11:41,920
Next node this uses the title, 
no. 

1093
01:11:41,920 --> 01:11:44,120
What about the children? 
These children uses the title. 

1094
01:11:44,120 --> 01:11:46,960
No, the children uses the title,
no, The children, these children

1095
01:11:46,960 --> 01:11:49,320
does use the title. 
OK, I have to go to this node, 

1096
01:11:49,640 --> 01:11:54,600
update the title and then go out
and then carry on checking if 

1097
01:11:54,720 --> 01:11:59,840
every node had I mean had any 
dependency on this property. 

1098
01:11:59,840 --> 01:12:03,160
So it has to be updated, but 
with as well as well. 

1099
01:12:03,160 --> 01:12:07,560
Is pretty clever in the sense 
that since your code is analyzed

1100
01:12:07,560 --> 01:12:12,560
in compile time, it know it 
knows exactly what has to change

1101
01:12:12,560 --> 01:12:18,760
when this property changes. 
So if you have a variable for a 

1102
01:12:18,760 --> 01:12:24,640
name and you display this name 
next to the name of the and the 

1103
01:12:24,640 --> 01:12:28,560
avatar in the right corner and 
then also somewhere down below, 

1104
01:12:29,360 --> 01:12:33,760
when you update the name of the 
user, it knows it has to go here

1105
01:12:33,760 --> 01:12:38,280
and here and nowhere else. 
So this kind of a dates are very

1106
01:12:38,280 --> 01:12:40,080
performant. 
And also the application itself,

1107
01:12:40,120 --> 01:12:45,360
it is very small. 
The payout I mean, because, 

1108
01:12:45,760 --> 01:12:48,640
because it since it's compiled, 
it doesn't have a runtime 

1109
01:12:49,840 --> 01:12:52,000
because it knows exactly what 
features you use. 

1110
01:12:52,640 --> 01:12:55,240
And if you don't use something 
that is not bundled. 

1111
01:12:55,560 --> 01:12:59,320
So if you don't happen to not 
use, you know, fading 

1112
01:12:59,320 --> 01:13:02,120
animations, you don't have the 
code for fading animations. 

1113
01:13:02,480 --> 01:13:08,840
So that that makes that makes is
built very performant. 

1114
01:13:10,360 --> 01:13:14,360
And if there is any performance 
issue at the time, it would not 

1115
01:13:14,360 --> 01:13:16,520
be because of his wealth, 
because the application itself 

1116
01:13:17,280 --> 01:13:19,960
is not so big. 
It's a widget rather than an 

1117
01:13:19,960 --> 01:13:22,320
application. 
And yeah, I'm just making an 

1118
01:13:22,320 --> 01:13:24,640
artificial distinction between 
widget and application based on 

1119
01:13:24,640 --> 01:13:26,640
the size and complexity. 
OK. 

1120
01:13:27,280 --> 01:13:33,000
An application it's like a very 
complicated widget and and or a 

1121
01:13:33,000 --> 01:13:34,560
widget is a very simplified 
application. 

1122
01:13:34,920 --> 01:13:39,320
And we have built way complex 
application with as well. 

1123
01:13:39,320 --> 01:13:40,600
And that has never been a 
problem. 

1124
01:13:40,600 --> 01:13:43,080
So I this shouldn't be approving
either. 

1125
01:13:43,600 --> 01:13:50,760
And if and so far anything that 
doesn't use the network, it is 

1126
01:13:51,320 --> 01:13:54,680
instant even though the things 
that it's doing is quite complex

1127
01:13:54,680 --> 01:13:58,520
because every the AST is 
transverse and render as 

1128
01:13:58,520 --> 01:14:02,640
components. 
It goes through pages with many 

1129
01:14:02,640 --> 01:14:07,320
many items and it renders them 
within 100 or 200 milliseconds. 

1130
01:14:07,640 --> 01:14:09,520
That's awesome. 
That's awesome. 

1131
01:14:09,520 --> 01:14:10,720
Yeah. 
That's fast. 

1132
01:14:12,240 --> 01:14:13,760
I love that. 
That's really cool. 

1133
01:14:16,320 --> 01:14:20,160
Are there any upcoming features 
that you can talk about that 

1134
01:14:20,160 --> 01:14:24,040
you're excited about or current 
current features you're working 

1135
01:14:24,040 --> 01:14:27,240
on? 
Well, the feature we're working 

1136
01:14:27,240 --> 01:14:32,040
on, it's just, I think they can 
be summarized on improving the 

1137
01:14:32,040 --> 01:14:34,960
editor, at least the one I'm 
working on myself, because the 

1138
01:14:34,960 --> 01:14:37,960
editor, it can, you know, allows
you to drag and drop and modify 

1139
01:14:37,960 --> 01:14:40,640
classes. 
But we turn, we need to turn 

1140
01:14:40,640 --> 01:14:43,440
that into a more amicable 
interface. 

1141
01:14:43,840 --> 01:14:47,880
So you can expect that within 
the the next weeks, you're going

1142
01:14:47,880 --> 01:14:51,320
to see first of all, a revamp of
the UI because we're going to 

1143
01:14:51,320 --> 01:14:58,240
start using Station UI, which is
UI library intern that we create

1144
01:14:58,240 --> 01:15:01,480
internally by Doctor. 
And it's going to be published 

1145
01:15:01,480 --> 01:15:04,000
very soon. 
Maybe by the time you listen to 

1146
01:15:04,000 --> 01:15:05,720
this, it has been published 
already. 

1147
01:15:07,360 --> 01:15:12,320
And that is going to first of 
all, make the older UI feel more

1148
01:15:12,320 --> 01:15:15,200
modern and cohesive. 
And also, it's going to speed up

1149
01:15:15,200 --> 01:15:20,400
a lot the development of the 
kind of features most 

1150
01:15:20,400 --> 01:15:25,600
non-technical users would expect
or would hope the editor needs 

1151
01:15:25,600 --> 01:15:30,360
to to have. 
I'm talking if you ever write on

1152
01:15:30,360 --> 01:15:35,680
on something like, you know, 
Office, for instance, and you 

1153
01:15:35,680 --> 01:15:39,320
select A title, immediately on 
the side you have a set of 

1154
01:15:39,400 --> 01:15:42,360
panels to, you know, change the 
font size, change the size, then

1155
01:15:42,800 --> 01:15:46,880
maybe change the indentation. 
All of that needs to be there. 

1156
01:15:47,440 --> 01:15:50,200
And we're going through, we're 
going to turn through all of 

1157
01:15:50,200 --> 01:15:54,560
these features pretty quickly 
precisely because we can 

1158
01:15:54,560 --> 01:15:57,120
leverage live view. 
So we don't need an API for all 

1159
01:15:57,120 --> 01:16:00,080
of these changes. 
And we have this component 

1160
01:16:00,080 --> 01:16:02,600
library that we have been 
created for months now. 

1161
01:16:03,360 --> 01:16:07,160
And so we can reuse most of the 
controls and we'll have to work 

1162
01:16:07,160 --> 01:16:09,520
with the styles or CSS. 
We just drop an input, we just 

1163
01:16:09,520 --> 01:16:14,880
drop a button, we just drop a 
select and and that should work 

1164
01:16:14,880 --> 01:16:18,360
automatically. 
So we anticipate hopefully that 

1165
01:16:18,360 --> 01:16:21,000
we're going to go through them 
at pretty high speed. 

1166
01:16:21,560 --> 01:16:24,880
Awesome, that's exciting. 
I'm excited to watch this 

1167
01:16:24,880 --> 01:16:30,240
project develop more and I've 
been slowly digging through code

1168
01:16:30,240 --> 01:16:32,160
base. 
Maybe I can even, maybe I'll 

1169
01:16:32,160 --> 01:16:36,960
even contribute at some point 
cuz this project is cool and 

1170
01:16:37,760 --> 01:16:42,000
it's very similar to a lot of 
the internal tooling that I've 

1171
01:16:42,000 --> 01:16:45,920
been using at HGA. 
So I'm keeping my eye on it and 

1172
01:16:45,920 --> 01:16:49,600
it's very cool. 
And I appreciate you taking the 

1173
01:16:49,600 --> 01:16:54,880
time to chat with me today and 
talk about this because I think 

1174
01:16:54,880 --> 01:16:59,240
people forget how much 
JavaScript is is still used on 

1175
01:16:59,600 --> 01:17:04,000
front end web applications. 
And just to let, I mean, my 

1176
01:17:04,000 --> 01:17:09,840
advice would be to even though 
you may prefer with good, with 

1177
01:17:09,840 --> 01:17:16,040
good reason to do things in, in 
live view or Elixir, don't be 

1178
01:17:16,040 --> 01:17:20,200
afraid of just going down, going
closer to the metal occasionally

1179
01:17:20,200 --> 01:17:24,640
because sometimes you do. 
And the JavaScript ecosystem has

1180
01:17:24,640 --> 01:17:27,720
improved a lot in the last 
decade because some people, 

1181
01:17:27,720 --> 01:17:32,720
maybe some people haven't write 
JavaScript since the old days 

1182
01:17:33,280 --> 01:17:38,840
and they probably get they 
still, they have the bad reps 

1183
01:17:38,840 --> 01:17:42,280
that JavaScript had in the time 
has stuck with them and model 

1184
01:17:42,280 --> 01:17:45,800
JavaScript has it's almost a 
different language from what it 

1185
01:17:45,800 --> 01:17:50,320
was a decade ago. 
So and also JavaScript 

1186
01:17:50,320 --> 01:17:54,720
frameworks, whatever you choose,
whether it's React or Spelt or 

1187
01:17:54,720 --> 01:18:02,120
View, they come a long way in to
making development economic. 

1188
01:18:02,400 --> 01:18:04,880
Yeah, the only thing that's hard
to keep up with with JavaScript 

1189
01:18:04,880 --> 01:18:09,640
is the frameworks. 
I, I, I think the, you know, the

1190
01:18:09,640 --> 01:18:12,760
gold rush of the framework has 
faded away to some extent. 

1191
01:18:12,760 --> 01:18:16,600
It's not because, you know, 
this, this trope old trope that 

1192
01:18:17,120 --> 01:18:19,160
there is a new JavaScript 
framework every week. 

1193
01:18:21,640 --> 01:18:26,400
I, I think it's looking like 
right now with the eyes every 

1194
01:18:26,560 --> 01:18:30,720
week there is a new AI thing 
popping up like mushrooms in, in

1195
01:18:30,720 --> 01:18:34,320
fall and you cannot keep track 
of everything that's going on. 

1196
01:18:35,000 --> 01:18:41,080
But time we tell, I know that we
think three years, four years, 

1197
01:18:41,440 --> 01:18:45,280
they will be there will be 5 
major players or so as it 

1198
01:18:45,280 --> 01:18:48,760
happens always with most 
technologies, you're going to 

1199
01:18:48,760 --> 01:18:54,920
have whatever it is Open Eye and
Tropic and maybe some it doesn't

1200
01:18:54,920 --> 01:18:57,880
exist yet, but it will exist 
within months and it's going to 

1201
01:18:58,080 --> 01:19:01,640
take up very quickly and a lot 
of the others who are going to 

1202
01:19:01,640 --> 01:19:05,200
just fade away. 
So if you are one of those 

1203
01:19:05,200 --> 01:19:09,640
people who hasn't looked at 
JavaScript in many years, you 

1204
01:19:09,640 --> 01:19:14,960
will be surprised that you know 
this is not as Wild West as the 

1205
01:19:14,960 --> 01:19:17,520
used to be. 
Now things have the dust has 

1206
01:19:17,520 --> 01:19:23,960
settled and they're clear, clear
to say prominent frameworks that

1207
01:19:23,960 --> 01:19:25,840
you are safe if you choose one 
of them. 

1208
01:19:26,200 --> 01:19:27,960
Even though explanation still 
happens. 

1209
01:19:28,480 --> 01:19:34,320
There is is not is not the that 
it used to be where there was a 

1210
01:19:34,320 --> 01:19:38,880
new framework in town every 
other week and everyone has to 

1211
01:19:38,880 --> 01:19:40,880
try and use the very latest and 
greatest. 

1212
01:19:41,400 --> 01:19:44,720
You heard it here guys, Miguel 
says use JavaScript not Elixir. 

1213
01:19:45,600 --> 01:19:52,080
No. 
No, that's awesome. 

1214
01:19:52,800 --> 01:19:57,680
Yeah, I thank you so much. 
If you have any last words or 

1215
01:19:57,680 --> 01:19:59,800
any any advice, Yeah. 
People before. 

1216
01:19:59,800 --> 01:20:03,800
Well in this case it's just go 
around to the same thing that 

1217
01:20:03,960 --> 01:20:06,320
JavaScript and Elixir. 
Then it's not an either or. 

1218
01:20:07,080 --> 01:20:07,800
I agree. 
Yeah, completely. 

1219
01:20:08,200 --> 01:20:11,040
It's not an either or. 
In fact, if you're doing things 

1220
01:20:11,040 --> 01:20:13,840
that are complex enough 
visually, chances are you're 

1221
01:20:13,840 --> 01:20:18,520
going to need both. 
So just don't be scared to just 

1222
01:20:19,560 --> 01:20:23,560
if you're the same way. 
You shouldn't be scared of using

1223
01:20:23,920 --> 01:20:26,800
a Rust packets within from 
Elixir if you have to. 

1224
01:20:27,280 --> 01:20:32,160
You shouldn't be scared of using
a JavaScript component in your 

1225
01:20:32,160 --> 01:20:34,600
page if you have to you. 
Have to be willing to use the 

1226
01:20:34,680 --> 01:20:39,880
right tool for the job, right? 
Yes, I mean because if the the 

1227
01:20:39,880 --> 01:20:42,880
same goes if you had the the 
only thing, if the only tool you

1228
01:20:42,880 --> 01:20:45,280
have is a hammer. 
Every problem, every problem 

1229
01:20:45,280 --> 01:20:49,240
looks like a like a nail. 
And sometimes it's not a nail, 

1230
01:20:49,240 --> 01:20:51,520
sometimes the screw a unique 
mouth Ness. 

1231
01:20:54,040 --> 01:20:55,960
Couldn't, couldn't have said it 
better myself. 

1232
01:20:56,720 --> 01:20:58,640
All right, Miguel, thank you so 
much. 

1233
01:20:58,640 --> 01:21:02,280
And for everyone that tuned in, 
thank you for joining us and I 

1234
01:21:02,280 --> 01:21:03,840
hope you guys all have a good 
weekend. 

1235
01:21:05,240 --> 01:21:06,800
Thank you for having. 
Me Hi, I'm Jacob. 

1236
01:21:06,800 --> 01:21:10,480
My YouTube channel and podcast 
reach thousands of engaged 

1237
01:21:10,480 --> 01:21:13,480
Elixir developers every month. 
If you're looking to promote 

1238
01:21:13,480 --> 01:21:17,240
your developer tools, services, 
or job opportunities to a 

1239
01:21:17,240 --> 01:21:19,840
focused audience of Elixir 
professionals, head to 

1240
01:21:19,840 --> 01:21:23,440
elixirmentor.com and let's 
discuss sponsorship options 

1241
01:21:26,800 --> 01:21:27,400
Testing.
