1
00:00:00,360 --> 00:00:02,600
All right, we're ready. 
I'm always ready. 

2
00:00:05,080 --> 00:00:08,640
Welcome, welcome. 
Welcome to the Embedded AI 

3
00:00:08,640 --> 00:00:10,320
Podcast. 
Thanks for joining us. 

4
00:00:10,320 --> 00:00:14,360
I'm one of your hosts in Reality
World and the Meat space, the 

5
00:00:14,360 --> 00:00:17,680
physical reality where the wind 
blows the sunshine and the 

6
00:00:17,680 --> 00:00:20,040
rainfalls. 
I'm Ryan Torvik. 

7
00:00:21,000 --> 00:00:24,680
And I'm Luke and Joni. 
And this is a podcast about how 

8
00:00:24,720 --> 00:00:27,720
embedded development and 
artificial intelligence, large 

9
00:00:27,720 --> 00:00:30,960
language models, how the the 
overlap between those two 

10
00:00:30,960 --> 00:00:34,880
technologies and those two 
spheres of influence those 

11
00:00:34,880 --> 00:00:38,400
spaces are are interacting with 
each other in the modern day. 

12
00:00:38,600 --> 00:00:40,760
Going to give you guys some 
ideas about like, hey, this is 

13
00:00:40,760 --> 00:00:42,720
working, this isn't working. 
This is what people are thinking

14
00:00:42,720 --> 00:00:43,560
about. 
This is what we're talking 

15
00:00:43,560 --> 00:00:45,400
about. 
So today we're going to have a 

16
00:00:45,400 --> 00:00:49,040
great discussion. 
It's totally scripted, totally 

17
00:00:49,040 --> 00:00:53,920
scripted discussion about AI 
development and like something 

18
00:00:53,920 --> 00:00:56,280
that Luke and I have been been 
kind of hashing out back and 

19
00:00:56,280 --> 00:00:58,080
forth and finally, you know it, 
gloves on. 

20
00:00:58,600 --> 00:01:00,520
Let's put the ropes up. 
Let's do this. 

21
00:01:07,000 --> 00:01:09,560
OK, well, Luca, start us off. 
Let's do it. 

22
00:01:09,680 --> 00:01:11,120
Where? 
Where do you want to go? 

23
00:01:12,080 --> 00:01:15,720
Right, so the list is what 
happened was that we discussed 

24
00:01:15,720 --> 00:01:18,480
what we were going to talk about
and we said, oh, you know, let's

25
00:01:18,480 --> 00:01:21,960
talk about like spectrum 
development and all of these 

26
00:01:21,960 --> 00:01:24,200
things. 
And I said, you know what, let's

27
00:01:24,360 --> 00:01:27,600
maybe be a bit more systematic 
about this because it's a pretty

28
00:01:27,600 --> 00:01:29,800
big topic. 
How about we start sort of from 

29
00:01:29,800 --> 00:01:31,280
the bottom up. 
Let's talk about test driven 

30
00:01:31,280 --> 00:01:33,280
development. 
And, and Ryan was like that, you

31
00:01:33,440 --> 00:01:35,920
know, this is, this isn't the 
1990s anymore. 

32
00:01:36,360 --> 00:01:39,640
Nobody, Nobody needs to worry 
about TDD anymore. 

33
00:01:40,320 --> 00:01:47,360
And so passe man. 
Yes, and The thing is, I, I 

34
00:01:47,360 --> 00:01:50,280
absolutely disagree. 
So this is this is going to be 

35
00:01:50,280 --> 00:01:52,400
fun. 
I I have no idea where this 

36
00:01:52,400 --> 00:01:55,680
discussion is going to lead us, 
but I do I do have opinions, 

37
00:01:55,680 --> 00:01:58,120
dear listeners, and it and it 
feels like Ryan does as well. 

38
00:01:58,480 --> 00:02:01,080
Yes. 
So we'll see what we learned. 

39
00:02:01,440 --> 00:02:04,320
Let's see what happens and I'm 
sure we'll come up with an 

40
00:02:04,320 --> 00:02:06,760
actual, like everyone agrees now
that we've done this, but like 

41
00:02:06,760 --> 00:02:09,639
this is so yes, so test driven 
development. 

42
00:02:09,639 --> 00:02:14,120
I'm, I'm making the argument 
that test driven development is 

43
00:02:14,120 --> 00:02:18,760
for humans is that, you know, 
when you are designing a system,

44
00:02:19,000 --> 00:02:21,640
you, the reason that we need 
test driven development is 

45
00:02:21,640 --> 00:02:25,240
because human beings have laid 
out some idea of requirements. 

46
00:02:25,240 --> 00:02:27,120
And a lot of times those 
requirements aren't even written

47
00:02:27,120 --> 00:02:29,160
down. 
They're just kind of like in 

48
00:02:29,160 --> 00:02:33,080
your brain in between your ears.
And then what we have a tendency

49
00:02:33,080 --> 00:02:35,680
to do is we immediately start 
writing code. 

50
00:02:36,200 --> 00:02:40,480
And so test driven development 
has arisen because we need to be

51
00:02:40,480 --> 00:02:43,800
more clear that the code is 
going to perform in a certain 

52
00:02:43,800 --> 00:02:46,040
way. 
And so we as human beings have 

53
00:02:46,040 --> 00:02:48,720
decided, OK, what's what's more 
helpful, what's more effective? 

54
00:02:49,120 --> 00:02:51,000
Well, great. 
Well, if you write the tests 

55
00:02:51,000 --> 00:02:53,920
first, then you have at least 
laid down some requirements and 

56
00:02:54,000 --> 00:02:59,160
some specifications to view 
future human being or other 

57
00:02:59,160 --> 00:03:01,040
human beings to say like, OK, 
we're going to write the test 

58
00:03:01,040 --> 00:03:04,160
1st and then the code's going to
work When they, when those, so 

59
00:03:04,160 --> 00:03:07,600
you were tech, you were testing 
and verifying and validating 

60
00:03:07,600 --> 00:03:10,440
while you're writing the code 
that it's actually performing 

61
00:03:10,440 --> 00:03:12,560
the way that you want it to 
perform because you've written 

62
00:03:12,560 --> 00:03:16,240
tests that are thorough and 
complete and they have a good 

63
00:03:16,240 --> 00:03:17,600
thing. 
And that is good for human 

64
00:03:17,600 --> 00:03:21,240
beings because human beings do 
not have the discipline 

65
00:03:21,240 --> 00:03:24,280
necessarily to just write code 
and it worked the way that they 

66
00:03:24,280 --> 00:03:26,040
want it to work. 
We're we're finding out like you

67
00:03:26,040 --> 00:03:28,920
need to have this other, you 
need to to approach the problem 

68
00:03:28,920 --> 00:03:33,000
from a certain direction and you
know, just writing the code and 

69
00:03:33,000 --> 00:03:34,720
then checking it like, does this
meet the spec? 

70
00:03:34,720 --> 00:03:36,280
Yeah, of course it does. 
Do you test it? 

71
00:03:36,280 --> 00:03:40,360
No, but whatever. 
So like so, my argument in this 

72
00:03:40,360 --> 00:03:42,960
case is that Test driven 
development is for human being 

73
00:03:42,960 --> 00:03:48,240
development and not necessarily 
necessary for AI development. 

74
00:03:49,600 --> 00:03:51,520
That that that is such an 
interesting argument. 

75
00:03:51,560 --> 00:03:54,960
I mean, I can, I can kind of see
where you're coming from, you 

76
00:03:54,960 --> 00:03:58,320
know, you know, if if all I'm 
doing is prompting the AI and 

77
00:03:58,320 --> 00:04:05,360
the AI writes a code, then why 
would I possibly need tests like

78
00:04:05,720 --> 00:04:08,400
how could the AI possibly do it 
wrong? 

79
00:04:10,160 --> 00:04:12,640
So. 
I mean, not to make your point, 

80
00:04:12,640 --> 00:04:14,840
I did have it write out some 
tests the other day and I went 

81
00:04:14,840 --> 00:04:17,320
to review them and it was just, 
it didn't actually include 

82
00:04:17,320 --> 00:04:19,399
anything from the actual code 
that it was supposed to be 

83
00:04:19,399 --> 00:04:21,079
testing. 
It was just mocking out all the 

84
00:04:21,079 --> 00:04:22,680
calls to the. 
Code. 

85
00:04:22,680 --> 00:04:25,840
Oh yeah, Oh yeah, they love. 
Doing the box I was. 

86
00:04:27,280 --> 00:04:31,080
Like I, I actually I, I have AI 
have a term for that. 

87
00:04:32,200 --> 00:04:37,040
I I call that success theatre. 
Yes, you guys love that. 

88
00:04:37,520 --> 00:04:46,080
I Yep, me too. 
Yeah, but so The thing is, so 

89
00:04:46,080 --> 00:04:49,120
firstly, obviously you, you 
would still want tests. 

90
00:04:49,440 --> 00:04:52,400
You want them to guard against 
regressions. 

91
00:04:52,760 --> 00:04:57,800
You want them in order to prove 
that what has been created is, 

92
00:04:57,800 --> 00:05:01,360
you know, complete and correct 
to the best of your knowledge. 

93
00:05:02,400 --> 00:05:05,880
So it's not even that tests are 
somehow obsolete now that we 

94
00:05:05,880 --> 00:05:12,480
have AI and, and I, I know that 
a lot of startups are now coming

95
00:05:12,480 --> 00:05:14,840
out with the idea that, you 
know, you don't need to write 

96
00:05:14,840 --> 00:05:17,240
those annoyed testing more. 
The AI will write the test for 

97
00:05:17,240 --> 00:05:19,360
you. 
And I, I don't think are you 

98
00:05:19,360 --> 00:05:25,080
guys mad like the AI writing 
test for me is the last thing 

99
00:05:25,080 --> 00:05:28,960
that I want because that is my 
only line of defense against the

100
00:05:28,960 --> 00:05:33,560
AI doing stupid things. 
I must if, if, if I must be in 

101
00:05:33,560 --> 00:05:38,200
control of anything, it must be 
the tests like those are my only

102
00:05:38,200 --> 00:05:40,240
protection against the AI going 
off the Reds. 

103
00:05:41,080 --> 00:05:44,920
Because let's, let's be honest, 
if I have to review all of the 

104
00:05:44,920 --> 00:05:48,720
code that the AI generates, that
I'm not actually having any 

105
00:05:48,720 --> 00:05:50,920
speed advantages or anything, 
that I'm just, you know, then 

106
00:05:51,160 --> 00:05:53,280
then I'm the bottleneck again. 
So I can't have that. 

107
00:05:53,280 --> 00:05:58,800
I cannot, you know, sort of 
meticulously review all of the 

108
00:05:58,800 --> 00:06:02,560
code that the AI writes. 
And I sort of, I give myself 

109
00:06:02,560 --> 00:06:07,120
liberty to be a little more 
lenient with that, given that I 

110
00:06:07,120 --> 00:06:11,480
have a rock solid battery of 
tests that that sort of proves 

111
00:06:11,480 --> 00:06:14,680
that, you know, what, whatever 
the code decides it wants to do,

112
00:06:15,360 --> 00:06:17,480
the outcome is correct, 
provably. 

113
00:06:18,280 --> 00:06:20,120
So Long story short, I still 
want tests. 

114
00:06:20,320 --> 00:06:23,280
Well, so then what? 
You're not thinking agentically,

115
00:06:23,280 --> 00:06:29,200
man, where you have one agent 
write the tests and you have 

116
00:06:29,200 --> 00:06:31,800
another agent write the code. 
And you have a third agent that 

117
00:06:31,800 --> 00:06:34,760
reviews the tests and a third 
agent and a fourth agent that 

118
00:06:34,760 --> 00:06:37,200
reviews the code. 
And then a fifth agent that goes

119
00:06:37,200 --> 00:06:39,480
and reviews all of the things 
that those other agents did. 

120
00:06:39,720 --> 00:06:43,400
So that, you know, that's how 
you get your reliability is that

121
00:06:43,400 --> 00:06:45,520
the, you write the, you have the
thing, write the test, then you 

122
00:06:45,520 --> 00:06:46,800
have something else review the 
tests. 

123
00:06:46,800 --> 00:06:49,400
And so like, it's the, it's the 
Swiss cheese model. 

124
00:06:49,400 --> 00:06:52,040
You just keep throwing more 
layers of Swiss cheese on it and

125
00:06:52,040 --> 00:06:56,440
look, no water gets through man.
Yeah, so the problem about this 

126
00:06:56,440 --> 00:07:02,560
is that this all hinges on the 
assumption that all of these 

127
00:07:02,560 --> 00:07:06,800
fantastic agents are in 
possession of complete and 

128
00:07:06,800 --> 00:07:08,560
correct knowledge. 
In other words, they know 

129
00:07:08,560 --> 00:07:12,080
exactly what the system is 
supposed to behave like. 

130
00:07:12,520 --> 00:07:15,680
Oh yeah, I wrote it down in my 
little in my in my 5 line 

131
00:07:15,680 --> 00:07:16,760
prompt. 
That's why I put it in there and

132
00:07:16,760 --> 00:07:17,920
knows exactly how it's supposed 
to behave. 

133
00:07:18,000 --> 00:07:22,720
Yeah, and I see this is the 
point you get like 5 lines worth

134
00:07:22,720 --> 00:07:24,720
of information. 
This, this is all the context 

135
00:07:24,720 --> 00:07:26,000
plus, you know, maybe a little 
bit of. 

136
00:07:26,520 --> 00:07:29,120
Oh man, I pumped out. 
I pumped out like 10s of 

137
00:07:29,120 --> 00:07:32,080
thousands of lines of code 
yesterday with a like question. 

138
00:07:32,080 --> 00:07:34,040
I didn't even write a prompt, I 
wrote a question. 

139
00:07:35,480 --> 00:07:38,120
Yeah, right. 
And and and this is and this is 

140
00:07:38,120 --> 00:07:40,040
the thing that that is exactly 
the problem. 

141
00:07:40,680 --> 00:07:44,800
Because to go from 5 lines of 
prompt to 10,000 lines of code 

142
00:07:44,960 --> 00:07:51,640
means there is 999,000. 
No, no, 995,000 lines worth of 

143
00:07:51,640 --> 00:07:53,360
assumptions in there. 
Yeah. 

144
00:07:54,320 --> 00:07:57,960
And sometimes they are correct 
and sometimes they are not. 

145
00:07:58,440 --> 00:08:03,080
And what's even worse, you don't
know what the assumptions are, 

146
00:08:04,800 --> 00:08:08,480
right? 
The AI just made stuff up and 

147
00:08:08,480 --> 00:08:10,800
ran with it. 
Yeah, yeah. 

148
00:08:11,160 --> 00:08:13,760
And this is, and this is the 
problem, and This is why I say 

149
00:08:14,480 --> 00:08:18,600
we still need all of this 
because so here it comes. 

150
00:08:19,160 --> 00:08:24,680
If I say I, I have very specific
ideas about what I want the 

151
00:08:24,680 --> 00:08:27,240
system to behave like. 
I need to describe it somehow. 

152
00:08:27,560 --> 00:08:29,600
So I need to write essentially A
specification. 

153
00:08:30,120 --> 00:08:36,440
And The thing is, if I want to 
write an unambiguous, useful, 

154
00:08:37,280 --> 00:08:41,919
automatically runnable 
specification, what's it look 

155
00:08:41,919 --> 00:08:43,760
like? 
It looks like tests. 

156
00:08:44,880 --> 00:08:51,640
So in other words, I arrive at 
Test Driven Development through 

157
00:08:51,640 --> 00:08:55,960
the necessity of clearly 
describing and defining the 

158
00:08:55,960 --> 00:09:00,720
desired behavior of my system. 
Well, and you guys so in, in, 

159
00:09:00,720 --> 00:09:04,360
in, in an embedded in an 
embedded way direction too, you 

160
00:09:04,360 --> 00:09:07,280
know, to tie in a little bit 
with the agile embedded podcast,

161
00:09:07,800 --> 00:09:10,280
you guys have talked a lot about
test driven development on on 

162
00:09:10,280 --> 00:09:13,520
that podcast and talked about, 
you know, how you have to 

163
00:09:13,520 --> 00:09:15,840
structure your code differently.
You have to structure the way 

164
00:09:15,840 --> 00:09:19,760
you think about putting your 
system together to make sure 

165
00:09:19,760 --> 00:09:23,800
that your code is even testable.
And so, you know, if you start 

166
00:09:23,800 --> 00:09:28,120
with A5 line prompter, A2 line 
prompt, like you, if you don't 

167
00:09:28,320 --> 00:09:31,480
make sure that the AI is even 
supposed to write tests, it'll 

168
00:09:31,480 --> 00:09:34,400
write tests, but it won't be 
able to actually run the test or

169
00:09:34,400 --> 00:09:38,040
they won't, they'll be success 
theater because it didn't 

170
00:09:38,040 --> 00:09:40,400
actually structure the code in a
way so that it could be 

171
00:09:40,400 --> 00:09:43,840
testable. 
So like there's, there's it's, 

172
00:09:43,840 --> 00:09:46,600
it's really like the embedded 
thing makes it a little really 

173
00:09:46,600 --> 00:09:48,400
interesting too, because like 
you can just write a bunch of 

174
00:09:48,400 --> 00:09:51,480
code and if it's not structured 
to be testable, it even the test

175
00:09:51,480 --> 00:09:55,200
won't won't test anything. 
And so there is like, OK, cool. 

176
00:09:55,200 --> 00:09:58,120
Well then if you want to do test
driven development, fine, tell 

177
00:09:58,120 --> 00:09:59,760
the AI you want to do test 
driven development. 

178
00:10:00,880 --> 00:10:03,800
Make sure you write tests that 
are reasonable and valuable. 

179
00:10:03,800 --> 00:10:05,880
And there you go. 
It'll it'll totally do that. 

180
00:10:06,800 --> 00:10:09,800
And if it doesn't do it the 
first time, it'll just throw 

181
00:10:09,800 --> 00:10:12,200
more agents at it. 
It's the Ralph Wiggum way. 

182
00:10:12,200 --> 00:10:15,120
Just keep iterating on it over 
and over and over again. 

183
00:10:15,400 --> 00:10:16,880
It's. 
All the way down. 

184
00:10:19,360 --> 00:10:21,920
So there's, there's the, there's
the Ralph Wiggum thing where you

185
00:10:21,920 --> 00:10:24,880
just, and maybe we should 
explain that the Ralph Wiggum 

186
00:10:24,880 --> 00:10:28,200
thing, which is like you, you 
tell the AI to do something, it 

187
00:10:28,200 --> 00:10:31,400
tries it and then it tells like,
hey, and then you give it a, a 

188
00:10:31,640 --> 00:10:33,720
criteria to say, make sure all 
the tests pass. 

189
00:10:34,160 --> 00:10:35,440
And then it's like, oh, the pest
don't pass. 

190
00:10:35,440 --> 00:10:37,400
OK, do it again. 
Woop, woop, woop. 

191
00:10:37,400 --> 00:10:39,600
And then it just keeps off 
kicking agents over and over 

192
00:10:39,600 --> 00:10:42,720
again to do the same thing until
all the tests pass or until it 

193
00:10:42,720 --> 00:10:44,880
knocks out all the tests. 
And it's like, cool, the tests 

194
00:10:44,880 --> 00:10:48,280
are good now we've turned it 
into success theater. 

195
00:10:48,360 --> 00:10:49,600
I watched to do that yesterday 
too. 

196
00:10:49,600 --> 00:10:52,480
It's like, oh, this test, we 
don't need this one anymore. 

197
00:10:52,480 --> 00:10:55,600
It's tested in this other way. 
Super cool. 

198
00:10:55,600 --> 00:10:58,000
Deleted that one. 
Couldn't get it to pass anyways.

199
00:10:58,600 --> 00:11:01,680
So So yes, that's kind of like 
the AI response. 

200
00:11:01,680 --> 00:11:04,960
It's like, no, just throw more 
compute at it, throw more non 

201
00:11:04,960 --> 00:11:09,040
determinism at it, and 
eventually you'll get something 

202
00:11:09,040 --> 00:11:10,200
reasonable out of your 
determinate. 

203
00:11:10,280 --> 00:11:12,160
Your deterministic solution will
be correct. 

204
00:11:16,360 --> 00:11:22,160
On the unreasonable assumption 
that the AI with all its, you 

205
00:11:22,160 --> 00:11:26,840
know, many agents is in complete
possession of of all of the, you

206
00:11:26,840 --> 00:11:30,200
know, intended properties and 
behaviors and so on off the 

207
00:11:30,200 --> 00:11:32,360
system. 
And it just isn't. 

208
00:11:32,360 --> 00:11:35,120
It can't. 
It essentially can't possibly be

209
00:11:35,440 --> 00:11:39,440
because there is so much 
implicit knowledge in any but 

210
00:11:39,440 --> 00:11:45,320
the most trivial of products 
that for one thing, you need to,

211
00:11:45,920 --> 00:11:49,680
you need a human to sort of help
help the AI out there and say, 

212
00:11:49,680 --> 00:11:52,480
well, this assumption is wrong 
or you missed that one or 

213
00:11:52,840 --> 00:11:55,480
whatever it may be. 
But also it needs to be 

214
00:11:55,480 --> 00:11:58,040
explicit. 
Like I need to be able to go 

215
00:11:58,040 --> 00:12:00,800
back later and say, OK, what was
the assumption? 

216
00:12:00,800 --> 00:12:02,920
Ah, there it is. 
That that's the wrong assumption

217
00:12:02,920 --> 00:12:06,920
that I need to correct expressed
as a test, you know, you know, 

218
00:12:07,240 --> 00:12:10,400
but I assume the system should I
demand the system should work 

219
00:12:10,400 --> 00:12:11,960
this way. 
And then I can look at this and 

220
00:12:11,960 --> 00:12:14,240
say, no, actually, that's 
incorrect. 

221
00:12:14,600 --> 00:12:17,320
Either it had been incorrect all
along, or I already just learned

222
00:12:17,320 --> 00:12:20,120
something new and discovered, 
no, this is the wrong way to do 

223
00:12:20,120 --> 00:12:21,400
it. 
We need to do it another way. 

224
00:12:21,920 --> 00:12:24,720
And then I can express this 
change in terms of a test and 

225
00:12:24,720 --> 00:12:27,240
say, no, no, no, this is the 
desired behavior. 

226
00:12:27,840 --> 00:12:30,960
I've expressed it. 
The test presumably now fails. 

227
00:12:31,240 --> 00:12:33,840
Go write the system or change 
the system in such a way that 

228
00:12:33,840 --> 00:12:36,720
the test now passes. 
And that means that we have 

229
00:12:36,720 --> 00:12:40,320
achieved success. 
You know, So Long story short, 

230
00:12:41,840 --> 00:12:46,200
tests are my way of prompting 
the, you know, those are 

231
00:12:46,200 --> 00:12:49,720
prompts. 
Whatever you tell an LLM, you 

232
00:12:49,720 --> 00:12:52,640
know, you type in your little 
box, do this thing, it should 

233
00:12:52,640 --> 00:12:54,200
have those properties, blah, 
blah, blah, whatever. 

234
00:12:55,280 --> 00:12:57,440
That's all fine, but it's 
ephemeral. 

235
00:12:57,680 --> 00:13:01,440
You know, it just evaporates, 
You type it and then it's gone. 

236
00:13:03,440 --> 00:13:08,480
If I if I if I were to express 
the same things and encapsulate 

237
00:13:08,480 --> 00:13:11,720
them in test cases, they would 
be permanent. 

238
00:13:12,200 --> 00:13:15,720
They would be available for 
inspection, for discussion, for 

239
00:13:15,720 --> 00:13:22,200
modification. 
So I think quite to the 

240
00:13:22,200 --> 00:13:27,400
contrary, TDD and testing in 
general has become even more 

241
00:13:27,400 --> 00:13:32,840
crucial in the age of AI because
it is my main way of 

242
00:13:32,840 --> 00:13:35,680
communicating my intent to the 
to the LLM. 

243
00:13:37,240 --> 00:13:40,680
So if I've been binge watching 
and I'm not saying I've been 

244
00:13:40,680 --> 00:13:42,160
doing this, I've totally been 
doing this. 

245
00:13:42,320 --> 00:13:44,600
If I've been binge watching and 
I'm not even calling it vibe 

246
00:13:44,600 --> 00:13:46,120
code anymore, people are very 
clear. 

247
00:13:46,320 --> 00:13:48,240
The serious people are not 
calling it vibe code anymore. 

248
00:13:48,240 --> 00:13:53,360
They're calling it a gentic AI 
coding where you know, the it's 

249
00:13:53,400 --> 00:13:56,320
it's a much more complete. 
So we talked a little bit about 

250
00:13:56,560 --> 00:13:58,840
spectrum and development before 
where there, you know, these 

251
00:13:58,840 --> 00:14:01,120
spec hits and these other things
that it's like go through and 

252
00:14:01,120 --> 00:14:07,080
actually put together a plan. 
But using all of these tools and

253
00:14:07,080 --> 00:14:10,720
these techniques, like you're, 
I'm never touching source code 

254
00:14:10,840 --> 00:14:11,840
anymore. 
Like that. 

255
00:14:12,160 --> 00:14:14,640
Like the the way that they're 
that these are coming around is 

256
00:14:14,640 --> 00:14:16,760
like, I don't even know what 
language I'm programming 

257
00:14:16,760 --> 00:14:18,440
anymore, man. 
Is it C? 

258
00:14:18,440 --> 00:14:19,880
Is it C++? 
Is it go? 

259
00:14:19,880 --> 00:14:22,080
Is it C# by I have no idea. 
It doesn't matter. 

260
00:14:22,080 --> 00:14:23,960
Is it Rust? 
Like you just tell it to move it

261
00:14:23,960 --> 00:14:27,200
and Rust, it doesn't rust. 
So like there, the way that 

262
00:14:27,200 --> 00:14:30,520
their people are pushing this is
to get you even further away 

263
00:14:30,520 --> 00:14:34,440
from, from syntax and from 
compilation flags and all this 

264
00:14:34,440 --> 00:14:37,720
stuff. 
And so you, you, you talk to the

265
00:14:37,720 --> 00:14:42,400
LOM in a certain way and then 
you go through and put together 

266
00:14:42,400 --> 00:14:45,640
a specification with the LOM. 
And then the LOM will actually 

267
00:14:45,640 --> 00:14:47,400
put together a design document 
with you. 

268
00:14:47,840 --> 00:14:49,840
I think they were calling this 
PRD at some point. 

269
00:14:49,840 --> 00:14:54,160
Projects or product requirements
stock file document, Yes. 

270
00:14:54,160 --> 00:14:56,000
And so they'd actually put 
together APRD. 

271
00:14:56,000 --> 00:14:58,960
So you have a discussion, it's 
asking you questions and then 

272
00:14:58,960 --> 00:15:01,680
you put together a PRD and then 
it dumps out that that 

273
00:15:01,680 --> 00:15:03,800
requirements document that 
specification file. 

274
00:15:04,120 --> 00:15:07,320
And then you just hand that off 
to the next agent to then go and

275
00:15:07,320 --> 00:15:10,200
implement that. 
And if you say I want tests, 

276
00:15:10,440 --> 00:15:12,560
then it'll say, OK, you, you've 
got tests. 

277
00:15:12,720 --> 00:15:15,280
If you in that PRD say, well, I 
want the test to be of this 

278
00:15:15,280 --> 00:15:19,120
format, I want it to have these 
things, then it says, OK, I'll 

279
00:15:19,120 --> 00:15:22,200
go and do that. 
And so like everything that you 

280
00:15:22,200 --> 00:15:25,360
want the LLM to do, instead of 
communicating it through code, 

281
00:15:25,920 --> 00:15:28,520
you're communicating it through 
human language and code 

282
00:15:28,520 --> 00:15:30,160
snippets. 
So I yeah. 

283
00:15:30,160 --> 00:15:31,840
Yeah, but but you're missing the
point. 

284
00:15:32,320 --> 00:15:34,960
You're missing the point I'm I'm
not telling the L and MI want 

285
00:15:34,960 --> 00:15:36,800
tests rather I am yes, of course
I am. 

286
00:15:38,200 --> 00:15:44,040
But the, the specific behaviour 
that I, that I expect of the 

287
00:15:44,040 --> 00:15:48,800
system, I express as tests. 
And look, I've, I've been 

288
00:15:48,800 --> 00:15:51,760
working extensively with 
spectrum development. 

289
00:15:51,760 --> 00:15:56,160
And in fact, we, you know, this 
particular episode came about 

290
00:15:56,440 --> 00:16:00,280
because we were thinking, well, 
how do we get started with an 

291
00:16:00,320 --> 00:16:02,040
interesting episode of spectrum 
development? 

292
00:16:02,600 --> 00:16:06,000
So your listeners expect more 
than you can handle about this 

293
00:16:06,000 --> 00:16:09,440
in the future. 
Because once more, I do have 

294
00:16:09,440 --> 00:16:14,960
capital O opinions. 
And I am not just the giant 

295
00:16:14,960 --> 00:16:20,680
troll, I also have opinions. 
Yeah, but but the point is that 

296
00:16:21,040 --> 00:16:24,200
the point is like in your 
example from from before, you 

297
00:16:24,200 --> 00:16:27,200
know, you 3 and 5 lines of 
prompt, then you got out 10,000 

298
00:16:27,200 --> 00:16:30,640
lines of code. 
So there's 9995 lines of 

299
00:16:30,640 --> 00:16:34,120
assumptions in there. 
And even if you sort of expand 

300
00:16:34,120 --> 00:16:37,360
on this and say, well I do 
spectrum development and it's 

301
00:16:37,360 --> 00:16:40,920
going to create APID and 
whatnot, yes, that is that is 

302
00:16:40,920 --> 00:16:42,840
fantastic and you should 
absolutely do this. 

303
00:16:43,560 --> 00:16:47,360
But it is still at too high a 
level. 

304
00:16:47,640 --> 00:16:52,080
You are letting go of too much 
specificity that you're going to

305
00:16:52,080 --> 00:16:56,240
need not at all times. 
Like there are parts of every 

306
00:16:56,240 --> 00:16:58,280
application where you can 
essentially just say, well, 

307
00:16:58,280 --> 00:17:01,720
yada, yada, you know, create me 
a login mask. 

308
00:17:01,800 --> 00:17:03,800
I don't, I don't actually care 
what it looks like. 

309
00:17:04,119 --> 00:17:06,760
It's supposed to look like any 
other old login mask, you know, 

310
00:17:06,960 --> 00:17:10,359
just just do something and you 
know, it's going to be fine. 

311
00:17:10,920 --> 00:17:13,599
And, and this is sort of where 
you where you can take advantage

312
00:17:13,599 --> 00:17:15,720
of that compression. 
But at the same time, any 

313
00:17:15,720 --> 00:17:20,079
meaningful application would 
have certain certain parts where

314
00:17:20,079 --> 00:17:25,319
you will be very, very specific 
about exactly what you need and 

315
00:17:25,319 --> 00:17:28,800
how you need it, and not an iota
different. 

316
00:17:29,360 --> 00:17:32,880
This is what you should express 
through tests, in my opinion, 

317
00:17:33,040 --> 00:17:36,560
because this is this is exactly 
the language of describing very 

318
00:17:36,560 --> 00:17:39,760
specifically what the system is 
supposed to do. 

319
00:17:39,760 --> 00:17:41,920
I mean, yeah, you could do the 
same thing in prose. 

320
00:17:41,920 --> 00:17:45,480
You know, you can, you can write
a bunch of PRDS and if you're 

321
00:17:45,480 --> 00:17:49,240
lucky then they translate into 
exactly the code and the 

322
00:17:49,240 --> 00:17:52,720
behaviour that you want. 
But on the other hand, you can 

323
00:17:52,720 --> 00:17:56,040
express it a test as tests. 
And you would take luck out of 

324
00:17:56,040 --> 00:18:00,760
the equation because if the 
tests pass, then demonstrably 

325
00:18:01,200 --> 00:18:04,760
the system exhibits exactly 
desired, the desired behaviours,

326
00:18:05,000 --> 00:18:12,600
full stop. 
So I, I, I, I, I, I, I remain 

327
00:18:12,600 --> 00:18:17,720
totally steadfast. 
Whoever let's go off the reins 

328
00:18:18,040 --> 00:18:22,680
in terms of tests when using AI 
is a fool, full stop. 

329
00:18:24,280 --> 00:18:26,040
Oh, there we go. 
We did it. 

330
00:18:26,240 --> 00:18:29,880
There we go, all. 
Right, so I want to walk through

331
00:18:29,880 --> 00:18:32,920
this and so I want to walk 
through and have you kind of 

332
00:18:32,920 --> 00:18:37,040
explain I'm going to walk you 
through how I did it and 

333
00:18:37,040 --> 00:18:38,960
actually I still haven't flashed
it to the board, so I don't know

334
00:18:38,960 --> 00:18:41,080
if it actually works yet, but 
the tests all passed so it's 

335
00:18:41,080 --> 00:18:43,520
totally fine so it. 
Must work. 

336
00:18:44,840 --> 00:18:47,760
It's totally gone. 
Only one of those files was just

337
00:18:47,760 --> 00:18:50,000
filled with mocks. 
The other, the other three test 

338
00:18:50,000 --> 00:18:53,200
files had actual code in them 
that that looked like it 

339
00:18:53,200 --> 00:18:58,080
compiled and ran. 
So I have an Arduino. 

340
00:18:58,560 --> 00:19:02,040
I have a little Arduino and R3 
here and I, I, I haven't done 

341
00:19:02,040 --> 00:19:03,680
it. 
I haven't actually hooked it up,

342
00:19:03,680 --> 00:19:05,320
but I was going to hook up some 
sensors to it. 

343
00:19:05,320 --> 00:19:08,000
I was going to get motion 
detection sensor to it and then 

344
00:19:08,000 --> 00:19:11,680
I was going to hook this up to 
my STM 32 and then I'm going to 

345
00:19:11,680 --> 00:19:16,440
have the STM 32 communicate with
the with the Arduino to to you 

346
00:19:16,440 --> 00:19:19,680
know, get that sensor data back 
from the Arduino. 

347
00:19:19,920 --> 00:19:22,680
OK, so I got the Arduino getting
it got in sensor data and then I

348
00:19:22,680 --> 00:19:25,880
was going to have a display on 
the STM 32 display. 

349
00:19:26,480 --> 00:19:29,520
And so the only areas of 
communication are over the wire 

350
00:19:29,520 --> 00:19:31,000
where they're doing some UR 
communication. 

351
00:19:31,200 --> 00:19:33,760
I said I don't, I don't care. 
However, you need to communicate

352
00:19:33,760 --> 00:19:36,600
and it's like, what do you want 
text based or do you want binary

353
00:19:36,600 --> 00:19:38,120
based? 
And it's like whatever you want,

354
00:19:38,120 --> 00:19:39,920
man. 
So it, it created a binary 

355
00:19:39,920 --> 00:19:42,760
format, it had a, you know, it's
got the different fields in it. 

356
00:19:42,760 --> 00:19:46,680
Very, very standard, you know, 
custom UR communications format.

357
00:19:46,880 --> 00:19:49,800
And then it put in tests to make
sure that we parsed it on this 

358
00:19:49,800 --> 00:19:52,920
side and parsed it on this side.
And then it spit out here's 

359
00:19:52,960 --> 00:19:56,040
here's an Arduino and Ino file. 
And then it's like in here's the

360
00:19:56,040 --> 00:19:59,760
STM 32 library and everything 
compiles and all the tests pass 

361
00:19:59,760 --> 00:20:03,840
and then we'll just go to town. 
So like, but I actually started 

362
00:20:03,840 --> 00:20:05,240
that entire process with a 
question. 

363
00:20:05,240 --> 00:20:07,560
I was like, I like to do an 
interesting project and I have 

364
00:20:07,560 --> 00:20:09,280
this hardware available to me. 
What should I do? 

365
00:20:09,680 --> 00:20:11,160
And it said, OK, let's do these 
things. 

366
00:20:11,400 --> 00:20:12,840
And then it did it. 
We talked, we had a 

367
00:20:12,840 --> 00:20:15,680
conversation, it spit out a 
whole specification and then it 

368
00:20:15,680 --> 00:20:18,320
went and. 
The code and then later on today

369
00:20:18,320 --> 00:20:20,160
I'm going to flash into the 
board and see what happens. 

370
00:20:21,440 --> 00:20:27,560
So like, what would your, you 
know, in your druthers if you 

371
00:20:27,560 --> 00:20:29,920
had it your way and you're 
completing a project like this? 

372
00:20:30,480 --> 00:20:33,640
Where do you insert your test? 
Where do you insert yourself 

373
00:20:33,640 --> 00:20:37,880
into this process? 
Well, the, the stupid answer, of

374
00:20:37,880 --> 00:20:44,280
course is everywhere but not, 
but, but, but not sort of with 

375
00:20:44,280 --> 00:20:50,480
the same level of specificity. 
So first of all, I, I to sort of

376
00:20:50,480 --> 00:20:54,680
break out of the topic of this 
episode, which is talking about 

377
00:20:54,680 --> 00:20:57,880
TDD very specifically. 
I, I would in fact start very 

378
00:20:57,880 --> 00:21:01,640
high up in, in the STD 3 and 
really talk about what's the 

379
00:21:01,640 --> 00:21:05,440
intent of this? 
How do I think I will decompose 

380
00:21:05,440 --> 00:21:11,640
it and so on and so on. 
So not to, not to get too far 

381
00:21:11,640 --> 00:21:14,600
into it, but, but commonly in in
STD, you have those three 

382
00:21:14,600 --> 00:21:18,040
different layers of, of 
requirements where you describe 

383
00:21:18,600 --> 00:21:20,400
what you want and why you want 
it. 

384
00:21:20,680 --> 00:21:23,920
You have what they call a plan 
where you sort of structure it 

385
00:21:23,920 --> 00:21:25,320
and say, well, those are the 
components. 

386
00:21:25,320 --> 00:21:27,960
This is how they interact. 
Then you break that down into 

387
00:21:27,960 --> 00:21:31,560
tasks. 
So individual implementation 

388
00:21:31,560 --> 00:21:36,280
steps that sort of piece by 
piece turn the plan into reality

389
00:21:36,280 --> 00:21:41,040
if you like. 
And so if I, if I start with 

390
00:21:41,040 --> 00:21:44,320
something as vague and it'll 
defined as, you know, tell me an

391
00:21:44,320 --> 00:21:46,840
interesting project, then I 
can't do that yet. 

392
00:21:46,840 --> 00:21:49,840
And I would still, and I would 
still rather, I would first have

393
00:21:49,840 --> 00:21:54,880
to do sort of a refinement cycle
and figure out what even are my 

394
00:21:54,880 --> 00:21:57,040
requirements. 
Like what is the fun thing that 

395
00:21:57,040 --> 00:22:01,560
I'm not that I could potentially
build that, but that I am 

396
00:22:01,720 --> 00:22:05,320
completely going to build. 
And once I've got that more or 

397
00:22:05,320 --> 00:22:10,200
less fixed and I'm able to, to 
formulate requirements and turn 

398
00:22:10,200 --> 00:22:12,400
them into, you know, a 
requirements documented PID, if 

399
00:22:12,400 --> 00:22:14,200
you like. 
And then I can start 

400
00:22:14,200 --> 00:22:16,040
decomposing. 
And once I've got a plan and 

401
00:22:16,080 --> 00:22:19,520
sort of those building blocks, 
then we're getting into play 

402
00:22:19,520 --> 00:22:23,680
with, with TDD because then I 
can say, OK, I've, I've got 

403
00:22:23,680 --> 00:22:27,640
those components now let me 
describe the entire, the desired

404
00:22:27,640 --> 00:22:31,080
behavior of those components and
the interfaces between those 

405
00:22:31,080 --> 00:22:35,760
components in terms of tests. 
So this is where I would come 

406
00:22:35,760 --> 00:22:38,360
in. 
I'd sort of really go from first

407
00:22:38,360 --> 00:22:41,040
principles, you know, figure out
what the system is going to look

408
00:22:41,040 --> 00:22:45,480
like that I want to build. 
So another question is how do I 

409
00:22:45,480 --> 00:22:51,480
get started with proper TDD? 
Well, the So the thing about 

410
00:22:51,480 --> 00:22:53,560
TDD, I. 
Have a question now too. 

411
00:22:53,560 --> 00:22:56,160
So we've gotten this far. 
So you've you've, you've created

412
00:22:56,160 --> 00:22:58,480
the kind of you've, you've 
gotten first principles, you've 

413
00:22:58,480 --> 00:23:01,080
understood like the purpose of 
this, of this entire project 

414
00:23:01,520 --> 00:23:04,960
you've laid and, and then you've
kind of laid out the system 

415
00:23:04,960 --> 00:23:08,720
level requirements for, for 
this, for this system. 

416
00:23:08,720 --> 00:23:10,400
And this is, you know, 
communication layers, all this 

417
00:23:10,400 --> 00:23:12,720
stuff. 
How much of a used AI at this 

418
00:23:12,720 --> 00:23:14,400
point? 
How much of you have you logged 

419
00:23:14,400 --> 00:23:16,000
into Cloud Code and actually had
a? 

420
00:23:16,000 --> 00:23:17,520
Conversation. 
All of it. 

421
00:23:17,520 --> 00:23:19,880
All of it. 
So that, so in that situation 

422
00:23:19,880 --> 00:23:23,080
you are you are in a planning 
phase then and Cloud Code does 

423
00:23:23,080 --> 00:23:25,480
have a planning phase for this 
specifically to have that 

424
00:23:25,480 --> 00:23:27,880
conversation and actually plan 
this out and lay that out. 

425
00:23:28,840 --> 00:23:32,360
What do you think? 
Make me like write a document 

426
00:23:32,360 --> 00:23:35,640
like a like a caveman? 
Like fucking noises on the 

427
00:23:35,640 --> 00:23:36,360
keyboard? 
No. 

428
00:23:38,520 --> 00:23:40,000
OK. 
So you've had a discussion, 

429
00:23:40,000 --> 00:23:42,160
you've had a discussion with the
LLM, There's some back. 

430
00:23:42,160 --> 00:23:43,480
Of course. 
And then you have it. 

431
00:23:43,520 --> 00:23:46,720
Yeah, I'm, I'm going to have it,
have it create a draft and then 

432
00:23:46,720 --> 00:23:49,200
I'm going to critique the draft 
and we're going to refine and, 

433
00:23:49,600 --> 00:23:52,800
and all of that jazz and, and 
we're going to do this for every

434
00:23:52,800 --> 00:23:54,240
single level. 
So yeah. 

435
00:23:54,840 --> 00:23:57,960
And I, I totally did this. 
I did, I did this, it, it 

436
00:23:57,960 --> 00:23:59,960
printed out to my screen. 
I was using cloud code and I 

437
00:23:59,960 --> 00:24:01,680
printed out to my screen. 
It's like, OK, here's all the 

438
00:24:01,680 --> 00:24:03,600
things. 
And I was like, you know, I have

439
00:24:03,600 --> 00:24:05,840
a very specific requirements for
my development environment. 

440
00:24:05,840 --> 00:24:07,720
I don't want to install 
compilers on my desktop. 

441
00:24:07,720 --> 00:24:09,520
I want my compilers to be in a 
Docker container. 

442
00:24:09,520 --> 00:24:12,320
So I was like, make sure you use
this skill to create a Docker 

443
00:24:12,320 --> 00:24:13,840
container and put all the 
development tools in there. 

444
00:24:14,040 --> 00:24:17,600
But, and then I had to go and I 
don't, I'm not flashing my board

445
00:24:17,600 --> 00:24:19,280
through the development 
container and I need to do that 

446
00:24:19,280 --> 00:24:21,040
directly on the hardware. 
Don't get me started with the 

447
00:24:21,040 --> 00:24:24,240
USB pass throughs and Docker. 
Like I'm not dealing with this 

448
00:24:24,840 --> 00:24:26,920
or serial pastors. 
No, like I don't want to deal 

449
00:24:26,920 --> 00:24:28,480
with this. 
Like we're going to go and like 

450
00:24:28,480 --> 00:24:29,760
do. 
So I had to go and like clear 

451
00:24:29,760 --> 00:24:31,800
that out and then I set up a 
test that says. 

452
00:24:32,160 --> 00:24:34,840
Then we're already getting into 
the then we're already getting 

453
00:24:34,840 --> 00:24:38,800
into the woods, aren't we? 
Like if, if you wouldn't jump in

454
00:24:38,800 --> 00:24:41,200
and say no very specifically, 
this is how I wanted, this is 

455
00:24:41,200 --> 00:24:42,560
not how I want it, etcetera, 
etcetera. 

456
00:24:42,760 --> 00:24:44,560
It would just make up stuff. 
Yeah. 

457
00:24:45,080 --> 00:24:48,840
Cheers. 
Quite quite reasonably because 

458
00:24:48,840 --> 00:24:50,880
what you know what, what other 
option does it have? 

459
00:24:51,200 --> 00:24:54,240
And if you're lucky, it would 
have done what you intended for 

460
00:24:54,240 --> 00:24:58,320
it to do, but perhaps not right.
Anyway, Long story short, so 

461
00:24:58,680 --> 00:25:02,600
I've I've created this high 
level description, but it's 

462
00:25:02,600 --> 00:25:04,800
still too high. 
In many cases like that, there's

463
00:25:04,800 --> 00:25:10,880
going to be corner cases that 
would just it, it would not be 

464
00:25:11,600 --> 00:25:14,560
right to describe them on the, 
in those high level documents. 

465
00:25:14,560 --> 00:25:15,800
They, they're just in the wrong 
place there. 

466
00:25:15,800 --> 00:25:18,720
It's, it's much too detailed. 
And also I'm not even thinking 

467
00:25:18,720 --> 00:25:21,360
about that yet. 
Like that's, that's far too far 

468
00:25:21,360 --> 00:25:23,920
too detailed, far, far too fine 
a resolution. 

469
00:25:24,560 --> 00:25:30,120
So what I then do is get started
with what I call test ideas. 

470
00:25:30,560 --> 00:25:35,360
So I take 1 task that I 
identified, write the Arduino 

471
00:25:35,360 --> 00:25:37,640
portion of of this communication
library. 

472
00:25:38,160 --> 00:25:40,280
Let's say that was the task. 
Yep. 

473
00:25:40,680 --> 00:25:44,400
Then I would in collaboration 
with the LLM, I'm not doing this

474
00:25:44,400 --> 00:25:48,000
by hand, say, OK, write me test 
ideas. 

475
00:25:48,200 --> 00:25:51,160
This is my personal approach 
that I found to work very well. 

476
00:25:51,560 --> 00:25:55,800
And it the the way I like to do 
it is it's literally test 

477
00:25:55,800 --> 00:25:59,440
function stubs. 
So it's just a name and nothing 

478
00:25:59,440 --> 00:26:02,800
else. 
Essentially A bulleted list that

479
00:26:02,800 --> 00:26:05,800
is, you know, already in an 
executable format. 

480
00:26:05,800 --> 00:26:08,240
But of course, if you if you 
execute it, nothing happens 

481
00:26:08,240 --> 00:26:12,160
because nothing happens. 
No, actual yeah, fantastic 

482
00:26:12,160 --> 00:26:13,880
isn't. 
It just leave the bodies empty. 

483
00:26:13,960 --> 00:26:17,320
What? 
Yeah, but but the point is the 

484
00:26:17,320 --> 00:26:21,000
point is this is sort of my my 
bulleted list, my brainstorm of 

485
00:26:21,600 --> 00:26:24,000
those be those are behaviors 
that I care about. 

486
00:26:24,720 --> 00:26:26,880
You know, how do I set up the 
connection? 

487
00:26:27,120 --> 00:26:30,200
What's the error handling like? 
What do I do for timeouts? 

488
00:26:31,320 --> 00:26:35,160
Whatever, right. 
And I you as. 

489
00:26:35,320 --> 00:26:37,680
An engineer who have done this 
before, understand that there 

490
00:26:37,680 --> 00:26:40,440
are certain failure cases and 
failure conditions that should 

491
00:26:40,440 --> 00:26:43,200
be accounted for in your test 
because you have personally gone

492
00:26:43,200 --> 00:26:45,360
through the process of doing 
this by hand before. 

493
00:26:45,640 --> 00:26:48,040
And understand that these are 
probably where your shoes are 

494
00:26:48,040 --> 00:26:49,880
going to get tied together and 
you're going to fall into, I 

495
00:26:49,880 --> 00:26:52,200
don't know, a pit. 
So exactly. 

496
00:26:52,440 --> 00:26:54,520
So you're going through and 
asking and you're having a 

497
00:26:54,520 --> 00:26:57,400
discussion with the LM to like, 
look, let's make sure that we 

498
00:26:57,400 --> 00:26:59,240
don't write code that falls us 
into a pit. 

499
00:27:00,120 --> 00:27:03,040
Exactly. 
And, and it tends to be that I, 

500
00:27:03,040 --> 00:27:05,960
I let the, the LLM sort of write
the first draft. 

501
00:27:06,480 --> 00:27:10,240
That's always easier to to start
with just a blank page and it's 

502
00:27:10,400 --> 00:27:12,240
really hard to get the juices 
going. 

503
00:27:12,440 --> 00:27:15,640
Have we talked about how how 
intimidating a blank page is? 

504
00:27:15,640 --> 00:27:17,040
Because that is, it's just 
terrifying. 

505
00:27:17,040 --> 00:27:18,680
I yeah, I saw there's a Google 
commercial. 

506
00:27:18,680 --> 00:27:19,840
There's just a flashing light. 
I'm like. 

507
00:27:22,000 --> 00:27:24,560
Yeah, but, but, but then once 
you see a couple of points, you 

508
00:27:24,560 --> 00:27:27,320
say this is what it is. 
This is what it misunderstoods. 

509
00:27:27,640 --> 00:27:30,360
This is where it's wrong. 
And it's really easy at this 

510
00:27:30,360 --> 00:27:32,320
point to sort of jump in and 
say, well, this is, you know, 

511
00:27:32,480 --> 00:27:33,880
this must be different, This 
must be different. 

512
00:27:33,880 --> 00:27:36,760
We need to talk about this one. 
No, this one, you know, we don't

513
00:27:36,760 --> 00:27:38,120
care about. 
Let's delete the test. 

514
00:27:38,120 --> 00:27:40,760
It's, it's none of our business 
and so on. 

515
00:27:41,320 --> 00:27:43,680
Fine. 
So I, I, I, I get this huge 

516
00:27:43,680 --> 00:27:47,040
block of many different bullet 
points. 

517
00:27:47,480 --> 00:27:50,520
And this is really useful 
because it's brief enough that 

518
00:27:50,520 --> 00:27:53,440
it allows me to sort of keep the
entire thing in my head. 

519
00:27:53,960 --> 00:27:56,000
I'm not drilling down all the 
way to code yet. 

520
00:27:56,200 --> 00:27:59,160
Yeah, by that point it would be 
too detailed. 

521
00:27:59,280 --> 00:28:02,280
I'm still staying on this fairly
high level, but I'm thinking in 

522
00:28:02,280 --> 00:28:05,320
terms of concrete functionality 
and error cases and so on. 

523
00:28:05,800 --> 00:28:08,840
So once I'm happy with that, I 
progress. 

524
00:28:09,200 --> 00:28:10,600
Again, this is my personal 
approach. 

525
00:28:11,240 --> 00:28:13,240
I progress to what I call test 
outlines. 

526
00:28:13,760 --> 00:28:20,200
So I will ask the LLM to flesh 
out those test ideas, those 

527
00:28:20,200 --> 00:28:24,040
bullet points with comments 
saying this is what we are 

528
00:28:24,040 --> 00:28:27,160
testing, this is what you are 
not testing, you don't. 

529
00:28:27,400 --> 00:28:30,720
Those are things that we are 
explicitly excluding and those 

530
00:28:30,720 --> 00:28:35,520
are on a high level the steps 
that we that we envisioned as. 

531
00:28:35,520 --> 00:28:40,480
So like we start out at the 
login mask, we put in an 

532
00:28:40,600 --> 00:28:44,560
incorrect user and password 
combination, we expect an error 

533
00:28:44,560 --> 00:28:46,600
message that that's sort of the 
level that we're thinking at, 

534
00:28:46,640 --> 00:28:51,960
right? 
Yes, those are oh gosh. 

535
00:28:52,040 --> 00:28:53,720
OK, keep going. 
I'll think of the word. 

536
00:28:54,760 --> 00:28:57,960
There's a, there's a properties,
properties driven testing 

537
00:28:58,320 --> 00:29:00,920
instead of, instead of, you're 
talking about like defining the 

538
00:29:00,920 --> 00:29:04,600
properties of the test as 
opposed to defining the specific

539
00:29:04,600 --> 00:29:08,080
lines of code and the specific 
like, you know, arrows and dots 

540
00:29:08,080 --> 00:29:09,200
and everything. 
You're specific in the 

541
00:29:09,200 --> 00:29:11,240
properties of the test. 
We talked about this in fuzz 

542
00:29:11,240 --> 00:29:14,960
testing too, where you you 
describe a property that the 

543
00:29:14,960 --> 00:29:18,640
system should have and then the 
test kind of explores that 

544
00:29:18,640 --> 00:29:21,520
property. 
Yeah, or expressive is expresses

545
00:29:21,520 --> 00:29:23,200
it in in code. 
Yeah, yeah, exactly. 

546
00:29:23,200 --> 00:29:25,640
So, so I'm defining those 
property or rather I'm having 

547
00:29:25,640 --> 00:29:28,800
the LLM define those properties.
And then again I very fair 

548
00:29:28,800 --> 00:29:32,320
carefully review what it came up
with and I said, oh, you know, 

549
00:29:32,360 --> 00:29:34,560
you got this wrong, you forget 
that whatever. 

550
00:29:35,320 --> 00:29:40,080
And once I'm happy with that, 
only then do I say now, right, 

551
00:29:40,080 --> 00:29:45,000
actual test implementation, you 
know, right, test code that 

552
00:29:45,000 --> 00:29:47,400
expresses those properties that 
we just discovered. 

553
00:29:47,960 --> 00:29:51,600
And then once again, I, I, I 
have the LLM write this, but 

554
00:29:51,600 --> 00:29:54,760
then I go over it very carefully
because very often the LLM, 

555
00:29:55,320 --> 00:29:58,440
especially in terms of 
assertions, will be not at the 

556
00:29:58,440 --> 00:30:01,040
level that I want. 
For example, what it, what it 

557
00:30:01,040 --> 00:30:04,280
likes to do is, you know, if, if
I have a faction, the faction 

558
00:30:04,280 --> 00:30:08,760
returns a list, it very, very 
often only test that the list is

559
00:30:08,760 --> 00:30:12,200
not null or good. 
It's something like that. 

560
00:30:12,240 --> 00:30:16,760
And yeah, and, and, and I would 
say no, no, no, I, I want to be 

561
00:30:16,760 --> 00:30:19,720
more specific, like check that 
the content that we're expecting

562
00:30:19,720 --> 00:30:22,840
is actually in there. 
Anyway, Long story short, again,

563
00:30:22,840 --> 00:30:26,080
I'm, I'm being very, very 
meticulous then very specific 

564
00:30:26,080 --> 00:30:28,120
there. 
And once I'm at this point and 

565
00:30:28,360 --> 00:30:31,320
I'm happy with the testable 
implementation, I say fine, now 

566
00:30:31,320 --> 00:30:33,640
implement the production code. 
I don't actually care how you do

567
00:30:33,640 --> 00:30:35,160
it. 
I know it's going to be correct 

568
00:30:35,160 --> 00:30:37,200
because I was very, very 
deliberate and very, very 

569
00:30:37,200 --> 00:30:39,720
careful while I was creating 
those tests. 

570
00:30:40,400 --> 00:30:43,280
That is my approach. 
Even while writing the tests, I 

571
00:30:43,280 --> 00:30:47,840
I'm very systematic and I go 
sort of level by level from 

572
00:30:47,880 --> 00:30:52,240
intent to concept to concrete 
implementation. 

573
00:30:53,040 --> 00:30:55,920
And this is how I stay in 
control and this is how it can 

574
00:30:55,920 --> 00:30:59,840
be very fast. 
Now, are these tests that you're

575
00:30:59,840 --> 00:31:02,840
writing, would you consider them
unit tests or are you 

576
00:31:02,840 --> 00:31:06,040
considering them like I used to 
call them thread tests, system 

577
00:31:06,040 --> 00:31:08,520
level tests where they're a lot 
higher. 

578
00:31:08,520 --> 00:31:12,880
So because like unit tests are 
very much tied to the the 

579
00:31:12,880 --> 00:31:16,720
implementation. 
And let's see the the execution 

580
00:31:16,720 --> 00:31:18,640
of like, OK, well, I have this 
structure. 

581
00:31:18,640 --> 00:31:20,360
And so because I have the 
structure, it's going to have 

582
00:31:20,360 --> 00:31:21,920
these classes. 
They're just going to have these

583
00:31:21,920 --> 00:31:24,600
functions in the structure. 
And then when I hook it to in 

584
00:31:24,600 --> 00:31:26,640
this other class, it's going to 
have these other structures. 

585
00:31:27,080 --> 00:31:30,600
So, you know, I think one of the
things that I've been trying to 

586
00:31:30,600 --> 00:31:33,440
get away from is the actual, 
like they would call it the 

587
00:31:33,440 --> 00:31:36,040
software design like you would 
call it like, OK, in this class,

588
00:31:36,200 --> 00:31:37,920
it's got a member variable 
that's this. 

589
00:31:37,920 --> 00:31:41,120
And then, oh, this one is an, is
a instead of a has a. 

590
00:31:41,120 --> 00:31:44,360
So it's in inheriting like all 
of these things that I never 

591
00:31:44,360 --> 00:31:47,040
want to deal with again. 
So like, I would imagine that if

592
00:31:47,040 --> 00:31:51,200
I'm writing unit tests, which I 
mean, a lot of the value that 

593
00:31:51,200 --> 00:31:54,800
I've gotten out of Test Driven 
Development is by having good 

594
00:31:54,800 --> 00:31:57,960
unit tests because it shows that
that unit is now solid. 

595
00:31:58,200 --> 00:32:01,440
But I really don't want to get 
it down to that level of like 

596
00:32:01,680 --> 00:32:04,840
telling the LLM that it has to 
have this kind of class 

597
00:32:04,840 --> 00:32:07,320
structure and it has to have 
these kinds of relationships 

598
00:32:07,320 --> 00:32:10,920
between these objects anymore. 
Like that to me is something 

599
00:32:10,920 --> 00:32:14,720
that we're trying to, I'm trying
to get away from having that 

600
00:32:14,720 --> 00:32:17,800
level of control over it because
I cannot tell you how many 

601
00:32:17,800 --> 00:32:20,040
arguments I've had with 
engineers over the course of my 

602
00:32:20,040 --> 00:32:24,280
career over is a versus has a 
like I cannot. 

603
00:32:24,760 --> 00:32:27,240
And then and then public 
functions versus private 

604
00:32:27,240 --> 00:32:29,360
functions. 
And like is, you know, should 

605
00:32:29,360 --> 00:32:32,640
this be more object oriented or 
less object oriented or like 

606
00:32:32,800 --> 00:32:35,040
where is object oriented the 
wrong solution for every 

607
00:32:35,040 --> 00:32:38,080
problem? 
I'm just like, I'm so sick of 

608
00:32:38,080 --> 00:32:41,360
these problems because they all 
come down to, you know, 

609
00:32:41,360 --> 00:32:44,240
maintainability. 
And if the LLM is doing all the 

610
00:32:44,240 --> 00:32:47,560
maintain maintenance for me, 
like why do I care what the 

611
00:32:47,560 --> 00:32:50,040
actual structure of the class 
hierarchy is? 

612
00:32:50,040 --> 00:32:53,200
Like, you know, you know, 
respond to that. 

613
00:32:53,200 --> 00:32:55,920
That is like, I'm sick of this. 
Like do I have to do this still 

614
00:32:55,920 --> 00:33:01,080
or can I like leave that alone? 
That's a good question. 

615
00:33:01,080 --> 00:33:05,880
So I think the important thing 
is having your test ideas, sort 

616
00:33:05,880 --> 00:33:09,920
of collecting the body of things
that you care about, collecting 

617
00:33:09,920 --> 00:33:12,480
the test outlines. 
So the properties and 

618
00:33:12,480 --> 00:33:15,680
describing, well, this is 
exactly how you prove that it 

619
00:33:15,680 --> 00:33:18,800
behaves the way you want. 
This is most specifically the, 

620
00:33:18,800 --> 00:33:20,960
the behaviour that you want. 
And then in terms of the actual 

621
00:33:20,960 --> 00:33:22,560
implementation, yes, you're 
right. 

622
00:33:22,560 --> 00:33:26,400
At this point I need to like 
write class names or whatever. 

623
00:33:26,960 --> 00:33:31,400
And like I, I will, I will pay 
casual attention to whether it's

624
00:33:31,400 --> 00:33:34,760
going in a direction that I'm 
happy with, but I will not 

625
00:33:34,760 --> 00:33:38,720
generally actually care about it
because just like you say, it's,

626
00:33:38,800 --> 00:33:41,960
it's fine. 
I, I will, I, which is why I 

627
00:33:41,960 --> 00:33:44,640
said, you know, I, I will very 
often just care about the 

628
00:33:44,640 --> 00:33:47,320
assertions because this is, you 
know, where it checks whether 

629
00:33:47,320 --> 00:33:50,560
the behavior actually 
corresponds to what I want. 

630
00:33:50,840 --> 00:33:54,840
This is what I'm staring at. 
The other things I, I kind of 

631
00:33:54,840 --> 00:33:56,720
take in out of the corner of my 
eye. 

632
00:33:56,720 --> 00:34:00,920
And if it looks fine, that it's 
probably going to be fine and to

633
00:34:00,920 --> 00:34:04,600
some degree has probably also 
been dealt with already in the 

634
00:34:05,120 --> 00:34:11,239
planned part of the STD process.
So to answer your question, no, 

635
00:34:11,239 --> 00:34:17,360
I will not fight the LLM on as a
versus, no as a versus hazard. 

636
00:34:21,320 --> 00:34:24,719
Oh my gosh. 
Because generally this is just, 

637
00:34:24,719 --> 00:34:27,480
like you say, not something that
I actually care about, right? 

638
00:34:27,840 --> 00:34:30,199
You know, unless I have a very, 
very good and very specific 

639
00:34:30,199 --> 00:34:33,639
reason for that and you know, 
and, and then it will sort of 

640
00:34:33,639 --> 00:34:35,120
present itself. 
And. 

641
00:34:35,520 --> 00:34:38,880
Then you know. 
And I think that that argument 

642
00:34:39,400 --> 00:34:43,080
that I've had so many times in 
so many different situations is 

643
00:34:43,080 --> 00:34:47,840
because that we are worried 
about long term maintenance of a

644
00:34:47,840 --> 00:34:50,360
project. 
And like, you know, oh, if we do

645
00:34:50,360 --> 00:34:53,360
it this way, then the refactor 
later will be so much more 

646
00:34:53,360 --> 00:34:56,280
difficult to do this because we,
we prevented this code from 

647
00:34:56,280 --> 00:34:59,080
being. 
And it's like, if I can, if I 

648
00:34:59,080 --> 00:35:01,760
can give it to get it to a point
where I'm just like, I'm just 

649
00:35:01,760 --> 00:35:03,560
telling you system level 
requirements, you figure out the

650
00:35:03,560 --> 00:35:05,640
details underneath the hood. 
And if I change the system level

651
00:35:05,640 --> 00:35:07,360
requirements, then you figure 
out the details underneath the 

652
00:35:07,360 --> 00:35:08,240
hood. 
And I don't have to deal with 

653
00:35:08,240 --> 00:35:11,000
this. 
Like that's really as and like, 

654
00:35:11,360 --> 00:35:15,360
but at the same time, I have 
caught so many more bugs with 

655
00:35:15,360 --> 00:35:18,080
unit tests than I have with 
system level tests. 

656
00:35:18,520 --> 00:35:21,040
And so I'm also running into 
this thing that's like, OK, 

657
00:35:21,040 --> 00:35:23,880
well, if we're going to do this,
like those unit tests are 

658
00:35:23,880 --> 00:35:27,120
sometimes are your first level 
of defense against inappropriate

659
00:35:27,120 --> 00:35:29,920
behavior that you can't 
necessarily easily test at a 

660
00:35:29,920 --> 00:35:32,120
system level. 
But then now you come down to 

661
00:35:32,120 --> 00:35:34,920
like, if you can't test at a 
system level, then it doesn't 

662
00:35:34,920 --> 00:35:38,040
matter or your system is not 
designed properly to be tested. 

663
00:35:38,040 --> 00:35:42,320
Like that's there's, there's 
just, that's why I just want to 

664
00:35:42,320 --> 00:35:46,000
have a a A2 line question that I
asked the oh, I mean, it dumps 

665
00:35:46,000 --> 00:35:48,240
out 10,000 lines of code and I'm
done like. 

666
00:35:49,520 --> 00:35:53,000
Yeah, if, if you, if you don't, 
if you don't care about the 

667
00:35:53,000 --> 00:35:55,920
about the specifics of the 
result, right. 

668
00:35:56,840 --> 00:35:58,520
And I'm not even saying that in 
a negative way. 

669
00:35:58,560 --> 00:36:00,120
Very often that's actually the 
case. 

670
00:36:00,120 --> 00:36:02,160
Like I, I, I literally don't 
care about it. 

671
00:36:02,160 --> 00:36:04,240
Just give me something that kind
of behaves like this and it's 

672
00:36:04,240 --> 00:36:06,600
fine. 
Yeah, then fantastic. 

673
00:36:06,600 --> 00:36:11,800
But in in real products that you
expect to have a longer life or 

674
00:36:11,800 --> 00:36:14,560
we have certain guarantees 
because maybe you have actual 

675
00:36:14,560 --> 00:36:17,680
customers who pay, you know, 
like actual money and they want 

676
00:36:17,960 --> 00:36:22,280
some service for that. 
I thought we're just writing 

677
00:36:22,280 --> 00:36:24,600
code for fun, man. 
Man, we got to sell this now 

678
00:36:24,600 --> 00:36:26,560
too. 
Yeah. 

679
00:36:27,320 --> 00:36:31,360
Then then, then you then it 
would behoove you to, you know, 

680
00:36:31,800 --> 00:36:35,960
be more deliberate and more 
careful about what exactly and 

681
00:36:35,960 --> 00:36:39,480
how exactly you're building. 
Yeah, yeah. 

682
00:36:40,200 --> 00:36:43,200
By the way, Speaking of high 
level tests, you're right that 

683
00:36:43,200 --> 00:36:48,240
sort of this, this TDD approach 
is on the unit level by Notch. 

684
00:36:49,040 --> 00:36:52,920
Yeah, this is generally where 
where you would place it, where 

685
00:36:52,920 --> 00:36:56,920
it is very, very valuable. 
You can have something very 

686
00:36:56,960 --> 00:36:59,640
similar which is BDD Behavior 
Driven Development. 

687
00:36:59,640 --> 00:37:02,120
Behavior driven development. 
Oh, now we're talking. 

688
00:37:02,760 --> 00:37:06,560
Yeah, which sits, which sits at 
the at the system level. 

689
00:37:06,760 --> 00:37:10,520
So essentially I think it would 
be expressed already in the 

690
00:37:10,520 --> 00:37:13,760
specification. 
So on the highest level of of 

691
00:37:14,000 --> 00:37:20,720
your STD stack, if you will, in 
terms of specification by 

692
00:37:20,720 --> 00:37:24,960
example, you know, you, you give
it a couple of concrete cases by

693
00:37:24,960 --> 00:37:28,560
way by which you can say, well, 
if it behaves like this, you 

694
00:37:28,560 --> 00:37:32,360
know, if I put in this signal 
and it returns this reaction, 

695
00:37:32,880 --> 00:37:36,520
then the system expresses the 
behaviours that are important 

696
00:37:36,520 --> 00:37:39,800
and relevant to me. 
ID you can do that and, and you 

697
00:37:39,800 --> 00:37:43,320
should do that and you should 
also do it in an automated way. 

698
00:37:43,320 --> 00:37:45,760
I mean, this is the point of BDD
and, and all of its different 

699
00:37:45,760 --> 00:37:48,320
implementations. 
Maybe you've heard of of the 

700
00:37:48,320 --> 00:37:53,320
Gherkin language which exactly 
which which is sort of a 

701
00:37:53,320 --> 00:37:58,360
canonical way of describing BDD 
level or BDD style tests. 

702
00:37:58,880 --> 00:38:03,840
And also this is automatable and
you should automate it, but it 

703
00:38:03,840 --> 00:38:06,680
doesn't replace unit tests and 
vice versa. 

704
00:38:07,480 --> 00:38:13,800
They are just different building
blocks of that overall 

705
00:38:13,800 --> 00:38:17,680
verification of validation 
strategy that you will have to 

706
00:38:17,680 --> 00:38:19,680
have in any non trivial software
project. 

707
00:38:21,400 --> 00:38:24,720
OK, well, and I, I think, and 
this is, this is really 

708
00:38:24,720 --> 00:38:27,560
interesting. 
So I think that the, the level 

709
00:38:27,560 --> 00:38:30,800
of the level of test driven 
development that you're talking 

710
00:38:30,800 --> 00:38:33,520
about is much more in line with 
like a behavior driven 

711
00:38:33,520 --> 00:38:36,640
development and a kind of system
level testing as opposed to 

712
00:38:36,640 --> 00:38:40,400
getting down and like really 
specifying classes and functions

713
00:38:40,400 --> 00:38:42,600
and things like that. 
So like I, I find that 

714
00:38:43,040 --> 00:38:45,800
fascinating. 
So, so where you're starting 

715
00:38:45,800 --> 00:38:49,320
from is like you are developing 
that specification document, but

716
00:38:49,320 --> 00:38:53,160
then you're also going through 
and going to that next layer and

717
00:38:53,160 --> 00:38:55,960
like, hey, spec document grates,
hold off, don't do anything yet.

718
00:38:56,400 --> 00:38:59,360
Let me go through and actually 
be very intentional about 

719
00:38:59,360 --> 00:39:03,600
creating a behavior document or,
but it's in code. 

720
00:39:03,920 --> 00:39:06,680
But you're, you're talking about
the system level requirements, 

721
00:39:06,680 --> 00:39:10,000
but expressing those system 
level requirements specifically 

722
00:39:10,000 --> 00:39:14,600
as a test in the language of, of
your choice, of your, of your 

723
00:39:14,600 --> 00:39:16,800
choosing. 
And you won't even necessarily 

724
00:39:16,960 --> 00:39:21,400
write all of the tests yourself,
but you will be, you know, going

725
00:39:21,400 --> 00:39:23,720
over them with a fine toothed 
comb to make sure that the tests

726
00:39:23,720 --> 00:39:27,600
are actually doing testing 
something that you care about 

727
00:39:27,600 --> 00:39:30,520
testing. 
So you're still, you're not 

728
00:39:30,520 --> 00:39:34,640
actually writing code still, but
you are as an engineer and using

729
00:39:34,640 --> 00:39:39,240
your, your big engineer brain, 
going through and verifying and 

730
00:39:39,240 --> 00:39:41,800
validating that the tests are 
actually doing something 

731
00:39:41,800 --> 00:39:43,520
valuable. 
And that, that the product that 

732
00:39:43,520 --> 00:39:47,640
you're going to get at the end 
is going to, is going to 

733
00:39:47,640 --> 00:39:49,520
actually do the thing that you 
think it's going to do. 

734
00:39:50,160 --> 00:39:54,560
Because I, I find this, this, 
the whole process is very 

735
00:39:54,760 --> 00:40:01,080
fascinating to me. 
And so the the if I go through 

736
00:40:01,080 --> 00:40:03,760
this process. 
Without doing this Behavior 

737
00:40:03,760 --> 00:40:05,720
driven development, without 
doing Test driven development 

738
00:40:06,240 --> 00:40:09,760
and I actually get something 
that works according to the way 

739
00:40:09,760 --> 00:40:13,360
that I expected it to work, 
should I have gone through the 

740
00:40:13,360 --> 00:40:21,120
behavior development instead? 
Yes, because, well, let me put 

741
00:40:21,120 --> 00:40:25,200
it this way, if you do care 
about, if you do care about it 

742
00:40:25,560 --> 00:40:30,240
being correct in the long term, 
if this is just one shot thing, 

743
00:40:30,920 --> 00:40:32,040
knock yourself out. 
It's fine. 

744
00:40:32,600 --> 00:40:34,800
I, I don't, I don't care. 
I wouldn't worry about tests 

745
00:40:34,800 --> 00:40:36,680
either. 
But if this is something that is

746
00:40:36,680 --> 00:40:42,760
here to stay, then you, there 
are so many hidden things that 

747
00:40:42,760 --> 00:40:49,080
you have not seen on that, you 
know, to what degree could you, 

748
00:40:49,200 --> 00:40:52,680
could you really credibly say, 
yes, I know the system is 

749
00:40:52,680 --> 00:40:54,840
correct. 
You don't like you've never seen

750
00:40:54,840 --> 00:40:56,920
it. 
You've just given the Internet 

751
00:40:56,920 --> 00:41:00,040
task and they ran away and came 
back three days later. 

752
00:41:00,520 --> 00:41:02,840
I'm very proud with a bunch of 
curly brackets. 

753
00:41:05,360 --> 00:41:07,960
I would prefer the the the 
intern cares about the curly 

754
00:41:07,960 --> 00:41:09,560
brackets. 
You're completely correct. 

755
00:41:11,040 --> 00:41:15,880
Yeah. 
And so that, that, that that is 

756
00:41:15,880 --> 00:41:20,360
the thing if, if you care about 
this in the long term, and if 

757
00:41:20,360 --> 00:41:23,120
you, you know, if you really 
worry about the quality that you

758
00:41:23,440 --> 00:41:26,280
that you are taking 
responsibility for, Let's be 

759
00:41:26,280 --> 00:41:30,080
very clear about this. 
You are responsible for this 

760
00:41:30,080 --> 00:41:32,160
code. 
No matter whether you've typed 

761
00:41:32,160 --> 00:41:35,000
this curly brackets or the LLLD,
you are responsible for it. 

762
00:41:35,040 --> 00:41:37,720
And if you, you know, if you are
feeling the weight of this 

763
00:41:37,720 --> 00:41:41,760
responsibility, then you should 
have gone through this process 

764
00:41:42,600 --> 00:41:45,960
because otherwise you literally 
have no idea what the system 

765
00:41:45,960 --> 00:41:48,080
actually does. 
You've just seen a slight, a 

766
00:41:48,120 --> 00:41:50,320
tiny sliver of its overall 
behaviour. 

767
00:41:50,680 --> 00:41:52,800
And yeah, you know, it looks 
kind of fine. 

768
00:41:54,520 --> 00:41:57,160
You know what's interesting, You
know what's interesting? 

769
00:41:57,200 --> 00:42:00,880
I, I, I have quite a few 
training products in this, in 

770
00:42:00,880 --> 00:42:04,760
this general area. 
So, and it, it's really 

771
00:42:04,760 --> 00:42:07,920
interesting. 
I, I have such a sort of a one 

772
00:42:07,920 --> 00:42:12,000
day overview course over AI 
driven development and I have 

773
00:42:12,000 --> 00:42:14,640
very tiny modules that by 
necessity there's just so much 

774
00:42:14,640 --> 00:42:18,560
time on, on SDD and TDD. 
Many participants that later 

775
00:42:18,560 --> 00:42:22,160
come back and buy the actual SDD
and TDD courses because they 

776
00:42:22,160 --> 00:42:24,040
say, oh man, there's so much to 
learn. 

777
00:42:24,200 --> 00:42:25,800
We really need to do this 
properly. 

778
00:42:26,000 --> 00:42:28,000
There is no, no way of of doing 
a chart. 

779
00:42:28,920 --> 00:42:33,240
Anyway, what I was going to get 
at is I created this course with

780
00:42:33,240 --> 00:42:38,280
exercises in Kotlin. 
I have no clue about Kotlin. 

781
00:42:39,360 --> 00:42:42,560
It's like it's it's based on 
Java. 

782
00:42:42,920 --> 00:42:47,040
That's. 
Pretty much all I know that that

783
00:42:47,040 --> 00:42:49,120
was kind of the point I I 
wanted. 

784
00:42:49,760 --> 00:42:53,560
I wanted examples in a language 
that that run on any machine and

785
00:42:53,560 --> 00:42:56,240
that weren't Python. 
Right, and then were Python. 

786
00:42:57,120 --> 00:42:59,320
Exactly. 
Well, I mean, so you should have

787
00:42:59,360 --> 00:43:01,000
chosen Pearl. 
I'm using obviously you should 

788
00:43:01,000 --> 00:43:02,320
have done Pearl. 
I'm just. 

789
00:43:02,320 --> 00:43:07,960
Yeah, no, but but the point is 
so and and my my example code is

790
00:43:08,160 --> 00:43:11,440
a Civilization clone called 
Unsafe which apparently is 

791
00:43:11,440 --> 00:43:15,320
written it in Kotlin. 
The point is, I am very 

792
00:43:15,320 --> 00:43:20,280
successfully writing of creating
functionality for ansib using 

793
00:43:20,280 --> 00:43:25,560
this process despite having no 
clue about Kotlin. 

794
00:43:25,560 --> 00:43:28,880
I believe it's a functional 
language, but I honestly don't 

795
00:43:28,880 --> 00:43:33,760
know and I don't have to care. 
So The thing is I can go through

796
00:43:33,760 --> 00:43:37,880
this process, this SDD process 
and TDD process and I can 

797
00:43:38,360 --> 00:43:42,280
because by dodge tests are 
fairly simple in terms of how 

798
00:43:42,280 --> 00:43:45,160
they are coded. 
I can look at this Cotland code 

799
00:43:45,160 --> 00:43:47,920
that you know that that 
expresses the tests and I can 

800
00:43:47,920 --> 00:43:53,200
understand it and I can bring 
all of my engineering instincts 

801
00:43:53,200 --> 00:43:55,560
to bear. 
But I don't actually have to 

802
00:43:55,560 --> 00:44:01,640
understand either the actual 
product unsive very deeply, nor 

803
00:44:01,640 --> 00:44:07,000
cotland the language, and I can 
still with a fairly high degree 

804
00:44:07,000 --> 00:44:11,560
of certainty build new 
functionality for this. 

805
00:44:12,560 --> 00:44:15,680
For for those of for those of us
that are wanting to learn more 

806
00:44:15,680 --> 00:44:20,880
about Kotlin, it is KOTLIN and 
it is a programming language 

807
00:44:20,880 --> 00:44:25,200
developed by Jetbrains that is 
fully interoperable with Java 

808
00:44:25,560 --> 00:44:27,960
and is widely used for Android 
applications. 

809
00:44:28,720 --> 00:44:38,560
Barf. 
So I mean, yes, so while, and 

810
00:44:38,560 --> 00:44:42,240
and that's I think that is that 
is a fairpoint to make that 

811
00:44:42,280 --> 00:44:46,320
like. 
So when we talk about babies in 

812
00:44:46,320 --> 00:44:51,240
bath waters, you know, you're 
still using the AI do all to to 

813
00:44:51,240 --> 00:44:54,840
do all the the work in the 
situation, but you are inserting

814
00:44:54,840 --> 00:44:59,240
yourself at a critical point to 
make sure that you as an 

815
00:44:59,240 --> 00:45:00,840
engineer. 
So you're still doing the 

816
00:45:00,840 --> 00:45:02,880
engineering effort, like, and 
one of the things that we've 

817
00:45:02,880 --> 00:45:08,480
talked about a lot is that you, 
you still have to engineer the 

818
00:45:08,480 --> 00:45:10,560
solution here. 
So engineering a solution is one

819
00:45:10,560 --> 00:45:11,720
thing. 
And part of the engineering 

820
00:45:11,720 --> 00:45:15,400
solution is, is effectively 
communicating the, the 

821
00:45:15,400 --> 00:45:19,440
requirements of the system level
requirements to whatever is 

822
00:45:19,440 --> 00:45:21,560
doing the work. 
But then you were also not only 

823
00:45:21,560 --> 00:45:24,000
communicating the system level 
requirements, you're stepping 

824
00:45:24,000 --> 00:45:26,000
in, in the middle there and 
like, OK, cool, I've 

825
00:45:26,000 --> 00:45:27,720
communicated the system level 
requirements to you. 

826
00:45:27,720 --> 00:45:32,360
I'm going to communicate them to
you again in a more specific and

827
00:45:32,360 --> 00:45:38,320
a more deterministic format, 
which is actual tests that test 

828
00:45:38,360 --> 00:45:41,640
actual functionality. 
And so you've, you've done this 

829
00:45:41,640 --> 00:45:46,560
kind of like loosey goosey 
English language markdown file, 

830
00:45:46,600 --> 00:45:49,440
but then you're also going 
through and providing the actual

831
00:45:49,440 --> 00:45:52,160
tests in the language of your 
choice. 

832
00:45:52,560 --> 00:45:56,120
Kotlin in the situation, Pearl 
in other situations. 

833
00:45:56,320 --> 00:45:58,840
I miss Pearl. 
I'm so sad that Pearl lost the 

834
00:45:59,040 --> 00:46:02,560
the whatever Python has become 
like. 

835
00:46:02,560 --> 00:46:04,280
I'm so sad that Pearl lost that 
war. 

836
00:46:04,480 --> 00:46:09,320
I miss my my really obtuse and 
obscure dollar on I. 

837
00:46:09,320 --> 00:46:12,480
Was going to say, how can you 
distinguish Pearl from light 

838
00:46:12,480 --> 00:46:16,360
noise? 
Just dollar under score for 

839
00:46:16,360 --> 00:46:17,960
everything. 
It's it's so good. 

840
00:46:17,960 --> 00:46:20,240
Like, oh, I miss it so much 
anyways. 

841
00:46:21,360 --> 00:46:25,680
So, so being able to being able 
to step in and and as an 

842
00:46:25,680 --> 00:46:28,600
engineer that understands 
development and programming 

843
00:46:28,600 --> 00:46:33,400
specifically and being able to 
go and specify those is, is AI 

844
00:46:33,400 --> 00:46:35,000
think. 
And you're pointing out it's a 

845
00:46:35,000 --> 00:46:38,800
very important step in the 
engineering process where you 

846
00:46:38,800 --> 00:46:41,360
should not if and like, as you 
mentioned, it's a weekend 

847
00:46:41,360 --> 00:46:42,640
project. 
I'm going to go throw this up, 

848
00:46:42,640 --> 00:46:45,400
whatever. 
And I think one of the problems 

849
00:46:45,400 --> 00:46:50,080
that I have with all of the, the
agentic AI coding people that I 

850
00:46:50,080 --> 00:46:53,600
watch, they're all creating 
databases, they're creating web 

851
00:46:53,600 --> 00:46:57,240
apps, they're creating CSS and 
JavaScript and HTML. 

852
00:46:57,240 --> 00:46:59,800
And that's fine. 
But none of them are actually 

853
00:46:59,800 --> 00:47:02,920
creating system critical 
software that needs to be 

854
00:47:02,920 --> 00:47:06,440
reliable and that needs to have 
9 nines of uptime or needs to 

855
00:47:06,440 --> 00:47:10,840
have appropriate failure cases. 
And so while I'm really excited 

856
00:47:10,840 --> 00:47:15,560
about our new, you know, AI 
driven future, if you're writing

857
00:47:15,560 --> 00:47:19,600
software that is important that 
the software actually functions 

858
00:47:19,600 --> 00:47:22,240
correctly and you can't just 
reload the website when it goes 

859
00:47:22,240 --> 00:47:25,280
wrong. 
Like you've got to have a more 

860
00:47:25,360 --> 00:47:28,360
thorough process of developing 
this code. 

861
00:47:28,880 --> 00:47:30,280
Yeah. 
And yeah, it's, it's 

862
00:47:30,280 --> 00:47:33,120
interesting. 
If I, if I do this TDD training,

863
00:47:33,960 --> 00:47:37,960
the first thing I do is I, I 
have an exercise where I, we're,

864
00:47:38,240 --> 00:47:42,400
we're being sort of deliberately
a little on the nose about this 

865
00:47:42,400 --> 00:47:47,200
and you know, say, OK, add this 
new functionality to unsive that

866
00:47:47,200 --> 00:47:50,680
does I, I think filtering. 
Yeah, message filtering exactly.

867
00:47:51,560 --> 00:47:55,000
And and just just stick in a 
prompt and see what it does. 

868
00:47:55,680 --> 00:47:58,520
They'll stick in a prompt and 
code will come out and it'll 

869
00:47:58,520 --> 00:48:02,800
compile and it'll run and it 
will generally behave. 

870
00:48:03,360 --> 00:48:06,680
You know, it will generally sort
of exhibit the behavior that it 

871
00:48:06,680 --> 00:48:08,480
will expect. 
And then I will. 

872
00:48:09,240 --> 00:48:11,480
Yeah. 
And then I will start to ask the

873
00:48:11,480 --> 00:48:15,400
participants like, OK, what does
it, What will they do if I do 

874
00:48:15,400 --> 00:48:17,880
this? 
And they'll be like, no idea 

875
00:48:20,400 --> 00:48:23,720
how, how will it react in in 
this particular situation. 

876
00:48:24,400 --> 00:48:27,760
What situation? 
I what are you talking about? 

877
00:48:28,560 --> 00:48:31,640
So Long story short, they they 
have something that works at 

878
00:48:31,640 --> 00:48:33,000
first glance. 
Correct. 

879
00:48:33,320 --> 00:48:39,960
But where they have no clarity 
at all over how specifically it 

880
00:48:39,960 --> 00:48:44,840
works, what its limits are, 
whether it has correctly dealt 

881
00:48:44,840 --> 00:48:48,920
with all, you know, imaginable 
air conditions, or at least the 

882
00:48:48,920 --> 00:48:50,120
ones that we need to worry 
about. 

883
00:48:51,160 --> 00:48:54,880
And, you know, if you know, if 
it's a weekend project, find, 

884
00:48:54,880 --> 00:48:57,320
whatever. 
Just just slap something 

885
00:48:57,320 --> 00:49:00,360
together, you know, as we've 
always done, and it's fine. 

886
00:49:00,360 --> 00:49:02,520
And there's nothing wrong with 
that at all. 

887
00:49:02,960 --> 00:49:06,480
The problem is that we can 
projects turn into airplanes 

888
00:49:06,480 --> 00:49:07,520
like that is the. 
Problem. 

889
00:49:07,520 --> 00:49:08,840
Oh yeah. 
Oh yeah, yeah. 

890
00:49:08,840 --> 00:49:13,520
But as as I said before, if you 
are feeling the weight of 

891
00:49:13,520 --> 00:49:18,240
responsibility, yeah, for 
whatever this product is and it 

892
00:49:18,280 --> 00:49:20,280
you know, it can be a web app, 
it's it's fine. 

893
00:49:20,280 --> 00:49:23,760
It can be, can be a database. 
But like if you plan to expose 

894
00:49:23,760 --> 00:49:26,880
it on the open Internet, and if 
you thus can expect that 

895
00:49:26,880 --> 00:49:32,800
somebody will try to to crack it
open, I expect that you will, 

896
00:49:32,840 --> 00:49:35,840
out of out of sheer self 
preservation, be more 

897
00:49:35,840 --> 00:49:38,160
meticulous. 
Yep, Yep. 

898
00:49:38,720 --> 00:49:42,400
Well, and this is where I put my
cybersecurity hat on and it's 

899
00:49:42,400 --> 00:49:46,720
like, Oh my gosh, like we've had
a hard enough time with getting 

900
00:49:46,720 --> 00:49:49,760
humans to write code, thinking 
about all the possible error 

901
00:49:49,760 --> 00:49:51,960
conditions that it's. 
So not only do you need to think

902
00:49:51,960 --> 00:49:54,320
about the error when you're when
I'm writing the code, not only 

903
00:49:54,320 --> 00:49:56,120
do I need to think about all the
possible error conditions, but 

904
00:49:56,120 --> 00:49:58,320
then I also have to remember how
to write all the code for that. 

905
00:49:58,520 --> 00:50:01,640
So it's a lot of like overhead 
to not only write the code, but 

906
00:50:01,640 --> 00:50:03,840
then also think about all the 
ways that this could go wrong 

907
00:50:04,080 --> 00:50:06,800
and try to, you know, handle put
in test cases for all those 

908
00:50:06,800 --> 00:50:08,680
different things. 
And this situation is actually 

909
00:50:08,680 --> 00:50:11,680
easier for you because you don't
have to worry about writing the 

910
00:50:11,680 --> 00:50:16,160
code, but you do need to do now 
have the opportunity to use that

911
00:50:16,160 --> 00:50:19,480
extra brain space that you have 
have to go through and actually 

912
00:50:19,480 --> 00:50:21,760
think about all those different 
situations, those different air 

913
00:50:21,760 --> 00:50:25,640
conditions that could possibly 
happen with the system that, 

914
00:50:25,720 --> 00:50:27,240
yes, you're prototyping it 
today. 

915
00:50:27,400 --> 00:50:28,840
And no one throws away 
prototypes. 

916
00:50:28,840 --> 00:50:31,800
They just become production. 
Like that's how prototypes work,

917
00:50:31,800 --> 00:50:33,600
guys. 
We were supposed to throw this 

918
00:50:33,600 --> 00:50:36,040
away. 
That's never happened. 

919
00:50:36,160 --> 00:50:37,960
That's a lie. 
That's that's a lie. 

920
00:50:37,960 --> 00:50:42,680
Number one, don't believe that 
prototypes always live on like 

921
00:50:43,240 --> 00:50:45,760
so. 
So going through the process of 

922
00:50:45,760 --> 00:50:48,200
being more meticulous about 
that, the best way to go 

923
00:50:48,200 --> 00:50:50,880
forward, we've agreed. 
I thought we were going to fight

924
00:50:50,880 --> 00:50:58,120
more, darn it. 
Yeah, when we took, we took the 

925
00:50:58,240 --> 00:51:00,920
the scenic route to agreement. 
Yes, absolutely. 

926
00:51:00,920 --> 00:51:05,120
That is I think when it comes to
agreement, the best way to go is

927
00:51:05,120 --> 00:51:10,520
to take the scenic route. 
Any closing thoughts? 

928
00:51:11,640 --> 00:51:15,360
If you're letting go of the 
reins while using AI, you're a. 

929
00:51:15,360 --> 00:51:20,520
Fool, I would say keep the 
reins, stay loose, but keep them

930
00:51:20,520 --> 00:51:23,360
in your fingers, you know, you 
know, Let it go, let it go, let 

931
00:51:23,360 --> 00:51:24,640
it go. 
Have some freedom, have some 

932
00:51:24,640 --> 00:51:28,040
fun, you know, But then be ready
to to to hold back. 

933
00:51:28,560 --> 00:51:29,800
Be ready to here's the 
guardrails. 

934
00:51:29,880 --> 00:51:33,080
Be be fast between those 
guardrails and nowhere else. 

935
00:51:33,440 --> 00:51:36,120
Yeah, no sleeping, no sleeping. 
Just keep your fingers on the 

936
00:51:36,120 --> 00:51:37,400
reins. 
Like don't just Chuck them. 

937
00:51:37,400 --> 00:51:38,920
Like, oh, I don't need these 
reins anymore. 

938
00:51:38,920 --> 00:51:40,240
Unclipped. 
Toss the reins out like you're 

939
00:51:40,480 --> 00:51:41,600
the horse is gonna. 
You're gone. 

940
00:51:41,600 --> 00:51:43,080
You're in the ditch, man, I'm 
sorry. 

941
00:51:43,400 --> 00:51:45,680
You're lucky if it's only a like
a free flip ditch, like. 

942
00:51:49,520 --> 00:51:52,080
OK, Well, this has been the 
Embedded AI podcast. 

943
00:51:52,160 --> 00:51:54,560
I'm Ryan Torvik. 
And I'm Luke Joni. 

944
00:51:54,920 --> 00:51:56,880
We'll catch you guys next time. 
See ya.

