1
00:00:02,080 --> 00:00:08,840
Testing what's up? 
I'm Jacob Blitzow, your Elixir 

2
00:00:08,840 --> 00:00:11,800
mentor and welcome to another 
exciting episode of the Elixir 

3
00:00:11,800 --> 00:00:14,080
Mentor Podcast. 
This is where we discuss 

4
00:00:14,080 --> 00:00:16,280
everything related to Elixir, 
from interviews with 

5
00:00:16,280 --> 00:00:19,280
enthusiasts, pioneers in the 
community, to innovative 

6
00:00:19,280 --> 00:00:21,680
projects and library shaping 
Elixir's future. 

7
00:00:21,840 --> 00:00:24,920
Today I'm thrilled to have 
Daniel Popoff, creator of 

8
00:00:24,920 --> 00:00:29,280
Phoenix Analytics, an embedded 
plug and play analytics tool for

9
00:00:29,280 --> 00:00:31,840
Phoenix application. 
Daniel has developed a 

10
00:00:31,840 --> 00:00:34,680
lightweight solution that 
seamlessly integrates with 

11
00:00:34,720 --> 00:00:38,000
Phoenix projects. 
Daniel, welcome to the show. 

12
00:00:38,000 --> 00:00:39,400
Thank you so much for being 
here. 

13
00:00:39,920 --> 00:00:42,760
Do you want to just give 
yourself a little introduction 

14
00:00:42,760 --> 00:00:45,240
of who you are? 
Yeah, I mean, I'll try. 

15
00:00:45,360 --> 00:00:47,920
Thank you very much. 
I mean, first of all for having 

16
00:00:47,920 --> 00:00:50,560
inviting me. 
So that's great. 

17
00:00:50,680 --> 00:00:52,160
Great to be here. 
Yeah. 

18
00:00:52,160 --> 00:00:56,440
My name is Daniel. 
I used to write quite some Alex 

19
00:00:56,440 --> 00:00:59,480
here back in the day, but then I
stopped for for I don't know, 

20
00:00:59,480 --> 00:01:02,280
5-6 years. 
I have quite a break, I would 

21
00:01:02,280 --> 00:01:05,880
say. 
And I was primarily doing 

22
00:01:05,920 --> 00:01:10,200
backends and I don't know, 
managing other people and 

23
00:01:10,200 --> 00:01:13,400
helping them actually to build 
big things. 

24
00:01:14,160 --> 00:01:19,120
And for the last year I started 
writing Alex here again. 

25
00:01:20,200 --> 00:01:23,560
And so glad to to be back, I 
would say. 

26
00:01:24,400 --> 00:01:29,440
And the, yeah, and the the 
library which which came out, I 

27
00:01:29,440 --> 00:01:36,480
think it's almost months ago, 
that was a coincidence of very 

28
00:01:36,480 --> 00:01:40,160
random events, honestly. 
Like I, I would never thought 

29
00:01:40,160 --> 00:01:43,520
that I gonna make a open source,
like serious open source project

30
00:01:43,520 --> 00:01:46,680
which, you know, going to get 
more than 10 stars. 

31
00:01:47,320 --> 00:01:49,400
But yeah, looks like people like
it. 

32
00:01:49,560 --> 00:01:52,200
And yeah, I'm planning to 
develop it further. 

33
00:01:53,120 --> 00:01:57,960
Yeah, it's awesome. 
I I checked out the GitHub today

34
00:01:58,000 --> 00:02:01,160
and I feel like you have like 
over 200 stars now. 

35
00:02:02,040 --> 00:02:06,360
People are liking it and I 
always love pretty read me files

36
00:02:06,360 --> 00:02:09,320
and your your markdown is 
beautiful. 

37
00:02:10,720 --> 00:02:15,320
I mean honestly, no, no one 
going to read the book without a

38
00:02:15,320 --> 00:02:17,720
nice cover so. 
That's true. 

39
00:02:18,280 --> 00:02:20,440
That's that's how it's supposed 
to be. 

40
00:02:21,000 --> 00:02:24,560
I mean, I just follow great 
examples and I didn't invent 

41
00:02:24,560 --> 00:02:28,040
anything new honestly. 
No, but hey, it's good. 

42
00:02:28,200 --> 00:02:31,440
I feel like people usually 
that's like the where you slack,

43
00:02:31,440 --> 00:02:32,760
right? 
You put in all your effort into 

44
00:02:32,760 --> 00:02:35,920
writing an awesome code and then
you're like, well I guess I 

45
00:02:35,920 --> 00:02:41,680
should do my read me. 
It's what was the the joke about

46
00:02:41,680 --> 00:02:44,400
Haskell code. 
It's so great that no one ever 

47
00:02:44,400 --> 00:02:46,520
going to run it again. 
Like. 

48
00:02:46,920 --> 00:02:49,440
Because it's so great. 
That's funny. 

49
00:02:49,440 --> 00:02:51,840
I don't know that, but now I 
want to look it up. 

50
00:02:52,680 --> 00:02:56,680
I should say, guys, I'm sorry 
for being like 12 minutes late 

51
00:02:56,680 --> 00:03:00,240
today. 
I had AI, had many technical 

52
00:03:00,240 --> 00:03:04,920
difficulties and Daniel is very 
patient with waiting for me to 

53
00:03:04,920 --> 00:03:06,360
figure them all out. 
So. 

54
00:03:06,800 --> 00:03:09,640
I was just cheating up on the 
background, so yeah. 

55
00:03:12,360 --> 00:03:17,920
So like what? 
What made you want to create an 

56
00:03:17,920 --> 00:03:21,960
analytics tool that you 
integrate directly into a 

57
00:03:21,960 --> 00:03:24,800
Phoenix project versus just 
using something that already 

58
00:03:24,800 --> 00:03:26,640
exists? 
What problem were you trying to 

59
00:03:26,640 --> 00:03:27,360
solve? 
Or? 

60
00:03:29,440 --> 00:03:36,640
I mean, the problem I would say 
#1 I love to own data and have a

61
00:03:36,880 --> 00:03:40,560
control over what I'm running 
and what I'm using. 

62
00:03:41,240 --> 00:03:45,000
And I think nowadays it's 
becoming more and more important

63
00:03:45,800 --> 00:03:50,160
to, to own your, your data and 
do not rely on, let's say, third

64
00:03:50,160 --> 00:03:55,600
party analytics. 
And I think the second main 

65
00:03:55,600 --> 00:04:00,520
reason I wanted to have 
something what I can set up 

66
00:04:00,800 --> 00:04:04,600
within one commit, push it and I
have it. 

67
00:04:05,120 --> 00:04:09,320
So that was kind of the mindset 
which, and, and the goal which I

68
00:04:09,320 --> 00:04:14,000
wanted to achieve. 
I mean, by secret, I can tell if

69
00:04:14,000 --> 00:04:23,440
you add just the dependency into
your mix file and just integrate

70
00:04:23,440 --> 00:04:28,320
the plug like which, which the, 
the tracer, it's going to work. 

71
00:04:28,320 --> 00:04:31,480
So you just barely need to like 
2 lines and that's it. 

72
00:04:31,680 --> 00:04:35,840
Like configuration parts. 
It's, you know to to make your 

73
00:04:35,960 --> 00:04:39,560
life a bit more customizable, 
but honestly it's like 2 lines 

74
00:04:39,560 --> 00:04:42,240
of code which you need to add 
and you have it up and running. 

75
00:04:42,440 --> 00:04:45,600
That's awesome. 
And then does that include like 

76
00:04:45,600 --> 00:04:49,360
your admin dash and everything 
like all the routes are are 

77
00:04:49,360 --> 00:04:52,640
there and? 
OK, 3 lines router I forgot. 

78
00:04:52,640 --> 00:04:53,720
Yeah. 
OK, 3 lines. 

79
00:04:54,080 --> 00:04:56,400
All right. 
Well, I mean, that's impressive.

80
00:04:56,440 --> 00:05:00,560
And then as far as like events 
and stuff, can I do you just 

81
00:05:00,560 --> 00:05:03,320
create custom events for 
specific things you want to 

82
00:05:03,320 --> 00:05:06,080
track like button clicks or 
that's all taken care of? 

83
00:05:07,360 --> 00:05:10,920
Honestly, I, I thought about 
this, but amount of 

84
00:05:10,920 --> 00:05:15,320
customization, which you will 
need to actually do like goes a 

85
00:05:15,320 --> 00:05:18,080
bit more exponentially than 
linearly. 

86
00:05:18,640 --> 00:05:22,600
And what I'm tracing at the 
moment, like all of the requests

87
00:05:22,600 --> 00:05:26,160
which are coming to your server.
So if you, let's say you have a 

88
00:05:26,160 --> 00:05:29,440
single page application and, and
you're calling your back end 

89
00:05:29,440 --> 00:05:33,480
through the, through the API, 
obviously that's not going to 

90
00:05:33,480 --> 00:05:35,880
work. 
So, but if you use, let's say 

91
00:05:36,040 --> 00:05:41,800
live view, if you use the HTML 
controllers and, and things like

92
00:05:41,800 --> 00:05:45,800
that, it's going to work good 
enough. 

93
00:05:46,000 --> 00:05:50,040
Like for, for my purposes when I
was developing it, let's say I 

94
00:05:50,040 --> 00:05:56,200
have 3 or 4 projects and they're
very simple, all of them live 

95
00:05:56,200 --> 00:05:59,080
view, some of them, I think 
using HTML a bit. 

96
00:05:59,800 --> 00:06:04,280
And what I wanted to see how 
many users, how often they visit

97
00:06:05,480 --> 00:06:10,840
through, like when they visit, I
mean means during which part of 

98
00:06:10,840 --> 00:06:13,440
the day they use it and, and you
know, things like that. 

99
00:06:14,400 --> 00:06:19,000
And honestly, that was kind of 
my goal to, to, to get this data

100
00:06:19,600 --> 00:06:24,160
and all other charts were done, 
you know, like later on just to 

101
00:06:24,160 --> 00:06:28,560
maybe enrich a bit like amount 
of requests and, and, and things

102
00:06:28,600 --> 00:06:31,120
like that. 
And for the button clicks you 

103
00:06:31,120 --> 00:06:35,480
would need to to have heavily 
heavily rely on JavaScript I 

104
00:06:35,480 --> 00:06:41,360
think integration of of a live 
view. 

105
00:06:41,720 --> 00:06:43,640
Like AJS hook or something? 
Yeah. 

106
00:06:44,280 --> 00:06:48,600
Yeah, probably. 
And that's not where I wanted to

107
00:06:48,600 --> 00:06:53,160
go because I like back end guy 
100%. 

108
00:06:53,720 --> 00:06:58,040
When I need to write some 
JavaScript I always have like 

109
00:06:58,040 --> 00:07:02,960
some itchy feeling starting. 
I don't know why, but yeah, I'm 

110
00:07:02,960 --> 00:07:06,800
trying to overcome this. 
I I'm the same way. 

111
00:07:06,800 --> 00:07:08,600
I I. 
What is your background? 

112
00:07:08,600 --> 00:07:11,160
Do you come from JavaScript or 
what did you do before? 

113
00:07:11,160 --> 00:07:16,280
No, no, never, never. 
Because I always, so I came from

114
00:07:16,280 --> 00:07:21,560
like node JS and it's hard for 
me to go and write JavaScript 

115
00:07:21,560 --> 00:07:27,000
hooks and I it, it's, it's not 
the best, but at least you know,

116
00:07:27,000 --> 00:07:30,440
we have the ability to do it 
for, you know, at least like 

117
00:07:30,440 --> 00:07:36,120
client side things, right? 
But it is tough to go back to 

118
00:07:36,120 --> 00:07:41,840
the JavaScript world. 
I mean, maybe I would love to, 

119
00:07:41,840 --> 00:07:46,760
but I have a feeling that in the
last maybe 5 to 10 years, like 

120
00:07:46,960 --> 00:07:50,440
front end itself became so 
complicated. 

121
00:07:50,800 --> 00:07:54,200
I mean back end as well, right? 
I mean, this new tools, 

122
00:07:54,200 --> 00:07:56,280
technologies, they, they like 
flooded. 

123
00:07:56,280 --> 00:08:00,920
And since I was always focusing 
more on the back end, so I'm 

124
00:08:01,880 --> 00:08:06,080
feel much more free on the back 
end side of the of the server 

125
00:08:06,080 --> 00:08:09,480
than like on the client. 
Even though I had many attempts 

126
00:08:09,480 --> 00:08:12,120
to do to to do to write clients 
myself. 

127
00:08:12,120 --> 00:08:17,600
But I think you need to spend 
really good amount of time to to

128
00:08:17,600 --> 00:08:22,400
master it I would say. 
Yeah, I like back end so much. 

129
00:08:22,480 --> 00:08:24,040
I'm just so much more 
comfortable. 

130
00:08:24,040 --> 00:08:27,560
I'm the same way. 
And then like last week, I did a

131
00:08:27,560 --> 00:08:30,720
live stream where I was, you 
know, cleaning up a component 

132
00:08:30,720 --> 00:08:35,640
and just like struggling 
through, you know, the, the, the

133
00:08:35,640 --> 00:08:39,120
tailwind and everything. 
Someday, you know, I think if I 

134
00:08:39,120 --> 00:08:43,120
make a fool of myself enough on 
live streams, I'll become a 

135
00:08:43,120 --> 00:08:51,800
better front front end dev. 
I mean, The thing is, I must say

136
00:08:51,800 --> 00:08:54,240
it's, it's very, very much 
depends on, on your goals, 

137
00:08:54,240 --> 00:08:56,000
right? 
If, if you would like to be a 

138
00:08:56,000 --> 00:09:00,800
full stack, let's say engineer 
outside maybe of your 

139
00:09:00,800 --> 00:09:05,440
professional scope, I'm, I'm, 
I'm up for that because like I 

140
00:09:05,440 --> 00:09:09,280
had a bunch of experiments. 
I made the two games for the 

141
00:09:09,440 --> 00:09:14,360
Apple Watch and I was like, OK, 
I, I never done game Def right. 

142
00:09:14,360 --> 00:09:17,760
And, and most of us as 
developers came, became 

143
00:09:17,760 --> 00:09:22,680
developers because you know, one
day we had a dream to write the 

144
00:09:22,680 --> 00:09:24,840
game, which kind of conquer the 
whole world, right? 

145
00:09:25,680 --> 00:09:27,360
We're going to make 1,000,000 
out of it. 

146
00:09:29,200 --> 00:09:34,000
I, I was a bit more realistic, 
so I had this dream, but I would

147
00:09:34,000 --> 00:09:38,680
never try it out and, and I 
decided just to make it OK. 

148
00:09:38,680 --> 00:09:40,920
I never use Swift. 
I never attached the Apple 

149
00:09:40,920 --> 00:09:47,040
ecosystem like to write clients.
And you know, I spent six hours 

150
00:09:47,160 --> 00:09:51,440
and I made the MVP, so. 
And of course you know. 

151
00:09:51,960 --> 00:09:56,480
Space invaders where where like 
you can manipulate with a crown.

152
00:09:56,880 --> 00:10:00,200
OK, well, that's awesome. 
It's as well on my GitHub, you 

153
00:10:00,840 --> 00:10:02,040
can take a look. 
Nice. 

154
00:10:02,040 --> 00:10:06,000
I love that back in I used to 
only write Swift. 

155
00:10:06,000 --> 00:10:08,560
I was a big iOS dev for a for a 
minute. 

156
00:10:09,000 --> 00:10:13,080
But yeah, we all started to, you
know, the shiny object of game 

157
00:10:13,080 --> 00:10:15,880
dev, right? 
And then we all start just 

158
00:10:15,880 --> 00:10:20,840
building websites or ERP things 
and like super boring enterprise

159
00:10:20,840 --> 00:10:26,400
level software. 
Yeah, yeah, on very, very 

160
00:10:26,400 --> 00:10:30,800
outdated versions of even 
pleasant software. 

161
00:10:30,800 --> 00:10:35,160
But if it's very outdated, I'm 
not sure that you want to write 

162
00:10:35,160 --> 00:10:37,160
in it anymore. 
Right. 

163
00:10:37,200 --> 00:10:41,600
No, I agree. 
What what was your like? 

164
00:10:41,600 --> 00:10:46,440
What made you decide on the 
features you wanted in your 

165
00:10:46,440 --> 00:10:50,360
first release of of your Phoenix
Analytics? 

166
00:10:52,560 --> 00:10:57,360
I will maybe start with the Duck
DB because I think that's the 

167
00:10:57,360 --> 00:11:01,440
most abnormal thing. 
Yeah. 

168
00:11:01,440 --> 00:11:03,000
I wanted to talk to you about 
that one. 

169
00:11:03,040 --> 00:11:07,960
Yeah, yeah. 
So obviously once you bootstrap 

170
00:11:07,960 --> 00:11:12,760
the new Phoenix app, let's say 
you would like to have a Phoenix

171
00:11:12,840 --> 00:11:18,800
up and running, use Actor live. 
You you have 3 choices right? 

172
00:11:18,800 --> 00:11:24,160
You have SQL Lite, you have the 
most popular choice, Postgre and

173
00:11:24,160 --> 00:11:27,440
MySQL. 
So I was like, all right, none 

174
00:11:27,440 --> 00:11:32,440
of these databases honestly feed
for analytics purposes. 

175
00:11:32,480 --> 00:11:36,440
OK, some people might say you 
can install some extensions on 

176
00:11:36,440 --> 00:11:40,760
the Postgre and and etcetera. 
I, I 100% agree with that. 

177
00:11:41,880 --> 00:11:45,360
But it's not plug and play 
experience anymore, right? 

178
00:11:45,920 --> 00:11:51,040
And then, then I remembered that
once in a company, like 2-3 

179
00:11:51,040 --> 00:11:56,640
companies before, there were 
attempts to use tag DB, but it 

180
00:11:56,640 --> 00:12:02,160
was like very, very early 
beginning and was a bit laggy 

181
00:12:02,160 --> 00:12:05,400
and we didn't really end up 
using it. 

182
00:12:06,240 --> 00:12:11,160
But what really impressed me, it
was very fast, like to analyse 

183
00:12:11,160 --> 00:12:17,440
let's say million rows and give 
you a reply back like with all 

184
00:12:17,440 --> 00:12:19,640
the sum average functions 
whatsoever. 

185
00:12:20,640 --> 00:12:23,800
It was on like average 2 
milliseconds, right? 

186
00:12:24,440 --> 00:12:26,680
And. 
And if you take Postgre with the

187
00:12:26,680 --> 00:12:31,440
same data, absolutely same 
conditions and run like almost 

188
00:12:31,440 --> 00:12:35,600
same query, just like changing 
the syntax a bit, it's going to 

189
00:12:35,600 --> 00:12:43,360
take up to 2-3 seconds. 
And, and I was like, OK, so 

190
00:12:43,360 --> 00:12:47,600
million requests, that's that's 
a lot for, for indie website. 

191
00:12:48,360 --> 00:12:55,680
And actually 1,000,000 requests 
end up in the 90 megabyte file, 

192
00:12:56,560 --> 00:13:01,840
which I think everyone able to 
host whenever like and, and 

193
00:13:01,840 --> 00:13:05,560
whatever they want. 
If it's a self hosted solution, 

194
00:13:05,560 --> 00:13:12,120
if it's managed clouds, I think 
it's you know if it's fits very 

195
00:13:12,120 --> 00:13:14,120
well. 
How does duct DB? 

196
00:13:14,120 --> 00:13:15,520
And it decided just to stick 
this. 

197
00:13:16,280 --> 00:13:19,400
Yeah, it does. 
Is it just like is it embedded 

198
00:13:19,400 --> 00:13:23,200
in in your tool or do I have to 
have it set up in my project to 

199
00:13:23,200 --> 00:13:25,880
work? 
Or how does how does the OK? 

200
00:13:26,920 --> 00:13:29,640
You don't need to set up 
absolutely anything, it's just 

201
00:13:29,640 --> 00:13:32,280
as a SQ Lite like in terms of. 
OK. 

202
00:13:32,880 --> 00:13:36,680
Yeah, yeah, it's. 
In process database, so it's 

203
00:13:36,680 --> 00:13:41,280
persistent to the disk, but the 
biggest difference between let's

204
00:13:41,280 --> 00:13:46,680
say SQLite and Docdb that it's a
column based database. 

205
00:13:47,280 --> 00:13:50,080
So which means for the 
analytics, it's just blazingly 

206
00:13:50,080 --> 00:13:54,800
fast because when I was doing 
the first release, like all 

207
00:13:54,800 --> 00:13:59,240
these widgets which would you 
see on the dashboard, I didn't 

208
00:13:59,240 --> 00:14:02,480
even bother to write to to to 
make them asynchronous. 

209
00:14:02,480 --> 00:14:06,320
So all of them are synchronous 
in in the first release and no 

210
00:14:06,320 --> 00:14:09,760
one even noticed because the 
reply from Doug DB is instant. 

211
00:14:10,600 --> 00:14:13,800
Wow, I. 
I even forgot to do this, you 

212
00:14:13,800 --> 00:14:18,680
know, like when I built an MVPI 
was like, OK, I'll just shovel 

213
00:14:18,680 --> 00:14:23,640
in a bit more this widgets. 
And locally, of course, I didn't

214
00:14:23,640 --> 00:14:28,760
notice any you know was there. 
Was there anything that you 

215
00:14:28,760 --> 00:14:31,120
could do to notice the the 
delays though? 

216
00:14:31,120 --> 00:14:33,960
Or not really. 
Using that to be known. 

217
00:14:34,560 --> 00:14:36,760
Wow, that's impressive. 
That's pretty cool. 

218
00:14:37,080 --> 00:14:40,920
Now I I didn't really know what 
Duck TB was until I saw it in 

219
00:14:40,920 --> 00:14:46,400
your documentation. 
And it is actually made for like

220
00:14:46,760 --> 00:14:49,840
being an analytics database, 
which is pretty cool. 

221
00:14:51,440 --> 00:14:55,880
I think the one of the, I mean I
wouldn't say the most popular, 

222
00:14:55,880 --> 00:15:01,120
but the where I would use DACDB.
If you have larger piles of data

223
00:15:01,120 --> 00:15:04,280
which we need to go through, 
let's say overnight, you have 

224
00:15:04,280 --> 00:15:07,640
some pipelines which are 
aggregating certain things. 

225
00:15:08,560 --> 00:15:13,200
So you put them in whatever 
storage in whatever data lake 

226
00:15:13,280 --> 00:15:18,400
and then have DACDB on top to 
aggregate and analyse this data.

227
00:15:18,920 --> 00:15:25,320
So it's usually used like with 
some other technologies like TBT

228
00:15:25,880 --> 00:15:31,720
and I don't know, Parquet on S3 
when you have a lot of different

229
00:15:31,720 --> 00:15:35,400
files spread around, maybe even 
for the logs. 

230
00:15:35,840 --> 00:15:39,080
And then you have this DAG DB 
which is embeddable like in in 

231
00:15:39,080 --> 00:15:44,280
process database which can 
really fast analyse like huge 

232
00:15:44,280 --> 00:15:48,800
amounts of data. 
When you, what was like the most

233
00:15:48,800 --> 00:15:52,440
challenging thing when you first
started implementing like the 

234
00:15:52,440 --> 00:15:56,440
plug for request tracking or any
of that, and did you have to 

235
00:15:56,640 --> 00:16:01,800
worry about like a performance 
knock for your actual Phoenix 

236
00:16:01,800 --> 00:16:07,720
app? 
Yeah, I think it's in the past. 

237
00:16:07,960 --> 00:16:12,400
I was already doing this, but 
not on the Phoenix. 

238
00:16:13,560 --> 00:16:16,480
I was working at D Labs where we
used to work on 

239
00:16:16,480 --> 00:16:23,400
businessoffashion.com which was 
PHP website, but with a like 5 

240
00:16:23,400 --> 00:16:28,600
million views a day, sometimes 
maybe even sometimes fifteen 20 

241
00:16:28,600 --> 00:16:32,440
million views. 
And so it's became a high loaded

242
00:16:32,440 --> 00:16:39,640
project and we obviously had to 
do a lot of analytics and we had

243
00:16:39,640 --> 00:16:45,240
our own in house analytics, 
which was actually cheaper than 

244
00:16:45,240 --> 00:16:49,120
to pay Google advanced 
Analytics. 

245
00:16:49,880 --> 00:16:54,440
So and we had all these 
terabytes of data flying in 

246
00:16:54,800 --> 00:17:00,560
every second. 
And obviously there are some 

247
00:17:00,560 --> 00:17:05,440
tricks how how you can avoid 
performance issues. 

248
00:17:06,160 --> 00:17:11,839
The number one, you take what 
you need from the request and 

249
00:17:11,880 --> 00:17:15,240
and then just throw it in the in
the new process. 

250
00:17:16,079 --> 00:17:22,240
I mean like this found the task 
I was I was playing with that, 

251
00:17:23,200 --> 00:17:26,760
but when I was doing the geta 
testing, I saw that there is a 

252
00:17:26,760 --> 00:17:31,640
bit of a memory spike. 
So and then I actually realised 

253
00:17:33,000 --> 00:17:40,040
that when when you run this con 
function, I forgot like this 

254
00:17:44,120 --> 00:17:47,280
send before requests. 
So essentially like I don't 

255
00:17:47,280 --> 00:17:49,360
block the request to be 
processed. 

256
00:17:50,680 --> 00:17:54,520
So I do it in parallel. 
And actually once I figure out 

257
00:17:54,520 --> 00:17:56,400
how this plug architecture 
works. 

258
00:17:56,760 --> 00:18:01,720
So I just made the premature 
optimization by adding tasks 

259
00:18:01,720 --> 00:18:07,200
found and I just removed it like
task dot start and I just 

260
00:18:07,200 --> 00:18:13,880
removed it and then compare it 
to the the performance and it 

261
00:18:13,880 --> 00:18:17,760
was equal so. 
That's so you didn't have. 

262
00:18:17,800 --> 00:18:19,320
You don't have to worry about 
much. 

263
00:18:20,360 --> 00:18:22,760
No, no. 
That's awesome, as long as 

264
00:18:22,760 --> 00:18:25,760
you're not having a blocking 
task run. 

265
00:18:27,280 --> 00:18:30,080
No, no, no. 
And, and, and as well just, you 

266
00:18:30,080 --> 00:18:35,200
know, I think when, when I was 
testing it, obviously you have 

267
00:18:35,200 --> 00:18:39,960
some synthetic app right on, on,
on which you are playing around 

268
00:18:40,400 --> 00:18:42,840
and you and you cannot really 
cover all the cases. 

269
00:18:43,640 --> 00:18:48,480
And, and then I put it on my 
production and I saw that like 

270
00:18:48,720 --> 00:18:52,600
it was failing some requests 
for, for actual users. 

271
00:18:52,600 --> 00:18:57,720
And I was like, aha, so, and I 
found out like much more cases 

272
00:18:57,720 --> 00:18:59,800
to cover. 
So I hope I covered all of them.

273
00:19:00,600 --> 00:19:07,760
And yeah, so that's thanks God I
have my own production and to 

274
00:19:08,040 --> 00:19:11,000
test my own users and. 
Yeah. 

275
00:19:11,000 --> 00:19:13,120
And then you can just push 
directly to something in 

276
00:19:13,120 --> 00:19:15,040
production, right? 
And just. 

277
00:19:15,080 --> 00:19:20,280
I mean, it's, it's not, I don't 
know, like super popular 

278
00:19:20,280 --> 00:19:22,240
website, but still, you know, 
yeah. 

279
00:19:22,760 --> 00:19:25,680
Well, it's always good to have a
production environment, right? 

280
00:19:25,800 --> 00:19:27,760
Everything functions a little 
different. 

281
00:19:28,480 --> 00:19:32,200
Because the real users gonna 
find something for sure. 

282
00:19:32,320 --> 00:19:36,560
Like yeah, exactly. 
I saw a funny meme the other 

283
00:19:36,560 --> 00:19:39,480
day. 
It was, it was, it was like a 

284
00:19:39,480 --> 00:19:45,000
developer testing his code, like
pushing a stroller exactly how 

285
00:19:45,080 --> 00:19:46,440
he meant it. 
It was like what? 

286
00:19:46,440 --> 00:19:48,040
It was. 
It was like a stroller connected

287
00:19:48,040 --> 00:19:51,200
to a skateboard with a baby in 
the stroller. 

288
00:19:51,440 --> 00:19:53,160
You might have seen it. 
Yeah, yeah, yeah. 

289
00:19:53,320 --> 00:19:55,920
But it's hilarious. 
So it's like the dev testing it 

290
00:19:55,920 --> 00:19:59,400
like a dev only tests his code 
the way, you know, he thought 

291
00:19:59,400 --> 00:20:03,440
about using it up here, right. 
And then QA pretty much tests it

292
00:20:03,440 --> 00:20:07,160
the same way, but you know, just
for the intended purpose. 

293
00:20:07,480 --> 00:20:10,200
And then it was like in 
production, someone was like 

294
00:20:10,200 --> 00:20:12,800
doing a kickflip with the baby 
in the stroller. 

295
00:20:12,800 --> 00:20:17,560
Yeah, yeah. 
And that's just real life. 

296
00:20:17,560 --> 00:20:23,480
I, I remember I used to be in 
manufacturing and I would do a 

297
00:20:23,480 --> 00:20:27,400
lot of like, automation and like
PLC programming. 

298
00:20:27,400 --> 00:20:30,600
And, you know, you'd set up, you
know, your little touch screen, 

299
00:20:30,600 --> 00:20:34,040
your HDMI touch screen, whatever
you want to call it. 

300
00:20:34,440 --> 00:20:39,640
And like, I would start my 
processes the way I, you know, 

301
00:20:39,760 --> 00:20:42,920
intended them to start. 
But the second I told someone 

302
00:20:42,920 --> 00:20:47,480
else to use use like the new 
feature, they're like all over 

303
00:20:47,480 --> 00:20:51,560
the place trying to like multi 
touch and like do all these 

304
00:20:51,560 --> 00:20:55,120
things at the same time. 
And it just kind of opens your 

305
00:20:55,120 --> 00:20:58,640
eyes. 
Like you have to prevent 

306
00:20:59,000 --> 00:21:01,520
everything from happening if you
don't want it to happen. 

307
00:21:02,600 --> 00:21:06,200
Yeah, I mean the the happy part,
it's usually not enough. 

308
00:21:07,120 --> 00:21:10,320
Right. 
And yeah, you'd you'd realize 

309
00:21:10,320 --> 00:21:13,760
you did not think of every 
scenario when you wrote the 

310
00:21:13,760 --> 00:21:21,200
feature, which is pretty funny. 
I know we kind of touched on 

311
00:21:21,200 --> 00:21:28,080
this, but what are so Postgres 
is normally, you know, the go to

312
00:21:28,080 --> 00:21:33,840
database for Phoenix projects 
and when you include Duck DB and

313
00:21:33,840 --> 00:21:36,320
then I'm assuming your Phoenix 
projects are still using 

314
00:21:36,320 --> 00:21:42,000
Postgres, Yeah. 
Are there any any things that 

315
00:21:42,000 --> 00:21:46,000
you have to handle to have both 
databases in a project? 

316
00:21:47,120 --> 00:21:51,360
So that was the ultimate goal. 
Number one, it must be plug and 

317
00:21:51,360 --> 00:21:53,960
play. 
So no, you don't need to handle 

318
00:21:53,960 --> 00:22:00,360
absolutely anything except your 
project database itself and 

319
00:22:00,360 --> 00:22:04,480
that's it. 
So essentially in the second 

320
00:22:04,480 --> 00:22:11,160
version where I added Postgre 
SQL support, actually what I've 

321
00:22:11,320 --> 00:22:15,680
done on the background, I have 
still DAG DB running to do all 

322
00:22:15,680 --> 00:22:19,000
the heavy lifting and do the 
data analytics. 

323
00:22:20,240 --> 00:22:23,560
Just the treats not from the 
file anymore. 

324
00:22:23,800 --> 00:22:27,560
Because let's say if if you're 
using DAG DB file, it's going to

325
00:22:27,560 --> 00:22:32,480
read from your disk. 
But in case let's say you have 

326
00:22:32,480 --> 00:22:37,520
cluster of the apps or you have 
like some, some back ends start 

327
00:22:37,520 --> 00:22:40,040
and stopping and whatsoever. 
And to keep your data 

328
00:22:40,040 --> 00:22:43,480
persistence without any 
duplication and and and 

329
00:22:43,480 --> 00:22:46,600
etcetera. 
So I just put everything in the 

330
00:22:46,880 --> 00:22:53,600
post square SQL which is let's 
say managed by you if and store 

331
00:22:53,640 --> 00:22:58,920
all the data there and then DAC 
DB plugs in to the same 

332
00:22:58,920 --> 00:23:05,680
connection and pulls the data 
from there, which is apparently 

333
00:23:06,240 --> 00:23:10,360
X times faster if you would do 
it on native postgres. 

334
00:23:11,400 --> 00:23:17,000
Oh interesting, so I was just 
going to ask for like long term 

335
00:23:17,000 --> 00:23:20,800
data storage. 
It'll persist to Postgres then. 

336
00:23:21,400 --> 00:23:24,080
Yeah. 
That's cool, so all I have to do

337
00:23:24,080 --> 00:23:28,240
is worry about my database 
backup and I'll have everything 

338
00:23:28,240 --> 00:23:30,800
I need. 
Yeah, exactly. 

339
00:23:31,200 --> 00:23:34,560
OK, nice. 
So you're so doc DB is kind of 

340
00:23:34,560 --> 00:23:40,160
like just the the middle man to 
keep things fast for like real 

341
00:23:40,160 --> 00:23:45,000
time essentially. 
I mean, I was comparing rights. 

342
00:23:45,280 --> 00:23:47,880
I mean, I, I don't think that 
you really need to compare 

343
00:23:47,880 --> 00:23:51,840
rights because what's what I've 
done, I have a small service 

344
00:23:51,960 --> 00:23:56,280
which I called Batcher because 
what it does, it just batch the 

345
00:23:56,280 --> 00:24:01,680
logs and stores, I think every, 
every second I made. 

346
00:24:03,080 --> 00:24:08,520
So it's either batch of 1000 
requests, either every second. 

347
00:24:08,520 --> 00:24:13,240
So whatever comes first, it's 
gonna, it's gonna to the 

348
00:24:13,280 --> 00:24:17,480
inserts, either to the DAC DB, 
either to the Postgre SQL based 

349
00:24:17,720 --> 00:24:22,200
on how you configure it. 
And yeah, I shouldn't really. 

350
00:24:22,240 --> 00:24:30,400
I mean mean much because even if
you lose, let's say 10% of those

351
00:24:30,440 --> 00:24:35,280
requests, right, you're still 
going to get more or less 

352
00:24:35,280 --> 00:24:38,680
meaningful data who's using your
app, how they they're using it. 

353
00:24:39,480 --> 00:24:44,640
I mean for example, if you see 
Google Analytics, how it's 

354
00:24:44,640 --> 00:24:51,600
called now GTGTM for whatever, 
they they no longer show you 

355
00:24:52,680 --> 00:24:55,160
actual numbers, they they show 
you the trend. 

356
00:24:56,360 --> 00:24:57,160
Oh, interesting. 
And. 

357
00:24:57,560 --> 00:25:01,320
And, and, and I mean, I don't 
wanna, I, I don't like it 

358
00:25:01,400 --> 00:25:03,440
personally. 
I wanna, I wanna see the the 

359
00:25:03,440 --> 00:25:07,720
real number if Southern people 
came to me on Monday, I wanna 

360
00:25:07,720 --> 00:25:10,000
see that it's Southern people 
came on Monday, right. 

361
00:25:10,520 --> 00:25:15,040
If it's going to be 50 users 
discrepancy, probably, yeah, 

362
00:25:15,840 --> 00:25:18,920
you, you will live with this 
because probably you have some 

363
00:25:18,960 --> 00:25:23,120
deployments where you will need 
to stop your application for, 

364
00:25:23,120 --> 00:25:26,680
for, I don't know, a couple of 
seconds and then run it again. 

365
00:25:26,720 --> 00:25:30,120
If if you have let's say single 
app set up on the on the VPS, 

366
00:25:30,120 --> 00:25:36,400
right, Whatever happens in these
two seconds, you know, let it 

367
00:25:36,400 --> 00:25:40,240
happen. 
No, yeah, that for sure I did 

368
00:25:40,240 --> 00:25:42,840
not. 
I don't use Google Analytics or 

369
00:25:42,840 --> 00:25:46,440
like I should say I rarely do, 
but I feel like that's weird to 

370
00:25:46,440 --> 00:25:50,520
only show trending data versus 
like you should have the option 

371
00:25:50,520 --> 00:25:53,320
of having both right? 
They probably don't want the 

372
00:25:53,320 --> 00:25:55,280
responsibility of keeping it 
all. 

373
00:25:56,160 --> 00:26:00,040
Yeah, that's, yeah, I think 
that's, that's what we we 

374
00:26:00,080 --> 00:26:05,640
discussed at the very beginning.
I want to have all the data on 

375
00:26:05,640 --> 00:26:09,960
my end so that I'm responsible 
for what's going on, you know, 

376
00:26:10,040 --> 00:26:13,080
and I want to see the exact 
numbers. 

377
00:26:14,160 --> 00:26:19,320
Yeah, well, and I mean like 50 
visitors would be a big number 

378
00:26:19,400 --> 00:26:24,120
to my website. 
I mean I in in percentage, 

379
00:26:24,120 --> 00:26:26,440
right? 
If you lose one 1% of of 

380
00:26:26,440 --> 00:26:28,280
tracking. 
Yeah, for sure. 

381
00:26:29,000 --> 00:26:32,120
Because if you have let's say 
customer like I had the quite 

382
00:26:32,120 --> 00:26:39,920
interesting back I was, I was 
trying to detect iPad users like

383
00:26:39,920 --> 00:26:45,200
iPad and tablet users. 
So there is two ways to do it, 

384
00:26:45,360 --> 00:26:48,240
right? 
So the number one way you have 

385
00:26:48,240 --> 00:26:52,040
this user agent string. 
So apparently each device, each 

386
00:26:52,040 --> 00:26:57,040
browser, they have unique 
combination for this user agent 

387
00:26:58,560 --> 00:27:01,560
string. 
But you need to have a database 

388
00:27:01,600 --> 00:27:06,400
which you're going to maintain 
almost on monthly level or pay 

389
00:27:06,400 --> 00:27:10,080
someone to maintain it for you 
like there is services and 

390
00:27:10,080 --> 00:27:13,440
extract it from there. 
I was trying to use couple of 

391
00:27:13,440 --> 00:27:17,520
libraries for this, but they 
they they were enormously slow. 

392
00:27:17,640 --> 00:27:22,600
Like to to to go through this 
database and find that this user

393
00:27:22,600 --> 00:27:28,360
string is actually an iPad user.
I think it was almost one second

394
00:27:28,440 --> 00:27:33,480
to look up. 
And of course I had to dish out 

395
00:27:33,480 --> 00:27:36,240
this solution. 
It was way too slow. 

396
00:27:36,880 --> 00:27:38,640
It could. 
You could almost have it as 

397
00:27:39,080 --> 00:27:42,240
maybe just not a real time 
feature, it could be updated 

398
00:27:42,240 --> 00:27:44,720
later. 
Or could you not really do that 

399
00:27:44,720 --> 00:27:49,840
cleanly? 
I think properly yes, but what I

400
00:27:49,840 --> 00:27:55,760
found out so I took I think 
almost all the the most popular 

401
00:27:55,760 --> 00:28:02,960
tablets like iPads, Samsung Tab 
and some some Huawei and some 

402
00:28:02,960 --> 00:28:08,840
other manufacturers all of them 
have pad in in their user agent.

403
00:28:08,840 --> 00:28:12,320
I was like, OK, I'm going to 
stick with the normal regex and 

404
00:28:12,400 --> 00:28:15,080
it's going to work. 
And when I test it, yeah, it it 

405
00:28:15,080 --> 00:28:15,680
works. 
So. 

406
00:28:16,600 --> 00:28:19,880
That's nice. 
I mean, that's usually all you 

407
00:28:19,880 --> 00:28:22,160
need, right? 
It's always usually a very 

408
00:28:22,160 --> 00:28:24,960
simple solution for a 
complicated problem, right? 

409
00:28:26,600 --> 00:28:30,200
And I was like, since the idea 
of this app, I, I, I'm not 

410
00:28:30,200 --> 00:28:35,200
planning to compete, let's say 
with the, with the Google 

411
00:28:35,200 --> 00:28:38,280
Analytics or how it's called 
plausible. 

412
00:28:38,400 --> 00:28:40,360
Yeah, plausible. 
Plausible. 

413
00:28:40,840 --> 00:28:42,480
I believe that's how it's said. 
I don't know. 

414
00:28:42,480 --> 00:28:45,600
I. 
Mean, I don't know I'm not 

415
00:28:45,600 --> 00:28:48,840
planning to compete with those 
guys because you know they do 

416
00:28:48,840 --> 00:28:52,080
that for years. 
There is team of a developer, 

417
00:28:52,080 --> 00:28:55,400
great developers behind and on 
some projects I use their 

418
00:28:55,400 --> 00:29:00,520
solution because if I if I see 
that it's a better feat, I gonna

419
00:29:00,520 --> 00:29:04,520
stick with them and give them, I
don't know, 699 dollars a month,

420
00:29:04,520 --> 00:29:07,680
right? 
Yeah, for up to like 50 projects

421
00:29:07,760 --> 00:29:09,280
I like, that's a pretty good 
deal. 

422
00:29:09,720 --> 00:29:14,400
Yeah, yeah, yeah, exactly. 
But for the Super small thing 

423
00:29:14,600 --> 00:29:17,400
where you don't need to manage 
anything and you don't know if 

424
00:29:17,400 --> 00:29:21,800
this website gonna survive or 
not, even if it's gonna survive,

425
00:29:21,920 --> 00:29:26,120
I think my solution able to 
handle maybe 1010 million 

426
00:29:26,400 --> 00:29:30,680
requests easily. 
I mean, it depends on your disk 

427
00:29:30,680 --> 00:29:35,720
size. 
But yeah, I think for the 

428
00:29:35,720 --> 00:29:37,680
beginning it's it's going to do 
the job. 

429
00:29:38,320 --> 00:29:43,680
And if you don't have million 
visitors every day, I think the 

430
00:29:43,680 --> 00:29:47,720
solution can can stay. 
There's something to like you 

431
00:29:47,720 --> 00:29:50,640
were saying at the beginning 
too, to just owning your data. 

432
00:29:50,760 --> 00:29:56,240
Especially for smaller projects.
Like if it's an in house or even

433
00:29:56,240 --> 00:30:00,000
just not a heavily trafficked 
web application, you're probably

434
00:30:00,000 --> 00:30:04,280
better off having your own data.
Yeah, but plus you don't need to

435
00:30:04,280 --> 00:30:08,200
introduce. 
I mean, I, I remember when 

436
00:30:08,360 --> 00:30:13,440
Google was forcing everyone to 
switch from Universal Analytics 

437
00:30:13,440 --> 00:30:20,440
to 33T4G4 whatsoever. 
Like you need to go change it, 

438
00:30:21,080 --> 00:30:24,640
check all the places where you 
have it, rename, it's updated, 

439
00:30:24,640 --> 00:30:27,640
tested. 
And back back in the day, I had 

440
00:30:27,640 --> 00:30:32,200
team almost of like 30 
developers and this project took

441
00:30:32,200 --> 00:30:37,160
us like 3 months I think, you 
know, from start to end just to 

442
00:30:37,160 --> 00:30:41,680
replace tags and behavioral and,
and, and we had external people 

443
00:30:41,680 --> 00:30:46,080
coming in helping us to figure 
out how to stop some funnels. 

444
00:30:46,440 --> 00:30:49,320
I remember all this nightmare 
and I was like, Oh my God. 

445
00:30:50,920 --> 00:30:54,920
Yeah, that's horrible. 
And I feel like analytics is one

446
00:30:54,920 --> 00:30:58,040
of those things you don't want 
to go back and do it. 

447
00:30:58,040 --> 00:30:59,760
You don't want to go back and 
fix it. 

448
00:30:59,760 --> 00:31:02,960
Like that's the worst. 
That's like, it'll never happen 

449
00:31:02,960 --> 00:31:05,720
if you don't put analytics in 
when you're building something 

450
00:31:05,960 --> 00:31:07,880
that at least that's what I 
always tell people. 

451
00:31:07,880 --> 00:31:12,240
So I'm always really good at 
adding my analytics like events 

452
00:31:12,240 --> 00:31:16,600
and whatever you're adding as I 
build that object. 

453
00:31:16,600 --> 00:31:21,400
Like if I add a call to action 
on a website, I put my plausible

454
00:31:21,760 --> 00:31:25,760
event tag in there right away. 
Or or you'll forget about it, or

455
00:31:25,760 --> 00:31:26,840
you won't do it. 
Ever. 

456
00:31:27,520 --> 00:31:29,720
Exactly. 
So you, you wanted to do it once

457
00:31:29,720 --> 00:31:33,800
and forget. 
So that's kind of the principle 

458
00:31:33,800 --> 00:31:36,840
which I tried to stick to and I 
don't know. 

459
00:31:37,480 --> 00:31:39,760
Yeah. 
Looks like there is at least 

460
00:31:39,760 --> 00:31:43,240
200, a bit more than 200 people 
who found you know. 

461
00:31:46,240 --> 00:31:48,880
Yeah, no, I think it's an 
awesome project and I think it's

462
00:31:48,880 --> 00:31:54,320
great for people that don't want
to spend money on analytics when

463
00:31:54,320 --> 00:31:57,640
they're just starting out. 
Like if you're bootstrapped and 

464
00:31:57,640 --> 00:32:01,280
you're a product not being used,
at least you have you're 

465
00:32:01,280 --> 00:32:04,240
tracking analytics 'cause I tell
everyone you have to track 

466
00:32:04,240 --> 00:32:07,720
analytics from the beginning, 
even if you only have one user 

467
00:32:08,120 --> 00:32:11,520
or you don't know if that one 
user's even using your app. 

468
00:32:12,680 --> 00:32:19,440
No, because honestly, I think 
it's people often confuse what 

469
00:32:19,440 --> 00:32:23,080
does it mean to be popular. 
I think if you have, let's say, 

470
00:32:24,840 --> 00:32:30,640
very popular website which has 
millions of views, right, but 

471
00:32:30,640 --> 00:32:35,520
you don't know how to monetise 
those users or, or simply, I 

472
00:32:35,520 --> 00:32:38,280
don't know you, you have a 
documentation page or something 

473
00:32:38,280 --> 00:32:41,560
which you, which you can't 
really monetise, right? 

474
00:32:42,040 --> 00:32:46,200
OK, you, you got huge amount of 
traffic, you're super popular. 

475
00:32:46,200 --> 00:32:51,120
But but, and, and what, and, and
sometimes you can have 10 

476
00:32:51,120 --> 00:32:57,280
customers who exactly looking 
for this specific thing, which 

477
00:32:57,280 --> 00:33:01,280
might be very niche. 
And I don't know, each user 

478
00:33:01,280 --> 00:33:03,960
going to spend €10,000 a month 
with you, right? 

479
00:33:03,960 --> 00:33:09,120
If it's some niche B to B. 
Quality over quantity for sure. 

480
00:33:09,840 --> 00:33:11,840
Exactly. 
And, and, and I have quite a lot

481
00:33:11,840 --> 00:33:14,880
of examples and, and the company
where I work at the moment, 

482
00:33:15,480 --> 00:33:19,360
we're like super small. 
I think it's like 5 or 6 people,

483
00:33:20,120 --> 00:33:28,040
but how to say they're super 
well known in a very, very 

484
00:33:28,040 --> 00:33:36,480
narrow circles and you know, 5-6
people able to to run, you know,

485
00:33:36,480 --> 00:33:39,920
quite complicated things which 
are heavily used by 

486
00:33:39,920 --> 00:33:44,840
professionals and normal 
customer not even going to see 

487
00:33:44,840 --> 00:33:50,640
us on the radar and yeah, yeah, 
so our website not going to have

488
00:33:50,640 --> 00:33:54,280
million views. 
Yeah, and I mean, most websites 

489
00:33:54,280 --> 00:33:56,120
aren't, right. 
Most products aren't. 

490
00:33:56,720 --> 00:33:59,640
Exactly. 
If you're doing it right, you're

491
00:33:59,760 --> 00:34:05,720
you have a very niche audience. 
Yeah, I mean, I think targeting 

492
00:34:05,720 --> 00:34:09,280
is more important rather than 
popularity, I would say. 

493
00:34:10,040 --> 00:34:11,920
I just actually now I want to 
look it up. 

494
00:34:11,920 --> 00:34:15,800
I saw a funny meme today and I 
don't want to get it wrong. 

495
00:34:16,040 --> 00:34:25,020
Let me see if I can find it. 
If you want to reach a large 

496
00:34:25,020 --> 00:34:28,980
audience, appeal to idiots. 
Yeah. 

497
00:34:29,300 --> 00:34:33,460
Yeah, exactly. 
I thought that was entertaining.

498
00:34:34,040 --> 00:34:37,560
I thought it was a little funny 
because, you know, Elixir is 

499
00:34:37,560 --> 00:34:42,719
such a small community and I 
think it everyone wants, you 

500
00:34:42,719 --> 00:34:47,239
know, the reach and popularity 
of, you know, other technology 

501
00:34:47,239 --> 00:34:50,520
stacks and you know, all of that
other stuff. 

502
00:34:51,320 --> 00:34:54,600
But at the same time, maybe it's
I think it's a good thing that 

503
00:34:54,600 --> 00:35:00,880
it's like a steady slow growth. 
I think you know the big issue 

504
00:35:00,880 --> 00:35:07,640
of Elixir community exactly what
we just spoke, because amounts 

505
00:35:07,640 --> 00:35:13,040
of people you need to develop 
website with the OR I don't know

506
00:35:13,040 --> 00:35:17,280
whatever product with a 
complexity X right? 

507
00:35:17,840 --> 00:35:21,680
You need for sure much less 
people if you would do it in PHP

508
00:35:21,800 --> 00:35:26,040
or Golang or I don't know any, 
any other language. 

509
00:35:26,800 --> 00:35:30,720
And that's why maybe Elixir 
community going to remain, let's

510
00:35:30,720 --> 00:35:34,120
say, small compared to some some
other communities. 

511
00:35:34,640 --> 00:35:38,240
And obviously we will produce 
less open source projects. 

512
00:35:38,880 --> 00:35:44,520
So and instead of, you know, 
flooding like MPM for example, 

513
00:35:44,520 --> 00:35:48,640
that's in my opinion the most 
flooded package manager. 

514
00:35:49,000 --> 00:35:54,360
Oh, it's insane. 
That's insane and OK let's let's

515
00:35:54,360 --> 00:35:57,560
keep amount of packages very 
narrow, very small, but all of 

516
00:35:57,560 --> 00:35:59,680
them would be usable and 
maintainable. 

517
00:36:00,240 --> 00:36:05,480
I think that's a nice trade off.
Yeah, it's nice that you only 

518
00:36:05,480 --> 00:36:09,040
need a handful of packages 
out-of-the-box, right, to start 

519
00:36:09,040 --> 00:36:11,600
a Phoenix project. 
And I think that people don't 

520
00:36:11,600 --> 00:36:15,400
realize how important that is 
for at least like app security. 

521
00:36:16,400 --> 00:36:21,840
Yeah, exactly because I used to 
work with the with the PHP 

522
00:36:21,840 --> 00:36:27,360
quiet, quiet some years ago. 
And once you figure out that you

523
00:36:27,360 --> 00:36:34,480
have some script running, 
conversion 5.4 my SQL 3 dot 

524
00:36:34,480 --> 00:36:41,760
something amount of security 
vulnerabilities there I don't. 

525
00:36:41,960 --> 00:36:43,800
I don't want to end up in that 
world. 

526
00:36:44,320 --> 00:36:47,520
Well, and like out-of-the-box at
least like, you know, with 

527
00:36:47,520 --> 00:36:50,560
JavaScript frameworks and 
things, you'll, you'll have, 

528
00:36:50,560 --> 00:36:56,680
you'll start a new project and 
have thousands of critical 

529
00:36:56,680 --> 00:37:00,040
warnings or errors or security 
vulnerabilities, I forget what 

530
00:37:00,040 --> 00:37:02,360
they're called, but just 
out-of-the-box. 

531
00:37:02,360 --> 00:37:06,560
And you can't even go and fix 
any of them because they're from

532
00:37:06,560 --> 00:37:10,040
your dependencies. 
Yeah, that's that's very 

533
00:37:10,040 --> 00:37:14,080
dangerous. 
And actually in the in the Alexi

534
00:37:14,080 --> 00:37:18,800
community so far, I didn't see 
like any, you know, bloated 

535
00:37:18,800 --> 00:37:21,880
projects like. 
Yeah, you rarely do. 

536
00:37:22,360 --> 00:37:25,320
Yeah, no, I like it. 
I mean, that's why I like 

537
00:37:25,320 --> 00:37:27,640
Elixir. 
You can oh, like kind of back to

538
00:37:27,640 --> 00:37:30,240
the point where I, I was like, I
suck at front end. 

539
00:37:30,240 --> 00:37:32,120
Like it's just, I'm not fast at 
it. 

540
00:37:32,240 --> 00:37:36,920
I can, I can do it, but mostly 
like UI, right and tailwind 

541
00:37:36,920 --> 00:37:40,320
things, so CSS related things 
I'll be really slow at. 

542
00:37:41,000 --> 00:37:45,520
But the one reason I I want to 
get better is it's really nice 

543
00:37:45,520 --> 00:37:49,040
when you have a, a a project 
idea and you don't rely on 

544
00:37:49,040 --> 00:37:50,720
anyone to help you with the 
front end. 

545
00:37:50,720 --> 00:37:55,520
You can kind of just build out 
an entire MVP to something and 

546
00:37:55,640 --> 00:38:00,720
have an awesome project and you 
need 11 Elixir engineer to do 

547
00:38:00,720 --> 00:38:02,240
it. 
Exactly. 

548
00:38:02,840 --> 00:38:08,680
I mean you as well have server 
side frameworks like in Ruby on 

549
00:38:08,680 --> 00:38:11,280
Rails. 
You as well, you know, you don't

550
00:38:11,280 --> 00:38:14,240
need to write a single line of 
JavaScript code if you do 

551
00:38:14,240 --> 00:38:17,640
everything on the server. 
But I think with the LX you're, 

552
00:38:17,720 --> 00:38:26,240
you got how to say you, you can 
do a lot of things way faster 

553
00:38:26,280 --> 00:38:30,240
than in other frameworks. 
Like you have everything working

554
00:38:30,240 --> 00:38:32,760
out-of-the-box for you. 
You have generators, you have 

555
00:38:33,800 --> 00:38:37,840
everything. 
So, you know, you just combine 

556
00:38:37,840 --> 00:38:40,880
things together and you have MVP
almost in a couple of days. 

557
00:38:41,360 --> 00:38:48,680
Yeah, yeah, I, I, I randomly 
decided I, I don't know, a lot 

558
00:38:48,680 --> 00:38:51,120
of weird things happened and 
then I just got this really good

559
00:38:51,120 --> 00:38:54,520
idea and I was like, wow, I 
could save so much money if I 

560
00:38:54,520 --> 00:38:57,480
made my own website hosting 
platform. 

561
00:38:58,320 --> 00:39:02,360
And so I, I built 1 using 
Phoenix and like, I'm routing 

562
00:39:02,360 --> 00:39:05,040
through plugs for, you know, 
different domains and things for

563
00:39:05,040 --> 00:39:08,280
my customers. 
And I had an MVP working in like

564
00:39:08,280 --> 00:39:11,480
4 days Exactly. 
And I didn't know what I was 

565
00:39:11,480 --> 00:39:13,920
doing really. 
I mean I I kind of knew what I 

566
00:39:13,920 --> 00:39:17,720
was doing, but I figured 
everything out and had something

567
00:39:17,720 --> 00:39:21,280
pretty functional in like 4 days
of just messing around. 

568
00:39:22,280 --> 00:39:27,920
I mean, if if you built web 
servers before and web apps 

569
00:39:28,400 --> 00:39:32,000
obviously fundamentals are the 
same, you're not going to change

570
00:39:32,000 --> 00:39:33,600
them. 
You cannot change your CTP 

571
00:39:33,600 --> 00:39:36,280
protocol to something else. 
Yeah, exactly. 

572
00:39:37,160 --> 00:39:41,800
And once you work, let's say 
with the Ruby on Rails Symphony,

573
00:39:42,960 --> 00:39:46,880
I mean Flask and Python or 
whatsoever, and you know, a bit 

574
00:39:46,880 --> 00:39:50,480
of a functional programming, you
switch to Alex here and you 

575
00:39:50,480 --> 00:39:53,000
literally need like couple of 
days to make something 

576
00:39:53,000 --> 00:39:57,680
meaningful. 
And even even though OK so I 

577
00:39:57,680 --> 00:40:03,280
have this bad relations with the
JavaScript but I was really 

578
00:40:03,280 --> 00:40:08,520
proud when when I made the 
infinite scroll on the live 

579
00:40:08,520 --> 00:40:11,960
view. 
You know like when you scroll to

580
00:40:11,960 --> 00:40:15,360
the bottom it triggers 
automatically to load like next 

581
00:40:15,360 --> 00:40:17,120
objects. 
Oh yeah, yeah, yeah. 

582
00:40:17,640 --> 00:40:22,920
It took me like 10 lines of 
JavaScript to make it hook and I

583
00:40:22,920 --> 00:40:25,840
was like all right, so 10 lines 
enough for today. 

584
00:40:25,840 --> 00:40:30,160
It's working great. 
There you go. 

585
00:40:30,600 --> 00:40:35,040
Yeah, yeah, I did. 
I have like a Gist clone project

586
00:40:35,120 --> 00:40:41,880
that I'm working through on 
YouTube and I, I have quite a 

587
00:40:41,880 --> 00:40:46,400
bit of JavaScript hooks on there
and like I have one for you're 

588
00:40:46,400 --> 00:40:48,840
using like highlight JS for the 
code snippets. 

589
00:40:49,280 --> 00:40:54,480
But I kind of want to go back 
'cause I just what is it? 

590
00:40:54,880 --> 00:40:59,840
I think it's the makeup library 
that is really good for server 

591
00:40:59,840 --> 00:41:06,840
side rendering of basically it's
doing the the code highlighting 

592
00:41:06,840 --> 00:41:09,600
server side instead of using 
highlight JS. 

593
00:41:10,320 --> 00:41:13,200
And that's pretty cool. 
But then the other hook that I 

594
00:41:13,200 --> 00:41:18,560
wrote was I have dynamic line 
numbers that are just growing 

595
00:41:18,560 --> 00:41:21,080
basically 2 text boxes next to 
each other, right? 

596
00:41:21,960 --> 00:41:26,200
So as you scroll through code, 
I'm just like matching the other

597
00:41:26,200 --> 00:41:29,640
one has to scroll with it. 
And I had to do JavaScript for 

598
00:41:29,640 --> 00:41:31,960
that as well. 
But there's probably no avoiding

599
00:41:31,960 --> 00:41:33,960
JavaScript completely, 
unfortunately, yeah. 

600
00:41:34,560 --> 00:41:37,680
But I mean, it's not like 
writing. 

601
00:41:37,800 --> 00:41:40,960
I remember we had one project in
Angular. 

602
00:41:41,480 --> 00:41:44,760
I think we had 20 front end defs
on that project. 

603
00:41:46,200 --> 00:41:48,960
When I needed to change 
something there, I was like, OK,

604
00:41:48,960 --> 00:41:51,760
guys, you know what? 
That's, that's where I have a 

605
00:41:51,760 --> 00:41:55,240
knowledge limit. 
I need some help because, you 

606
00:41:55,240 --> 00:41:59,160
know, I, I tweaked some API on 
my side, like on the back end. 

607
00:41:59,800 --> 00:42:02,840
And then I had to go to front 
end defs and like, hey, you know

608
00:42:02,840 --> 00:42:06,200
what? 
I, I, I couldn't find out where 

609
00:42:06,200 --> 00:42:08,160
it goes. 
Please help me out. 

610
00:42:09,800 --> 00:42:15,440
I think it's like 2 extremes you
have and you can achieve 

611
00:42:15,440 --> 00:42:18,000
actually quite a lot of things 
on the client side. 

612
00:42:19,360 --> 00:42:24,080
But in most of the cases you 
simply don't need it in my 

613
00:42:24,120 --> 00:42:26,600
opinion. 
Like if you have some simple 

614
00:42:26,600 --> 00:42:30,160
websites, let it. 
I mean GitHub still server side 

615
00:42:30,160 --> 00:42:33,000
rendering, no one died because 
of it, right? 

616
00:42:33,760 --> 00:42:39,240
So. 
Well, I the, the, the hesitation

617
00:42:39,240 --> 00:42:42,160
you want to have with doing too 
much client side is just site 

618
00:42:42,160 --> 00:42:45,560
performance overall, right? 
You don't want a slow loading 

619
00:42:45,560 --> 00:42:49,360
website, especially if you're on
like an older mobile device or 

620
00:42:49,360 --> 00:42:54,480
tablet that doesn't have as much
power as a desktop computer or 

621
00:42:54,480 --> 00:42:56,280
whatever you may do. 
You might have limitations, 

622
00:42:56,280 --> 00:42:59,480
right? 
That's true, but the issue with 

623
00:42:59,480 --> 00:43:05,120
the old, let's say devices that 
they stop supporting modern 

624
00:43:05,120 --> 00:43:08,200
JavaScript at some point. 
That's true. 

625
00:43:08,960 --> 00:43:11,520
Then use crude. 
That's true, yeah. 

626
00:43:11,680 --> 00:43:18,120
Because nothing will work. 
Yeah, yeah, it's a fine line. 

627
00:43:19,680 --> 00:43:23,880
Yeah, it's a fine line. 
What do you use JavaScript for 

628
00:43:23,880 --> 00:43:28,080
and what do you do server side 
because you still want things to

629
00:43:28,080 --> 00:43:30,400
be fast? 
I feel like I struggle with it. 

630
00:43:30,920 --> 00:43:34,320
I don't always probably do the 
right thing, but then through 

631
00:43:34,320 --> 00:43:37,440
trial and error and use cases 
you probably can dial it in. 

632
00:43:39,280 --> 00:43:42,000
I mean with the, with the, with 
the JavaScript, I don't 

633
00:43:42,000 --> 00:43:45,440
understand all, all the, I mean 
why it exists, right? 

634
00:43:45,440 --> 00:43:49,440
And and why we need to use it 
And even for example, for the 

635
00:43:49,440 --> 00:43:53,760
dashboard, right? 
When actually like when I 

636
00:43:53,760 --> 00:43:57,800
started researching what's 
available to do the graphs in 

637
00:43:57,800 --> 00:44:01,760
Alex here there are I think 
there, there is like one library

638
00:44:01,760 --> 00:44:05,800
which is quite maintained. 
It's Vega, Vega Lite, which is 

639
00:44:05,800 --> 00:44:12,640
used in life book, but I think 
in VAP version of it, like if 

640
00:44:12,640 --> 00:44:15,880
you use it, you know, on, on a 
page, it's going to output your 

641
00:44:15,880 --> 00:44:20,720
SVG things. 
And then you need to do a lot of

642
00:44:20,720 --> 00:44:24,720
manual work like tool tips and 
all of these. 

643
00:44:25,040 --> 00:44:27,120
And, and I wanted to reuse 
things, right? 

644
00:44:27,440 --> 00:44:30,520
Because most of the charts, if, 
if you open them, you'll see 

645
00:44:30,520 --> 00:44:33,240
that there is like 2, maybe 
three different types of them. 

646
00:44:33,240 --> 00:44:36,640
And I just reused, you know, the
code. 

647
00:44:38,000 --> 00:44:42,640
And when I figure out, OK, so 
there is nothing available on, 

648
00:44:42,680 --> 00:44:49,600
on LX here itself. 
Like, let let's see the the 

649
00:44:49,640 --> 00:44:53,560
JavaScript world, right? 
Because probably people made a 

650
00:44:53,760 --> 00:44:59,160
bunch of different graphs and I 
started with the live view and 

651
00:44:59,160 --> 00:45:02,160
couple of libraries there. 
But then when I saw the chats, 

652
00:45:02,160 --> 00:45:05,920
Yan added the the graphs, it's 
like, OK, no brainer. 

653
00:45:05,920 --> 00:45:09,320
So we take, we take them. 
Yeah. 

654
00:45:11,000 --> 00:45:15,400
Just use the existing ones. 
I want to now yeah chart 

655
00:45:17,400 --> 00:45:20,560
charting. 
I think there is now one library

656
00:45:20,560 --> 00:45:26,360
which is being built, Tramux I 
think it's called. 

657
00:45:27,440 --> 00:45:31,720
I saw on Twitter like someone is
developing for. 

658
00:45:32,440 --> 00:45:34,680
That would be. 
For Phoenix apps. 

659
00:45:35,040 --> 00:45:39,200
Is it contacts? 
I don't remember. 

660
00:45:39,920 --> 00:45:43,720
Contacts is a simple server side
charting package for Elixir. 

661
00:45:44,840 --> 00:45:52,440
See these demos. 
It looks really cool and it 

662
00:45:52,440 --> 00:45:57,600
works nicely in live view. 
Cool, I'm going to have to check

663
00:45:57,600 --> 00:46:01,560
this out. 
What did you end up using? 

664
00:46:01,560 --> 00:46:06,760
You're using JavaScript. 
Yeah, I ended up using shot 

665
00:46:06,760 --> 00:46:10,680
CICMU. 
I I don't know how to pronounce 

666
00:46:10,960 --> 00:46:16,800
this website correctly. 
Yeah, so they did add it into 

667
00:46:16,800 --> 00:46:19,120
their components, like very nice
charts. 

668
00:46:20,000 --> 00:46:23,120
And since I really suck at 
designing things, I was like, 

669
00:46:23,800 --> 00:46:28,800
well, very talented people made 
nice components and designed 

670
00:46:28,800 --> 00:46:29,760
them well. 
Why? 

671
00:46:29,760 --> 00:46:33,880
Why not to use this superpower? 
Well I agree and like something 

672
00:46:33,880 --> 00:46:39,600
like charting would be a project
in itself just to implement it, 

673
00:46:39,600 --> 00:46:41,560
right? 
Yeah, exactly. 

674
00:46:42,520 --> 00:46:47,440
The only thing which I still 
don't really like without. 

675
00:46:49,160 --> 00:46:52,680
I mean, of course I optimized it
a bit, but the raw JavaScript 

676
00:46:52,680 --> 00:47:01,640
file is around 600 kilobytes 
altogether, so I embedded it 

677
00:47:01,640 --> 00:47:06,240
directly on the HTML Z pit and 
whatsoever, plus HTTP. 

678
00:47:06,240 --> 00:47:08,520
Actually, that's some 
optimizations on the fly. 

679
00:47:09,120 --> 00:47:15,080
So it's ended up 300 something 
in the ends, but still like for 

680
00:47:15,080 --> 00:47:19,320
the page just displaying a 
couple of charts, it's a bit too

681
00:47:19,320 --> 00:47:22,480
much. 
But since it's a just, let's 

682
00:47:22,480 --> 00:47:26,000
say, dev route, I was like, OK, 
I'm not going to bother that 

683
00:47:26,000 --> 00:47:28,400
much. 
But if it would be my lensing 

684
00:47:28,400 --> 00:47:36,640
page, let's say and and you have
half MB of JavaScript, I would I

685
00:47:36,640 --> 00:47:39,320
would think. 
Yeah, you might. 

686
00:47:39,400 --> 00:47:41,360
It might end up taking over a 
second to load. 

687
00:47:42,400 --> 00:47:43,560
Yeah, exactly. 
So. 

688
00:47:43,560 --> 00:47:46,800
But since it's a dev page, I was
like, OK, I'm not going to 

689
00:47:46,800 --> 00:47:50,000
bother too much and make it nice
and then look good. 

690
00:47:51,040 --> 00:47:54,560
But yeah. 
You can strangely get overly 

691
00:47:54,560 --> 00:47:57,920
obsessed with performance and I 
have that problem. 

692
00:47:57,920 --> 00:48:01,800
I'll I'll like obsess over my 
page loads and things and like 

693
00:48:01,800 --> 00:48:05,360
sometimes you just, you just 
can't control it. 

694
00:48:06,680 --> 00:48:11,360
I mean, I, I used to work in the
past on let's say peak projects 

695
00:48:11,560 --> 00:48:13,800
and where performance was really
critical. 

696
00:48:13,800 --> 00:48:16,440
Like we had millions of users 
and visitors. 

697
00:48:17,200 --> 00:48:25,720
And I think Amazon calculated 
that every 100 milliseconds in a

698
00:48:26,360 --> 00:48:32,960
page load cost you 15% of sales 
or something like this. 

699
00:48:33,280 --> 00:48:37,320
I believe that. 
And yes, it's actually like this

700
00:48:37,880 --> 00:48:41,920
because most of customers, if it
loads more than, I don't know, 

701
00:48:41,960 --> 00:48:43,760
300 milliseconds, they just 
quit. 

702
00:48:44,160 --> 00:48:48,720
Yeah, they're not going to wait 
for your spinners to to load to 

703
00:48:48,720 --> 00:48:50,400
land. 
They just close. 

704
00:48:50,960 --> 00:48:54,240
That reminds me that when you 
said the spinner I used to I 

705
00:48:54,240 --> 00:48:57,800
worked with, he was kind of, he 
was the product guy. 

706
00:48:57,800 --> 00:48:59,680
It was a Bootstrap startup, 
right? 

707
00:49:00,200 --> 00:49:03,960
And he was the product slash 
designer guy who also wanted to 

708
00:49:03,960 --> 00:49:07,680
learn how to code. 
And he had this side project 

709
00:49:07,680 --> 00:49:14,320
that he was building and he, he 
wanted me to check it out. 

710
00:49:14,360 --> 00:49:19,280
And you know, I, I pulled it up 
and he had a really cool loading

711
00:49:19,280 --> 00:49:22,840
spinner, right? 
It was like a very fancy 

712
00:49:23,000 --> 00:49:26,200
animation. 
And I was like, dude, it takes 

713
00:49:26,200 --> 00:49:28,280
so long to load. 
Like what's going on? 

714
00:49:28,800 --> 00:49:32,640
And he put a delay in to load 
because he wanted everyone to 

715
00:49:32,640 --> 00:49:38,120
watch his cool spinner. 
And we always like joked about 

716
00:49:38,120 --> 00:49:40,880
it that he like we, I forgot 
what we called him. 

717
00:49:40,960 --> 00:49:45,520
He had like a 2 second delay. 
And so we would always make fun 

718
00:49:45,520 --> 00:49:48,640
of his two second delay and we'd
reference it for like years and 

719
00:49:48,640 --> 00:49:53,720
years after he did that. 
And you know, to his benefit, it

720
00:49:53,720 --> 00:49:56,600
was a really cool animation. 
But at the end of the day, no 

721
00:49:56,600 --> 00:49:58,320
one wants to watch your 
animations. 

722
00:49:58,320 --> 00:50:00,080
They just want your pages to 
load. 

723
00:50:01,120 --> 00:50:04,440
Yeah, exactly. 
And, and, and I think it's as 

724
00:50:04,440 --> 00:50:09,000
well very important to 
understand that from 1 user to 

725
00:50:09,080 --> 00:50:13,640
1,000,000 users, that's let's 
say one problem from 1,000,000 

726
00:50:13,720 --> 00:50:17,960
to 10 million users which visit 
your website. 

727
00:50:17,960 --> 00:50:19,800
I don't know why the command 
says it per day. 

728
00:50:20,240 --> 00:50:22,360
It's another scope of problems, 
right? 

729
00:50:22,800 --> 00:50:26,720
And then from 10 million and 
further, let's say like Netflix,

730
00:50:26,800 --> 00:50:31,240
Amazon, Google, that's like a 
next range of issues. 

731
00:50:31,840 --> 00:50:35,200
And I have a feeling that's a 
lot of people, a lot of 

732
00:50:35,200 --> 00:50:39,880
developers, especially at the 
beginning, start thinking like 

733
00:50:40,200 --> 00:50:45,720
10 million views or, or, or even
more like let's, let's, let's be

734
00:50:45,720 --> 00:50:47,560
able to support all of this 
tomorrow. 

735
00:50:48,440 --> 00:50:53,560
Yeah, they over over optimize or
over optimize too soon, I think 

736
00:50:53,560 --> 00:50:57,520
is the like, yeah, premature 
optimization. 

737
00:50:57,800 --> 00:51:00,680
Yeah, there we go. 
But a lot, I think just 

738
00:51:00,720 --> 00:51:04,480
engineers in general, you know, 
they want to scale, but in 

739
00:51:04,480 --> 00:51:08,200
reality you have a lot of 
different problems you're going 

740
00:51:08,200 --> 00:51:11,560
to hit before you even reach any
crazy numbers, if you even ever 

741
00:51:11,560 --> 00:51:13,280
do. 
Exactly. 

742
00:51:13,440 --> 00:51:16,600
Or maybe you will like as well 
what we discussed at the 

743
00:51:16,600 --> 00:51:18,320
beginning. 
Maybe you will never reach it 

744
00:51:18,760 --> 00:51:22,680
because you'll find your perfect
niche, which kind of make you 

745
00:51:22,680 --> 00:51:24,680
rich. 
And I don't know, you're not 

746
00:51:24,680 --> 00:51:29,080
going to hit million users. 
I mean honestly, I'll take 10 

747
00:51:29,080 --> 00:51:32,120
clients to make me rich over 
1,000,000 users. 

748
00:51:32,640 --> 00:51:37,080
Exactly, I don't remember who 
who told like what was the the 

749
00:51:37,080 --> 00:51:41,240
whole story. 
Like it's much more easy to sell

750
00:51:41,240 --> 00:51:45,400
one Ferrari over 100 Renault 
cars. 

751
00:51:47,040 --> 00:51:51,440
Yeah. 
So it's probably the same amount

752
00:51:51,440 --> 00:51:53,280
of effort, right? 
Yeah, yeah. 

753
00:51:54,280 --> 00:51:58,120
I've been going through the 
struggle of becoming a salesman 

754
00:51:58,200 --> 00:52:03,520
and it like marketing and I 
think it's what every engineer 

755
00:52:03,520 --> 00:52:06,280
doesn't want to be good at. 
But if you're running, if you're

756
00:52:06,280 --> 00:52:10,840
selling your own products, you 
have to and it's the worst thing

757
00:52:10,840 --> 00:52:12,840
ever. 
And when you start realizing the

758
00:52:12,960 --> 00:52:16,800
amount of outreach you have to 
do for one close and you start 

759
00:52:16,800 --> 00:52:20,600
having metrics and numbers 
behind it, you have to like hear

760
00:52:20,600 --> 00:52:24,680
hundreds and hundreds of Nos for
your one Yes, and. 

761
00:52:26,080 --> 00:52:30,600
I I agree with this because for 
the last, yeah, I think it's 

762
00:52:31,200 --> 00:52:33,040
it's already more than one year 
a bit. 

763
00:52:33,720 --> 00:52:39,320
I was doing fractional CTO where
I had to reach out myself and, 

764
00:52:39,320 --> 00:52:43,920
you know, do the sales and you 
know, talk to the start-ups for 

765
00:52:43,920 --> 00:52:47,440
the first 2-3 months. 
I was trying to do it like, like

766
00:52:47,440 --> 00:52:49,880
you sync, right? 
You, you do the cold outreach, 

767
00:52:49,880 --> 00:52:52,520
you try to reach the people, go 
on the coal. 

768
00:52:53,160 --> 00:53:02,520
So by metrics, my reply rate was
0.01%, right? 

769
00:53:03,800 --> 00:53:07,400
And and then I was like, hell 
no, hell no, I'm I'm not going 

770
00:53:07,400 --> 00:53:12,000
to do this. 
And on the scope of one one 

771
00:53:12,000 --> 00:53:16,000
person company, right, I was one
man band like I'm not going to 

772
00:53:16,000 --> 00:53:18,240
do this. 
So essentially I ended up with a

773
00:53:19,360 --> 00:53:23,480
it's called friends channel. 
I I just told to them, you know,

774
00:53:23,480 --> 00:53:25,920
guys, I'm I'm open to work, let 
me know. 

775
00:53:25,960 --> 00:53:30,560
And that's how essentially I 
made all, all my sales in, in 

776
00:53:30,560 --> 00:53:35,360
the last year. 
But each time, like I still have

777
00:53:35,360 --> 00:53:38,280
a website running, even though I
stopped doing fractional CTO for

778
00:53:38,280 --> 00:53:43,080
various reasons. 
Sometimes I get a lot of 

779
00:53:44,040 --> 00:53:51,600
customers who reach out to me 
with amazing proposals. 

780
00:53:52,360 --> 00:53:56,400
We give you equity of non 
existing company, which we even 

781
00:53:56,400 --> 00:53:58,680
didn't start it. 
We, we, we, we just have an 

782
00:53:58,680 --> 00:54:04,520
idea, but we give you equity and
you become our fractional CTO. 

783
00:54:04,920 --> 00:54:07,400
I was like, OK, what would be my
responsibilities? 

784
00:54:08,600 --> 00:54:15,240
You develop entire product from 
A-Z and we give you 50%. 

785
00:54:15,320 --> 00:54:19,720
I was like. 
It's very tempting, you know? 

786
00:54:19,720 --> 00:54:25,800
Like, I think that is too common
of a story, right? 

787
00:54:26,400 --> 00:54:31,080
I actually had to. 
Well, sometimes I don't even 

788
00:54:31,080 --> 00:54:33,440
like telling certain people what
I do for a living because the 

789
00:54:33,440 --> 00:54:36,880
second they find out you like 
build apps or anything, they're 

790
00:54:36,880 --> 00:54:40,720
like, oh, I have such a good app
idea, but you have to sign an 

791
00:54:40,720 --> 00:54:44,480
NDA. 
Was like, dude, well, Juan, I, I

792
00:54:44,480 --> 00:54:47,160
don't care enough to hear about 
your $1,000,000 app idea. 

793
00:54:47,520 --> 00:54:50,920
If I can say this in the nicest 
way possible, and I'm not going 

794
00:54:50,920 --> 00:54:54,840
to sign an NDA and I do not have
time to steal your idea. 

795
00:54:57,440 --> 00:55:00,000
And like, I've had so many 
people approach me and be like, 

796
00:55:00,000 --> 00:55:03,000
dude, I have a really great 
proposal. 

797
00:55:03,000 --> 00:55:07,000
It's like, yeah, you build the 
entire product and you can have 

798
00:55:07,000 --> 00:55:09,000
50% equity. 
I'd be like, why don't I get 

799
00:55:09,000 --> 00:55:13,120
100% equity and build the 
product myself? 

800
00:55:13,760 --> 00:55:17,560
But yeah, those stories, they 
happen way too often. 

801
00:55:17,680 --> 00:55:22,280
And I almost, I think it'd be 
really funny to like write a 

802
00:55:22,280 --> 00:55:25,960
book about all the $1,000,000 
ideas that I've been told. 

803
00:55:27,120 --> 00:55:30,080
And then you could just kind of 
like, it could be a really funny

804
00:55:30,080 --> 00:55:31,720
book. 
You could break it down on how 

805
00:55:32,160 --> 00:55:36,320
they wouldn't work. 
I think I think there is a super

806
00:55:36,320 --> 00:55:39,680
nice book while I was writing 
Golink. 

807
00:55:39,680 --> 00:55:45,640
I think it's called 1100 Go 
mistakes or something like this 

808
00:55:45,680 --> 00:55:49,720
or or like 100 things to avoid. 
And essentially there is like, 

809
00:55:49,760 --> 00:55:54,440
you know, 100 bad things which 
can happen in the codes and and 

810
00:55:54,440 --> 00:55:57,760
essentially the author explains,
you know, you know, like anti 

811
00:55:57,760 --> 00:56:00,320
patterns and things like this 
and how to avoid them. 

812
00:56:01,120 --> 00:56:06,280
I think it would be a really 
interesting book like about such

813
00:56:06,280 --> 00:56:09,800
conversations which all the 
developers sometimes are getting

814
00:56:10,520 --> 00:56:14,640
about this million dolorous 
ideas. 

815
00:56:15,480 --> 00:56:17,520
Yeah, it reminds me of one of 
them. 

816
00:56:18,120 --> 00:56:21,760
One of my buddies, we were 
having a few drinks one night 

817
00:56:21,760 --> 00:56:25,760
and we, we, we didn't end up 
launching it, but we were joking

818
00:56:25,760 --> 00:56:29,480
about starting a podcast and he 
started like launching all his 

819
00:56:29,480 --> 00:56:32,360
ideas at me. 
And one of them is like, well, 

820
00:56:32,360 --> 00:56:36,240
you know, what if you're, you 
know, the boomer generation and,

821
00:56:36,520 --> 00:56:39,040
or it was like whatever 
generations where they start 

822
00:56:39,040 --> 00:56:41,400
like, you know, they're old 
enough where kids are moving out

823
00:56:41,400 --> 00:56:44,080
of the house and you start 
having extra space in your 

824
00:56:44,080 --> 00:56:46,000
house. 
He's like, instead of like an 

825
00:56:46,000 --> 00:56:49,160
Airbnb where you rent A room, 
what if you just rent space for 

826
00:56:49,160 --> 00:56:53,600
storage? 
And like we went into this whole

827
00:56:53,600 --> 00:56:55,560
rant and it's just like ideas 
like that. 

828
00:56:55,560 --> 00:57:00,760
Like I will rent you 12 inches 
of storage to store your golf 

829
00:57:00,760 --> 00:57:04,360
clubs. 
And those are the examples of 

830
00:57:04,720 --> 00:57:06,800
like $1,000,000 ideas that would
be approached with. 

831
00:57:07,240 --> 00:57:09,120
And then like you should help me
build this app. 

832
00:57:10,800 --> 00:57:12,800
You know what, all the jokes 
aside? 

833
00:57:12,800 --> 00:57:16,600
So the city where I currently 
live, it's Luxembourg. 

834
00:57:16,600 --> 00:57:19,360
Luxembourg. 
I think that's gonna work. 

835
00:57:20,880 --> 00:57:25,200
Do people not have space? 
The price per square meter here,

836
00:57:25,280 --> 00:57:31,000
it's like 3, maybe 4 salaries, 
you know, and maybe even more. 

837
00:57:31,640 --> 00:57:35,160
There you go. 
Exactly because one day I was 

838
00:57:35,160 --> 00:57:39,600
calculating how much I need, you
know, to own my car instead of 

839
00:57:39,600 --> 00:57:44,320
doing like car renting and then 
what's so it's ended up that 

840
00:57:44,320 --> 00:57:49,120
garage for the car going to be 
twice more expensive than the 

841
00:57:49,200 --> 00:57:52,520
actual car leasing gas insurance
all together. 

842
00:57:53,560 --> 00:57:56,200
So we we have quite limited 
space here. 

843
00:57:56,280 --> 00:57:58,520
Well there you go, you have your
idea. 

844
00:57:58,600 --> 00:58:02,160
Take it and run. 
Just rent like and if you have a

845
00:58:02,160 --> 00:58:04,280
vehicle you can rent trunk space
too. 

846
00:58:05,080 --> 00:58:07,760
Yeah, yeah I will. 
I will put it on PDF and again I

847
00:58:07,760 --> 00:58:12,480
go to all VC in my town. 
There you go, I have $1,000,000 

848
00:58:12,480 --> 00:58:18,200
idea. 
De Lucio has a funny I probably 

849
00:58:18,200 --> 00:58:21,280
butchered your name and I'm 
sorry about that, but he goes, 

850
00:58:21,800 --> 00:58:25,680
how about devs offering 10% 
equity to the guy with the idea?

851
00:58:25,680 --> 00:58:32,880
Devs seeking $1,000,000 idea 
will give 10% equity and that is

852
00:58:33,400 --> 00:58:35,480
that's a much better approach, I
agree. 

853
00:58:36,200 --> 00:58:39,720
And then for that 10%, you can 
sell the product once it's 

854
00:58:39,720 --> 00:58:43,760
built. 
Yeah, after, after so after 

855
00:58:43,760 --> 00:58:46,960
many, many years. 
Yeah, why not? 

856
00:58:47,360 --> 00:58:50,600
Yeah, but like, I think that's 
always the funniest thing. 

857
00:58:50,600 --> 00:58:54,480
People are so worried about a 
developer stealing their idea, 

858
00:58:54,480 --> 00:58:59,760
even if it is $1,000,000 idea. 
If if you don't, if if the 

859
00:58:59,760 --> 00:59:02,560
developer that you're telling it
to doesn't want to. 

860
00:59:02,680 --> 00:59:05,920
Like, you know how much you have
to put almost 100% of your time 

861
00:59:05,920 --> 00:59:09,000
into an idea that you want to 
build, launch and make 

862
00:59:09,000 --> 00:59:11,320
successful. 
So like, you're not going to 

863
00:59:11,400 --> 00:59:18,280
build even great ideas. 
I mean, for example, if honestly

864
00:59:18,280 --> 00:59:23,560
I believe in plain statistics, 
right, if you take house called 

865
00:59:23,840 --> 00:59:30,040
the the boilerplate ship fast 
from from Mark which which he's 

866
00:59:30,040 --> 00:59:33,120
selling like he got almost $1 
million right out of it. 

867
00:59:33,920 --> 00:59:40,920
So how many sales he made and 
how many of those who bought 

868
00:59:42,920 --> 00:59:45,640
became a millionaire, you know? 
Right. 

869
00:59:46,400 --> 00:59:49,600
Because this is like the target 
audience for the people who 

870
00:59:49,600 --> 00:59:53,120
dreaming to become a millionaire
by launching a successful 

871
00:59:53,120 --> 00:59:55,440
product. 
I mean, not even a millionaire, 

872
00:59:55,440 --> 00:59:57,880
but let's say that it's going to
pay all your current bills. 

873
00:59:57,880 --> 01:00:00,120
For me, that's already, you 
know, rich enough. 

874
01:00:00,120 --> 01:00:03,920
If you have passive income, 
which covers your active 

875
01:00:04,240 --> 01:00:07,440
spending, you're rich. 
That's it, Yeah. 

876
01:00:07,600 --> 01:00:11,480
And, and I, I, I don't see much 
of those, you know. 

877
01:00:13,400 --> 01:00:18,080
Well, I I think like just the 
environment of what you see a 

878
01:00:18,080 --> 01:00:21,560
lot of too, like lots of 
coaching to coach you to become 

879
01:00:21,560 --> 01:00:24,040
rich and all these things, 
right. 

880
01:00:24,040 --> 01:00:29,000
And everyone that is a customer 
of these programs isn't rich 

881
01:00:29,000 --> 01:00:30,760
yet. 
So they probably don't even, 

882
01:00:30,760 --> 01:00:33,880
they're not even willing to put 
in the grind to do what you have

883
01:00:33,880 --> 01:00:36,440
to do, even if you're being told
like you could be given the 

884
01:00:36,440 --> 01:00:39,280
blueprint and you're still not 
going to do it. 

885
01:00:40,160 --> 01:00:45,560
I think in, in, in the puzzle of
let's say successful product 

886
01:00:47,640 --> 01:00:51,960
idea is I don't know like how to
say it. 

887
01:00:52,400 --> 01:00:56,640
Like 10% of the like 10% of. 
The maybe even less, I think 

888
01:00:56,640 --> 01:01:01,360
even less and in order to 
increase your success rate or 

889
01:01:01,360 --> 01:01:06,160
luck, it's only put more work 
there is unfortunately there is 

890
01:01:06,560 --> 01:01:08,600
unfortunately no other way. 
Yeah. 

891
01:01:08,720 --> 01:01:13,960
Well, launching and producing a 
successful product is hard, 

892
01:01:14,080 --> 01:01:17,000
right? 
And I do think like one, it 

893
01:01:17,000 --> 01:01:21,440
takes skill, a lot of grit and 
grind and then a little bit of 

894
01:01:21,440 --> 01:01:28,720
luck as well, just because I 
think luck is probably just you 

895
01:01:28,720 --> 01:01:35,280
have to be prepared for the 
circumstance that like happens 

896
01:01:35,280 --> 01:01:39,440
to make you go viral or whatever
it may be, get you on the radar,

897
01:01:39,440 --> 01:01:42,640
right? 
And I always thought it was 

898
01:01:42,640 --> 01:01:45,600
funny, like, you know, when 
people talk about people being 

899
01:01:45,600 --> 01:01:50,120
lucky because they had a certain
opportunity that like came 

900
01:01:50,120 --> 01:01:53,880
across their desk or whatever, 
maybe they met a founder, got a 

901
01:01:53,880 --> 01:01:58,160
really good job, whatever. 
But at that moment in time when 

902
01:01:58,160 --> 01:02:00,880
that lucky circumstance 
happened, they still had to be 

903
01:02:01,640 --> 01:02:04,560
prepared to step up to the plate
and use the skills they already 

904
01:02:04,560 --> 01:02:08,120
have. 
So definitely luck is only a 

905
01:02:08,120 --> 01:02:13,560
small percentage of. 
And, and, and I think luck, I 

906
01:02:13,560 --> 01:02:16,680
mean, I would not even use this 
term honestly. 

907
01:02:16,720 --> 01:02:20,440
Of of course, obviously I heard 
I used to work in logistics 

908
01:02:20,440 --> 01:02:26,840
quite a lot and there was, I 
don't know how much of this 

909
01:02:26,840 --> 01:02:33,200
story is true, but see you all 
of FedEx in mid 80s when the 

910
01:02:33,200 --> 01:02:37,360
company was just like starting, 
they were about to go bankrupt 

911
01:02:37,560 --> 01:02:45,400
because they had to pay for 
airplane stay in the airport and

912
01:02:45,400 --> 01:02:49,120
you know, to pay for the gas And
it was like 25 grand or 

913
01:02:49,120 --> 01:02:51,840
something. 
And they had to pay like next 

914
01:02:51,840 --> 01:02:57,960
day because you know, there were
like invoice deadline and they 

915
01:02:57,960 --> 01:03:01,960
had $5000 on their account on a 
on a bank account of the 

916
01:03:01,960 --> 01:03:06,480
company, right. 
And CEO of FedEx withdraw this 

917
01:03:06,480 --> 01:03:13,320
money went to Vegas same night 
one in casino next they put this

918
01:03:13,320 --> 01:03:16,320
money back on the bank account 
and paid right. 

919
01:03:17,920 --> 01:03:19,960
I'm not sure how much of the 
story is true. 

920
01:03:20,000 --> 01:03:23,040
Maybe it's a bit exaggerated if.
Any of that's true, That's a 

921
01:03:23,040 --> 01:03:28,240
wild story. 
Yeah, and OK, let's it be. 

922
01:03:28,240 --> 01:03:30,800
But how many people lost this 
way? 

923
01:03:30,840 --> 01:03:34,960
You know, OK, you're one out of 
million who saved the company 

924
01:03:34,960 --> 01:03:38,800
and and I mean, you need to be 
CEO of FedEx first of all, to to

925
01:03:38,840 --> 01:03:43,160
be able to do such thing. 
And how? 

926
01:03:43,200 --> 01:03:45,720
How many people lost the same 
casino, right? 

927
01:03:45,960 --> 01:03:51,200
Same way. 
For sure I would absolutely 100%

928
01:03:51,200 --> 01:03:55,240
lose going to going to gamble. 
I would never even try. 

929
01:03:56,360 --> 01:03:58,480
I studied math and and physics 
so. 

930
01:03:59,320 --> 01:04:02,120
Yeah, you know the odds too 
well. 

931
01:04:02,920 --> 01:04:07,440
Yeah, exactly. 
You know, but still each time 

932
01:04:07,440 --> 01:04:10,680
when when we talk about like 
casino or wherever, when I see 

933
01:04:11,200 --> 01:04:13,760
I'm like Oh my God, nine hands 
in a black Jack and I'm a 

934
01:04:13,760 --> 01:04:16,520
millionaire. 
Just like 9 hands straight and 

935
01:04:16,920 --> 01:04:19,560
I'm done. 
There you go, that's all you 

936
01:04:19,560 --> 01:04:21,160
have to do. 
Exactly. 

937
01:04:22,440 --> 01:04:26,200
But that's funny. 
But yeah, I think it's funny 

938
01:04:26,200 --> 01:04:29,520
like cause I've had friends that
have actually had really good 

939
01:04:29,600 --> 01:04:34,080
product ideas and where I told 
them I was like, look, I can 

940
01:04:34,080 --> 01:04:38,160
build this for you, but you 
should go find funding or find a

941
01:04:38,160 --> 01:04:41,360
way to pay for it. 
And then they're like, well, if 

942
01:04:41,360 --> 01:04:43,360
it takes me a couple months to 
do that, you better not steal 

943
01:04:43,360 --> 01:04:45,960
this idea. 
It's like even if I wanted to 

944
01:04:45,960 --> 01:04:48,920
like, I can't afford to steal 
the idea 'cause I have all my 

945
01:04:48,920 --> 01:04:51,840
other projects that I'm working 
on so. 

946
01:04:52,320 --> 01:04:56,560
Plus I think in order to steal 
an idea you need to be as 

947
01:04:56,640 --> 01:04:59,560
passionate as the idea owner, 
which. 

948
01:05:00,040 --> 01:05:02,800
Exactly. 
Usually never the case. 

949
01:05:03,000 --> 01:05:05,680
Yeah, I agree. 
Like I'm passionate about my 

950
01:05:05,680 --> 01:05:07,880
projects. 
But then if someone tells me a 

951
01:05:07,880 --> 01:05:11,000
good idea, like I get it from 
like their viewpoint. 

952
01:05:11,280 --> 01:05:14,600
But yeah, if I'm not as 
passionate as you about what you

953
01:05:14,600 --> 01:05:16,640
want to build, it's going to 
fail. 

954
01:05:16,640 --> 01:05:19,800
Like I might be able to build 
something, but I'm not going to 

955
01:05:19,800 --> 01:05:22,960
like hang in there and see it to
the finish line push. 

956
01:05:23,120 --> 01:05:25,840
It further like you're not going
to carry it. 

957
01:05:26,200 --> 01:05:28,040
You're going to burn out. 
Exactly. 

958
01:05:28,040 --> 01:05:32,160
Take it in two evenings. 
Yeah, Yep. 

959
01:05:32,920 --> 01:05:36,080
I've I've built things that I 
was passionate about and I've 

960
01:05:36,080 --> 01:05:40,480
burned out. 
Like you really need to drive. 

961
01:05:40,480 --> 01:05:46,960
Fine, great idea, executed fast.
Launch it distributed through 

962
01:05:46,960 --> 01:05:49,960
whatever channels. 
I mean, that's endless amount of

963
01:05:49,960 --> 01:05:52,080
work. 
Yeah, building. 

964
01:05:52,080 --> 01:05:54,240
I always say building the 
products the easy part. 

965
01:05:54,840 --> 01:05:57,440
That's what you do once you have
a product that's hard. 

966
01:05:58,640 --> 01:06:04,320
And once your product like 
growing for example, while I was

967
01:06:04,320 --> 01:06:09,360
working at the Euro Center, our 
strategy I think changed two or 

968
01:06:09,360 --> 01:06:13,200
three times, not because of fast
because that the market 

969
01:06:13,200 --> 01:06:17,040
conditions were different. 
You know, now, now this part of 

970
01:06:17,040 --> 01:06:19,880
the business is unprofitable. 
We need to switch the direction 

971
01:06:19,880 --> 01:06:25,680
and go somewhere else and no one
is prepared for this. 

972
01:06:25,880 --> 01:06:27,880
You can't. 
Like, you know, it's not like 

973
01:06:27,880 --> 01:06:31,600
with analytics, once you 
installed and forget, no, you 

974
01:06:31,600 --> 01:06:34,760
need constantly tweak and adjust
something. 

975
01:06:35,080 --> 01:06:37,800
Yeah. 
And like your customers, where 

976
01:06:37,800 --> 01:06:42,160
you're finding them might change
and what they need and need and 

977
01:06:42,160 --> 01:06:45,200
want from you changes. 
So you're constantly having to 

978
01:06:45,200 --> 01:06:49,800
shift even your current product.
Like, I've rarely started an 

979
01:06:49,800 --> 01:06:53,840
idea that hasn't shifted into a 
slightly different idea. 

980
01:06:53,840 --> 01:06:57,560
Like might not be way off, but 
you never start. 

981
01:06:58,080 --> 01:07:01,720
You never, you never end up 
where you started. 

982
01:07:02,080 --> 01:07:04,360
Everything slightly changes a 
little bit. 

983
01:07:04,920 --> 01:07:08,040
I have a very great example on 
this topic. 

984
01:07:09,000 --> 01:07:14,600
This summer I actually met one 
of the original WhatsApp 

985
01:07:14,600 --> 01:07:17,920
developers like this from the 
core team. 

986
01:07:18,320 --> 01:07:22,760
Oh wow. 
I think 5 of them and 

987
01:07:22,760 --> 01:07:26,640
essentially, I mean, we didn't 
spoke much, we didn't talk much 

988
01:07:26,640 --> 01:07:29,520
about Alex here or TP and their 
lank. 

989
01:07:29,520 --> 01:07:34,600
And why did you know it was he 
was on vacations and, and, and 

990
01:07:34,600 --> 01:07:37,160
we decided not to raise like 
work, work topics. 

991
01:07:37,680 --> 01:07:41,600
But he explained to me how they 
how they came up with the 

992
01:07:41,600 --> 01:07:47,320
WhatsApp idea. 
So they saw that iPhone became a

993
01:07:47,320 --> 01:07:53,280
thing, right? 
And once you do the the message 

994
01:07:53,840 --> 01:07:57,400
like I want to send a message to
you, I don't know, are you 

995
01:07:57,400 --> 01:08:01,000
taking a shower, are you 
driving, are you busy and 

996
01:08:01,000 --> 01:08:04,280
etcetera. 
So there was no indicator that 

997
01:08:04,280 --> 01:08:07,480
you available. 
And what they originally 

998
01:08:07,480 --> 01:08:13,080
developed it was a simple app 
which would display your status 

999
01:08:13,080 --> 01:08:17,399
and change it in the real time. 
So for example, you said like 

1000
01:08:17,439 --> 01:08:21,040
I'm busy, right And everyone see
like that you are busy. 

1001
01:08:22,120 --> 01:08:25,520
And then when they launched the 
app, they saw I think some 

1002
01:08:25,640 --> 01:08:32,160
Korean people or from somewhere 
like from Asia, started using it

1003
01:08:33,080 --> 01:08:38,040
to send messages to each other 
because it was way cheaper than 

1004
01:08:38,040 --> 01:08:40,720
sending SMS because iMessage was
not the thing. 

1005
01:08:40,920 --> 01:08:44,240
Oh yeah, and, and back then you 
had to pay per text. 

1006
01:08:44,840 --> 01:08:47,880
Exactly per per like length of 
your message. 

1007
01:08:48,040 --> 01:08:51,040
That's right. 
And iMessage was not the thing 

1008
01:08:51,040 --> 01:08:53,120
for the next I don't know how 
many years, right. 

1009
01:08:53,880 --> 01:08:58,120
And then they were like, oh, OK,
now we're doing a messenger app.

1010
01:08:59,040 --> 01:09:02,399
Like the the Messenger which 
which you installed probably the

1011
01:09:02,399 --> 01:09:06,800
first app on on your phone was 
not intended to be a messenger 

1012
01:09:06,800 --> 01:09:10,240
at the beginning. 
So that was a crazy story. 

1013
01:09:10,439 --> 01:09:14,000
Like wild. 
And like, I think I'm probably 

1014
01:09:14,200 --> 01:09:17,560
gonna butcher this, but I think 
Slack had a like a crazy story 

1015
01:09:17,560 --> 01:09:21,399
too, where they were originally 
a game. 

1016
01:09:21,560 --> 01:09:24,520
There was some crappy game that 
they couldn't get off the ground

1017
01:09:25,040 --> 01:09:29,920
and they had like a messaging 
component that was like amazing,

1018
01:09:29,920 --> 01:09:32,279
and they ended up scrapping the 
game. 

1019
01:09:32,399 --> 01:09:35,439
They were like running out of 
money and they just took the 

1020
01:09:35,439 --> 01:09:38,520
chatting piece of it and turned 
it into a product. 

1021
01:09:38,920 --> 01:09:41,279
I'm sure I'm butchering that 
story and there's a lot more to 

1022
01:09:41,279 --> 01:09:45,520
it, but that's the essentialness
of it. 

1023
01:09:45,960 --> 01:09:48,680
Why slack takes 4 gigabytes of 
my memory? 

1024
01:09:51,319 --> 01:09:55,120
But I haven't used slack in a 
couple years and I don't miss 

1025
01:09:55,120 --> 01:09:57,680
it. 
I'm fully on discord right now. 

1026
01:09:58,440 --> 01:10:02,720
Yeah, I mean for let's say non 
professional, I use Discord as 

1027
01:10:02,720 --> 01:10:05,160
well, but Slack I don't know, 
still quite a lot of 

1028
01:10:05,160 --> 01:10:08,000
communities. 
Whenever you're well and I feel 

1029
01:10:08,000 --> 01:10:10,920
like whenever you're, every 
company still uses slack. 

1030
01:10:10,920 --> 01:10:13,640
Unless you you're making 
decision not to, right? 

1031
01:10:14,120 --> 01:10:17,000
Like my company doesn't use 
slack, but if I join someone 

1032
01:10:17,000 --> 01:10:19,160
else's team I'd probably have to
get Slack again. 

1033
01:10:20,800 --> 01:10:23,840
Exactly. 
Yeah, I mean, I think Discord as

1034
01:10:23,840 --> 01:10:26,120
well is built on the on the 
airline, correct? 

1035
01:10:27,520 --> 01:10:32,760
I think like a little bit, I 
know some shifts have happened, 

1036
01:10:33,200 --> 01:10:38,640
but I know at least for a while 
they were Elixir and then I 

1037
01:10:38,640 --> 01:10:42,880
think they also used a lot of 
rust and I can't remember now. 

1038
01:10:44,480 --> 01:10:46,280
No, I'm thinking of Bleacher 
Report. 

1039
01:10:46,280 --> 01:10:51,640
Bleacher Report ended up leaving
Elixir because they had like a 

1040
01:10:51,720 --> 01:10:55,640
high level bought down to dev 
decision. 

1041
01:10:56,120 --> 01:11:00,160
Like they kind of like base 
their decision off of like a 

1042
01:11:00,160 --> 01:11:06,320
crazy higher ups choice and not 
overall performance. 

1043
01:11:06,320 --> 01:11:08,320
I don't really remember the 
whole story, but it's kind of 

1044
01:11:08,320 --> 01:11:11,600
weird. 
It has, I don't know. 

1045
01:11:12,120 --> 01:11:17,440
Yeah, let, let, let them play. 
Yeah, but I do believe Discord 

1046
01:11:17,440 --> 01:11:21,520
uses Elixir and Rust and I don't
know what else. 

1047
01:11:21,520 --> 01:11:23,320
They have quite a bit of 
technology in there. 

1048
01:11:24,480 --> 01:11:28,360
Because for me, when, when I 
discovered Alex here, I think it

1049
01:11:28,360 --> 01:11:31,080
was, yeah, like 6, maybe even 
seven years ago. 

1050
01:11:33,400 --> 01:11:37,040
I mean, I always had a challenge
how, how, how to handle 10 

1051
01:11:37,040 --> 01:11:39,320
million connections on the PHP 
server. 

1052
01:11:39,440 --> 01:11:43,960
Like in the moment of time. 
The, the, the short answer, you 

1053
01:11:43,960 --> 01:11:46,960
cannot. 
And of course you need to find 

1054
01:11:46,960 --> 01:11:50,320
the way how to optimize it, you 
know, how to do the load 

1055
01:11:50,320 --> 01:11:54,840
balancing, doing job queues and 
event driven systems out of this

1056
01:11:55,280 --> 01:11:58,600
and etcetera. 
And then one, one of like really

1057
01:11:58,600 --> 01:12:03,400
greatest senior, back end senior
like I ever knew, he came to me 

1058
01:12:03,400 --> 01:12:05,520
and he was like, oh, did you 
know OTP? 

1059
01:12:05,520 --> 01:12:07,120
And we're like, what does it 
mean? 

1060
01:12:07,120 --> 01:12:14,560
He was like, look, 35 years ago.
What developed it based on the, 

1061
01:12:14,560 --> 01:12:18,680
I mean Joe Armstrong? 
Based on the physics. 

1062
01:12:20,560 --> 01:12:25,280
And, and put it into, into 
virtual machine and I was like 

1063
01:12:25,320 --> 01:12:27,520
what, like 30 years ago? 
Oh my God. 

1064
01:12:28,240 --> 01:12:30,440
And it still works great 
nowadays, you know. 

1065
01:12:30,960 --> 01:12:35,160
Yeah, it's wild. 
All these obstructions and all 

1066
01:12:35,160 --> 01:12:38,640
this pain for which I had to go 
in almost every language 

1067
01:12:39,360 --> 01:12:42,360
implemented like on this level 
of code. 

1068
01:12:43,080 --> 01:12:44,920
That's that's crazy. 
Yeah. 

1069
01:12:45,080 --> 01:12:47,400
And I think now that's 38 years 
ago. 

1070
01:12:47,880 --> 01:12:53,200
Yeah, I I think they they 
started. 188680. 6. 

1071
01:12:54,040 --> 01:12:58,240
Yeah, that's wild. 
All these problems were solved 

1072
01:12:58,240 --> 01:13:02,400
and we, like most people, 
haven't picked up on it and they

1073
01:13:02,400 --> 01:13:05,440
still pick up. 
They go they go and try to use 

1074
01:13:05,440 --> 01:13:07,720
JavaScript. 
On the back end. 

1075
01:13:08,120 --> 01:13:11,680
Yeah. 
Which is 1 threaded by design. 

1076
01:13:13,560 --> 01:13:17,720
Exactly. 
See. 

1077
01:13:17,720 --> 01:13:19,760
And you were worried we weren't 
going to hit an hour. 

1078
01:13:19,800 --> 01:13:23,200
We're over an hour. 
I was like really worried. 

1079
01:13:24,320 --> 01:13:26,600
Ask only about Phoenix 
Analytics. 

1080
01:13:26,600 --> 01:13:29,280
I was. 
Like dude, every time I I guess 

1081
01:13:29,280 --> 01:13:33,800
I don't worry anymore but I want
to say I forget what number this

1082
01:13:33,800 --> 01:13:36,360
is. 
This is like my 26th podcast. 

1083
01:13:37,000 --> 01:13:41,080
I have always panicked. 
I was like, dude, what if like 

1084
01:13:41,080 --> 01:13:43,560
whenever we first start, I'll 
like notice the clock more and 

1085
01:13:43,560 --> 01:13:45,880
I'm like, dude, we've only been 
talking for 10 minutes. 

1086
01:13:45,880 --> 01:13:50,440
How, how am I going to do this? 
And it always it always works 

1087
01:13:50,440 --> 01:13:53,960
out. 
Yeah, I mean, I don't know, I, 

1088
01:13:54,120 --> 01:13:56,000
I, I honestly, I came up with 
this. 

1089
01:13:56,480 --> 01:14:00,920
I I was doing a prototype, like 
coming back to our Million Ideas

1090
01:14:02,240 --> 01:14:05,080
topic. 
Friend of mine, she's an 

1091
01:14:05,080 --> 01:14:08,200
accountant. 
She came to me, she has like 

1092
01:14:08,200 --> 01:14:11,520
your own firm and then she's 
running like accounting for, for

1093
01:14:11,600 --> 01:14:15,320
for other small firms. 
She's like, you know what, I 

1094
01:14:15,320 --> 01:14:18,400
really wanted to have a 
dashboard where I upload this 

1095
01:14:18,400 --> 01:14:21,960
Excel file and I will have this 
nice graphs out of it. 

1096
01:14:22,640 --> 01:14:26,560
I was like, OK, let's see, 
that's how I ended up like 

1097
01:14:26,560 --> 01:14:29,360
building a dashboard and 
displaying graphs. 

1098
01:14:29,360 --> 01:14:33,320
And then I was like OK, so since
I already have it and I wired 

1099
01:14:33,320 --> 01:14:35,600
everything together, where else 
I can put it? 

1100
01:14:36,280 --> 01:14:38,440
There you go. 
So you had to build analytics. 

1101
01:14:39,280 --> 01:14:42,040
You had no choice. 
You're like, I figured out the 

1102
01:14:42,040 --> 01:14:45,080
hard part. 
Yeah. 

1103
01:14:45,200 --> 01:14:46,920
I mean front end it was the 
hardest. 

1104
01:14:47,440 --> 01:14:50,000
Well, I feel like the the 
charting would be the hardest 

1105
01:14:50,000 --> 01:14:56,760
for me, but yeah. 
And and then I was OK tracing. 

1106
01:14:57,560 --> 01:15:02,520
Let's make a plug which going to
trace OK what to use as a 

1107
01:15:02,520 --> 01:15:06,560
database. 
I I remind like remembered about

1108
01:15:06,560 --> 01:15:08,080
the doc to be and that's it. 
So. 

1109
01:15:08,400 --> 01:15:11,680
Yeah, that's awesome. 
I I probably wouldn't have 

1110
01:15:11,680 --> 01:15:14,440
thought about that and I would 
done would have done everything 

1111
01:15:14,440 --> 01:15:18,680
in Postgres and then I would 
have a really slow Phoenix app. 

1112
01:15:20,080 --> 01:15:22,560
There is one feature which I 
have. 

1113
01:15:22,640 --> 01:15:30,640
So when when you click the hour 
on, on some charts, it's going 

1114
01:15:30,640 --> 01:15:37,000
to like do the period per hour. 
And once I accidentally press it

1115
01:15:37,000 --> 01:15:47,480
on the yearly view. 
So and I had 24 * 365 and like 

1116
01:15:47,480 --> 01:15:52,760
displayed all of this and when I
was using tag DB I didn't notice

1117
01:15:52,880 --> 01:15:58,160
that you know, I pressed this, 
but if you do it on the Postgres

1118
01:15:58,720 --> 01:16:01,480
it's it never loaded for me so. 
Be careful. 

1119
01:16:02,520 --> 01:16:05,920
That's crazy. 
OK, good to know. 

1120
01:16:05,920 --> 01:16:08,480
Yeah, exactly. 
I'm, I'm actually pretty 

1121
01:16:08,480 --> 01:16:11,000
excited. 
I do want to check out your 

1122
01:16:11,000 --> 01:16:14,560
project. 
I want to just throw it into my 

1123
01:16:14,760 --> 01:16:19,720
my little hosting platform and 
kind of use it as my internal 

1124
01:16:19,720 --> 01:16:22,240
analytics for traffic and see 
how it works out. 

1125
01:16:23,320 --> 01:16:28,120
If you all have 4 O fours 500, 
it's not me. 

1126
01:16:29,840 --> 01:16:34,160
Well, it's it's probably me. 
But if you do, let me know 

1127
01:16:34,200 --> 01:16:36,840
please. 
For sure I will. 

1128
01:16:37,520 --> 01:16:39,920
No, yeah, it looks like it looks
cool. 

1129
01:16:39,920 --> 01:16:43,280
I like your documentation. 
It's exciting to see projects 

1130
01:16:43,280 --> 01:16:46,560
like this too kind of hit our 
ecosystem because I think it's 

1131
01:16:46,840 --> 01:16:49,680
it's beneficial for Bootstrap 
start-ups. 

1132
01:16:50,680 --> 01:16:55,040
I mean, I really, really hope 
that maybe community can set the

1133
01:16:55,040 --> 01:16:57,000
direction where it's supposed to
go. 

1134
01:16:57,320 --> 01:17:01,880
Yes, I mean, I saw that I I 
roughly got 400 downloads. 

1135
01:17:01,880 --> 01:17:04,280
Like someone actually installed 
it from hex. 

1136
01:17:04,760 --> 01:17:05,960
That's wild. 
That's awesome. 

1137
01:17:06,360 --> 01:17:09,800
Yeah, and, and I mean, I really 
hope that maybe it's more people

1138
01:17:09,800 --> 01:17:14,000
gonna come to GitHub issues and 
not just write an issue that 

1139
01:17:14,000 --> 01:17:16,200
something doesn't work. 
I mean, that's for sure as well.

1140
01:17:16,200 --> 01:17:17,320
Welcome. 
Yeah, yeah. 

1141
01:17:17,360 --> 01:17:21,000
But. 
Maybe just propose some ideas, 

1142
01:17:21,040 --> 01:17:23,160
features or? 
For sure. 

1143
01:17:23,400 --> 01:17:28,280
How have you found Managing Open
Source an open source project? 

1144
01:17:29,520 --> 01:17:33,880
I mean, actually the the 
scariest part of it because I 

1145
01:17:33,880 --> 01:17:38,120
had some open source projects in
the in the go link and they were

1146
01:17:38,120 --> 01:17:42,000
used at some moments in time, 
but then I abandoned them and 

1147
01:17:42,040 --> 01:17:47,080
and and forget it's the 
criticism because always, you 

1148
01:17:47,080 --> 01:17:50,560
know, when you make your code 
open source or you make a pull 

1149
01:17:50,560 --> 01:17:54,640
request somewhere, you only hear
like this is wrong. 

1150
01:17:54,680 --> 01:17:56,320
This, this must be better. 
Here. 

1151
01:17:56,320 --> 01:18:04,080
I can I can make ON -1 optimized
algorithm whatsoever or like 

1152
01:18:04,080 --> 01:18:07,480
instead of this library you had 
to pick this one it has. 

1153
01:18:08,000 --> 01:18:10,920
The opinions fly in. 
Yeah, yeah, yeah. 

1154
01:18:11,080 --> 01:18:15,960
And honestly, like with the with
the elixir community up for now,

1155
01:18:16,440 --> 01:18:23,600
I see that it's different and 
people like much more mature. 

1156
01:18:23,600 --> 01:18:28,480
Maybe I don't know how to how to
explain this, but for example, I

1157
01:18:28,520 --> 01:18:34,080
saw the author of Live View life
Vue. 

1158
01:18:34,080 --> 01:18:39,000
Yeah, not life you. 
Oh yeah, yeah, VVUE. 

1159
01:18:39,320 --> 01:18:42,640
Exactly. 
We're just my last Who was it? 

1160
01:18:44,920 --> 01:18:48,000
Shoot. 
Yeah, Jacob, I think he he's 

1161
01:18:48,000 --> 01:18:50,720
the, he's the water. 
Yeah, I know, but we were 

1162
01:18:50,720 --> 01:18:54,880
talking about how it's it's the 
worst name ever because live 

1163
01:18:54,880 --> 01:18:58,520
view already exists and you 
can't talk about the library 

1164
01:18:58,520 --> 01:19:01,320
without correcting what library 
you're talking about. 

1165
01:19:03,040 --> 01:19:05,680
Just bad naming convention on 
accident I think. 

1166
01:19:06,360 --> 01:19:11,440
And and what he posted, like 
Jose wrote to him on like on 

1167
01:19:11,440 --> 01:19:17,640
Twitter, like great usage of 
this, you know, super nice coat 

1168
01:19:17,640 --> 01:19:20,320
or whatsoever. 
Where are you going to sit in 

1169
01:19:20,320 --> 01:19:23,600
the other communities that 
someone writes to you and says 

1170
01:19:24,080 --> 01:19:26,600
you made a great work? 
You know, like this piece of 

1171
01:19:26,600 --> 01:19:29,040
code. 
These two lines is brilliant. 

1172
01:19:31,160 --> 01:19:34,360
Yeah, you never, you never get 
compliments on your good stuff. 

1173
01:19:34,360 --> 01:19:38,520
It's always just it's like a 
like QA when you release a new 

1174
01:19:38,520 --> 01:19:42,560
feature or about to you don't 
you don't hear about what's 

1175
01:19:42,560 --> 01:19:44,800
working great. 
It's all about this is broken, 

1176
01:19:44,800 --> 01:19:47,320
this is broken, this is broken. 
Exactly. 

1177
01:19:47,320 --> 01:19:50,600
Even though you added amazing 
spinner with the two second 

1178
01:19:50,680 --> 01:19:55,080
delay, no. 
One going to, you know, yeah, 

1179
01:19:55,080 --> 01:19:58,360
you make this beautiful 
animation and everyone talks 

1180
01:19:58,360 --> 01:20:00,760
about how slow it's loading 
instead of appreciating the 

1181
01:20:00,760 --> 01:20:03,280
animation. 
You see exactly. 

1182
01:20:03,680 --> 01:20:07,560
And I, I think that's actually 
in my previous company where I 

1183
01:20:07,560 --> 01:20:12,760
was the CTO and I always had 
conflicts between developers And

1184
01:20:12,960 --> 01:20:16,640
every, every time when, when I 
digged into you like where the 

1185
01:20:16,640 --> 01:20:19,200
conflict started, it was a pull 
request. 

1186
01:20:19,960 --> 01:20:23,240
Like they they started fighting 
over a pull request. 

1187
01:20:23,560 --> 01:20:26,560
That's so funny. 
And then I realized that 

1188
01:20:26,560 --> 01:20:32,440
actually on the pull request, 
you either receive like, OK, or 

1189
01:20:32,440 --> 01:20:38,400
like looks good to me, or you 
receive plenty of bad comments, 

1190
01:20:38,400 --> 01:20:42,160
right? 
Like and, and I see that in Alex

1191
01:20:42,160 --> 01:20:43,560
here. 
Maybe it's a bit different 

1192
01:20:44,280 --> 01:20:48,440
that's people try to be like 
nicer, like more people. 

1193
01:20:48,440 --> 01:20:52,400
Well, the, the The thing is with
pull requests though, if it is 

1194
01:20:52,400 --> 01:20:55,080
good code, I don't want to have 
to read a bunch of comments 

1195
01:20:55,080 --> 01:20:57,960
complimenting it 'cause you just
want to get, you don't want like

1196
01:20:58,200 --> 01:21:01,000
if I see a comment, I think 
there's something I have to pay 

1197
01:21:01,000 --> 01:21:05,560
attention to. 
So I like personally, maybe I 

1198
01:21:05,560 --> 01:21:08,640
have thicker skin than most, but
I just want those negative 

1199
01:21:08,640 --> 01:21:11,840
comments so I can just get 
through my pull request. 

1200
01:21:14,200 --> 01:21:17,920
Yeah, but some people still take
it very personal. 

1201
01:21:18,200 --> 01:21:23,640
I remember when I first started 
like pull requests and comments 

1202
01:21:23,640 --> 01:21:27,320
and QA, like when people find a 
bug in code you just wrote. 

1203
01:21:27,720 --> 01:21:30,680
I took it very personally. 
And I, I was, you know, I'd be 

1204
01:21:30,680 --> 01:21:35,800
like, Dang it, like, like, I 
can't believe these guys are 

1205
01:21:35,800 --> 01:21:37,840
attacking me like this. 
But at the end of the day, 

1206
01:21:37,840 --> 01:21:39,720
you're just trying to release a 
good product. 

1207
01:21:41,040 --> 01:21:44,080
Yeah, I mean, or I was really 
afraid when I when I publish it,

1208
01:21:44,080 --> 01:21:48,960
like everyone gonna say, Oh my 
God, Doug ZP like you know what 

1209
01:21:48,960 --> 01:21:54,320
the dump like why he brought 
like another thing, but but no, 

1210
01:21:54,320 --> 01:21:59,760
actually a lot of people were 
like, OK, it's like 25 times 

1211
01:21:59,760 --> 01:22:01,760
faster than to do it on my 
Postgres. 

1212
01:22:01,760 --> 01:22:04,680
OK, it makes sense. 
Yeah, no, that's awesome. 

1213
01:22:05,000 --> 01:22:09,560
Well, like when I saw that too. 
Also, I was coming from not 

1214
01:22:09,560 --> 01:22:12,640
being familiar with it, so I was
like, oh that's weird. 

1215
01:22:12,640 --> 01:22:14,600
I wonder why? 
And then when I started like 

1216
01:22:14,600 --> 01:22:16,680
looking into it, I was like, oh,
that makes sense. 

1217
01:22:17,440 --> 01:22:19,640
Yeah, and and and it's like in 
process database. 

1218
01:22:19,640 --> 01:22:22,480
So you, I promise you don't need
to set up anything. 

1219
01:22:22,600 --> 01:22:24,720
Yeah, no, that's awesome too, 
right? 

1220
01:22:24,720 --> 01:22:28,520
Like 3 lines of code and then I 
can I'm ready to go. 

1221
01:22:29,040 --> 01:22:30,560
Yeah. 
I love it. 

1222
01:22:31,160 --> 01:22:35,840
All right, well, I think this 
has been a good conversation, so

1223
01:22:35,840 --> 01:22:38,920
if anyone has questions for 
Daniel, hit him Now. 

1224
01:22:40,320 --> 01:22:43,200
It's a shame bad news is more 
profitable than good. 

1225
01:22:45,160 --> 01:22:47,840
Yeah, bad news is always more 
profitable. 

1226
01:22:51,200 --> 01:22:54,640
But anyways, for everyone that 
tuned in, thank you so much. 

1227
01:22:54,640 --> 01:22:56,160
And I hope you guys have a good 
weekend. 

1228
01:22:56,160 --> 01:22:58,320
And Daniel, thank you so much 
for joining me today. 

1229
01:22:58,320 --> 01:23:02,880
It's been a lot of fun. 
Thank you for inviting and great

1230
01:23:02,880 --> 01:23:07,840
weekend to everyone and hope you
know maybe one more time to be 

1231
01:23:07,840 --> 01:23:10,120
on this podcast. 
Hey, you're welcome. 

1232
01:23:10,360 --> 01:23:11,840
You're welcome back anytime, 
man. 

1233
01:23:11,920 --> 01:23:15,040
It's been fun. 
I need to develop something else

1234
01:23:15,040 --> 01:23:17,600
now. 
Hey, we can just come on and 

1235
01:23:17,600 --> 01:23:20,240
talk about anything that that's 
what I tell everyone. 

1236
01:23:20,800 --> 01:23:24,400
Let's just talk about yeah, just
talk about anything in Elixir 

1237
01:23:24,440 --> 01:23:27,800
and I think we're good to go. 
All right, guys. 

1238
01:23:28,320 --> 01:23:32,600
See you guys have a good weekend
testing.

