推荐微信扫码登录以获得更好的体验!另:🎉建议更新到最新版,以体验新功能!🎉 版本更新记录→

Matt Pocock|全程实录:用 AI 技能库交付一个两

字幕摘录

时间英文中文
0:00you've been asking again and again and again你一直问一遍又一遍
0:02for me to show you what my development process looks like.让我告诉你我的发展进程是什么样子
0:06I've done a tiny little bit of it on this channel,我在这个频道上做了一点
0:08but not nearly enough.但还不够
0:10And since I did it, I've come into possession自从我这么做后,我便拥有了
0:12of one of the most starred repos in the world,是世界上最有名的重星之一,
0:15which is my skills repo这也是我的能力
0:16and certainly the most starred skills repo in the world.并且是世界上最有才华的
0:19And so I do think I owe it to you to show off所以我认为我欠你一个炫耀
0:21how I use these skills in something more than a tutorial,我如何用这些技能 做一些比教书更多的事情,
展开字幕全文(1868 条)
序号英文中文
1you've been asking again and again and again你一直问一遍又一遍
2for me to show you what my development process looks like.让我告诉你我的发展进程是什么样子
3I've done a tiny little bit of it on this channel,我在这个频道上做了一点
4but not nearly enough.但还不够
5And since I did it, I've come into possession自从我这么做后,我便拥有了
6of one of the most starred repos in the world,是世界上最有名的重星之一,
7which is my skills repo这也是我的能力
8and certainly the most starred skills repo in the world.并且是世界上最有才华的
9And so I do think I owe it to you to show off所以我认为我欠你一个炫耀
10how I use these skills in something more than a tutorial,我如何用这些技能 做一些比教书更多的事情,
11in a real walkthrough.在真正的走过。
12And in this walkthrough,在这过程中,
13we're gonna focus especially hard on two skills.我们要特别专心于两个技能
14The first one is gonna be the Grill with Docs skill.第一个是有医生技能的Grill
15And I think grilling is really much more of an art form我觉得烤肉更像是艺术形式
16than most people assume.比大多数人认为。
17In this walkthrough,在这过程中
18I really focus a lot more on the domain modeling aspects我真的更注重域建模方面
19of it.对
20In other words, the kind of classic DDD skills换句话说 典型的DDD技能
21that allow you to basically say,让你基本上说,
22okay, I've figured out the language of my application.好吧,我明白了 我应用的语言。
23And so once I've figured out the language,所以,一旦我明白了 语言,
24then I've actually figured out the app然后,我实际上想出了应用程序
25and figured out what I wanna build.并想出了我想建造的东西。
26In this video, you see me go through that process在这段视频中,你看到我经历了这个过程
27on a real feature that I will use from now on,我以后会用到的
28even to build the thumbnail for this video.甚至为这段视频打造缩略图.
29And the next skill I go deep on is the Retro skill,下一个我深入的技巧是复古的技巧,
30which is we look back on the huge chunk of sessions.这就是我们回顾 大量的会议。
31I think we do like 30 sessions in this video我觉得这段视频里我们确实喜欢30场
32and we suggest a bunch of improvements.我们建议改进一下
33I'm gonna walk through a real huge, I think 25,000 line PR.我要穿过一个巨大的, 我认为25,000线公关。
34I'm gonna do some real human review on it我会做一些真正的人类评论
35and show you how that human review can then go back并告诉你如何 人类审查 然后回去
36and influence and impact the system going forward.影响和影响系统前进。
37Now, if you're interested in this stuff,如果你对这东西感兴趣的话
38then the AI coding crash course that I have然后,AI编码崩溃路线,我有
39is absolutely the place that you need to be绝对是你需要的地方
40if you want a more structured approach.如果你想要一个更有条理的方法。
41But with that, let's get cracking, let's dive in.但这样的话,我们开始跳下去
42So this is where all of my courses get created,所以这就是我所有课程的创造之处
43all of my videos get created.我所有的视频都会被创造出来
44It's a video editor, a thumbnail editor, a AI writer.是视频编辑,缩略图编辑,AI编剧.
45It helps me schedule things, it creates shorts,它帮助我安排事情, 它创造短裤,
46it does all sorts of stuff.它做各种各样的事情。
47And the bit that I'm particularly interested in right now我现在特别感兴趣的那一点
48is this little thumbnail creator down here.这个小拇指创造者在这里。
49This is where I can post the video我可以在这里张贴视频
50that I'm creating and editing right now,我现在正在创作和编辑
51and I can create a new thumbnail我可以创建一个新的缩略图
52and this is essentially a process where I capture my face这基本上是一个过程 我抓住我的脸
53and then my face goes into the thumbnail然后,我的脸进入拇指
54and I can create a diagram with it.我可以用它来制作一个图表。
55For instance, I just stopped recording例如,我刚刚停止了录音
56so that I could take this still.这样我才能安然无恙
57This allows me to move this left and right.这让我可以左右移动
58And then in here, in my diagram creator,然后在这里,在我的图表创造者,
59I can essentially screenshot this part of the window here.我基本上可以截图 这部分窗口在这里。
60And what that will do is I can then copy and paste it那样我就可以复制并粘贴它
61into the thumbnail.进入缩略图。
62So if I press Control V here, you can see it gets pasted in所以,如果我按这里的控制V, 你可以看到它被贴在
63and then the cutout automatically gets cut out然后自动剪断
64by this nice API.由这个漂亮的API。
65I can position these and I have my thumbnail.我可以定位这些,我有我的拇指。
66Now this is pretty nice,现在这是相当不错的,
67but what I would really like to do但我真正想做的是 做点什么
68is remove a bit of friction here.正在消除一些摩擦。
69It's annoying having to swap over to the diagram view换到图景很烦人
70and like have my, you know,就像拥有我的,你知道的,
71it's like an annoyingly manual process,这就像一个烦人的手工过程,
72especially if I get things wrong,特别是如果我搞错了
73I can't quite position them correctly.我无法正确定位他们
74I have to go back, I have to screenshot it again我要回去,我还要再拍一次
75and try it again.再试一次
76Essentially, I don't have enough flexibility here.基本上,我在这里没有足够的灵活性。
77What I really want is to be able to draw on this surface here.我真正想要的就是能够从这里的表面画出来。
78In other words, have the diagram kind of integrated换句话说,把图表整合起来
79with the picture of me there.还有我的照片
80I really don't have a clue on how I'm going to build this.我真的不知道我要怎么建这个
81I just know that it's something I want.我只知道这是我想要的
82And so I thought it would make a good candidate所以我觉得这是个好人选
83for like a new feature or an improvement像是新的特征或改进
84and to sort of show you the whole process end to end.并显示整个过程的结束。
85And so when I enter into a new piece of work,所以当我进入一个新的作品,
86I start thinking through this decision tree,我开始想 通过这个决定树,
87which is essentially what skill from my skills这基本上是我的能力
88am I going to use?我会用吗?
89In other words, you have essentially a new session here.换句话说,你在这里基本上有一个新的会话。
90You want to create a new piece of work.你想创造新的作品。
91You don't know what to choose.你不知道该选什么
92You first think through, okay,先想清楚,好吗?
93what is the thing I'm trying to create?我想创造什么?
94And the thing I'm trying to create is essentially a diff,我试图创造的东西 本质上是一个diff,
95the diff between the old code base and the new code base.diff在旧代码基础和新代码基础之间。
96And if that diff is really small,如果那个Diff真的很小
97then you can probably just one shot the thing.然后你也许可以只拍一个东西。
98So you don't need to worry about grilling所以你不必担心烤肉
99before you continue.在你继续之前
100But in this case, I know that the thing we're creating但在这种情况下,我知道 我们创造的东西
101is pretty big.相当大。
102And so I'm going to go with grill with docs.所以我要和医生一起吃烤肉
103From there, if it ends up being a lot larger than I thought,从那里,如果它最终 比我想的要大很多,
104永远可以逃到Wayfinder,
105which is what I use for turning initial grilling sessions,我用来做初烤
106running them over multiple sessions,在多个会话中运行,
107developing this huge great big concept发展这个巨大的大概念
108of what we're trying to build我们试图构建
109and then going until we get there.直到我们到达那里。
110But I prefer starting with grill with docs但我更喜欢从烤肉和医生开始
111because if it ends up being smaller than I thought,因为如果它最终比我想的要小
112then it means I don't have all the overhead意思是,我没有所有的管理费
113运行 Wayfinder 会话。
114The place I'm going to run this is inside my personal wiki,我要运行的地方 在我的个人维基,
115which is a home repo.这是家的回扣。
116If you don't know what a home repo is,如果你不知道什么是家庭财产
117then check out my accompanying video on that.然后看看我的视频
118The agent I'm going to use is Claude Code,我要使用的特工是克劳德·科德
119because that's the one I have a subscription to.因为这是我订的
120That's what I'm set up for and that's kind of what I like.这就是我的设定, 和我喜欢的。
121I am on the Claude Ultra plan.我是在克劳德·乌特拉计划。
122I have Opus 5.5 and I'm running it on medium effort.我有Opus 5.5,我运行它 在中等努力。
123And of course, I have all of my skills installed当然,我有我所有的技巧
124and I also have a bunch of custom skills我也有一套定制技能
125that are inside my home repo.在我家的里头
126My home repo is not open source,我的家购宝不是开源的
127but most of the skills you're going to see are open source但大部分的技巧你将会看到 开源
128他们正在Aihero. Dev前锋的刀技。
129So we're going to start with grill with docs here所以我们要从烤肉开始 这里的医生
130and then I'm going to explain my problem through dictation然后我要通过口述来解释我的问题
131and I'm using whisper flow for that.我用悄悄的流言
132In the course video manager, we have a thumbnail viewer在课程的视频管理器,我们有一个缩略图查看器
133and the thumbnail creator is okay.缩略图的创造者没事
134I like that it asks me and it sort of forces me我喜欢它问我, 它有点强迫我
135to put my face onto the screen.把我的脸放到屏幕上
136But what I don't like is the sort of rigmarole但我不喜欢的是那种硬币
137I have to go through for attaching a diagram.我不得不通过附图。
138Most of my diagrams are built in TL draw我的图大多是用TL图画的
139and using the custom diagram playground that we have.并使用我们拥有的自定义图游乐场。
140But I don't have, what I would really like但我没有 我真正想要的
141is for the diagram to be able to be editable用于图表可以编辑
142in the scene that I'm viewing.我在看的场景
143So in the context of the thumbnail.因此在缩略图的背景中.
144In other words, I want my face visible换句话说,我要我的脸亮着
145and then to have the thing just editable next to me.然后让我身边的东西可以编辑
146I really don't know UI wise how we're going to handle that我真的不知道UI会怎样处理
147and what that's going to look like.以及那会是什么样子。
148So I think there are a lot of questions to answer that.所以,我认为有很多问题可以回答。
149I want you to notice a couple of things我要你们注意一些事情
150about how I'm prompting there.关于我如何激励那里。
151The first thing is I'm thinking a lot about the why.第一件事是我想了很多为什么。
152I'm thinking a lot about the problem我想了很多问题
153that I'm trying to get the agent to solve.我试图让代理解决。
154I'm not necessarily giving it a, you know,我不一定给它,你知道,
155decent sort of like idea of what exactly to do.有点像什么是真正应该做的。
156If I give it the why, then the agent feels如果我说出原因 那经纪人就觉得
157a lot more empowered to go away更有能力离开
158and actually produce a solution itself并产生一个解决方案本身
159or maybe have a discussion about the solution.或者讨论一下解决方案
160Whereas if you come to it with a what saying,如果你带着一句话来见它,
161I want to do X, Y, Z, then it will often我想做X,Y,Z,然后它会经常
162not necessarily come up with that creative an answer.不一定有创意地提出答案。
163And so we can see here it's come back我们可以看到它又回来了
164with a bunch of grilling questions here.这里有一堆烧烤问题
165It's asking first, what is the rigmarole?它首先问,什么是硬币?
166What is the part of attaching a diagram that hurts most?附上一个最痛的图表是什么?
167I would say that A, leaving the thumbnail creator我会说A,留下缩略语创作者
168is annoying and B is also annoying烦死了 B也烦死了
169and C is also annoying.C也很烦人
170So I think you've put your finger on all three there所以,我想你已经把手指 在所有三个那里
171to be honest.老实说
172Is the thumbnails diagram the same as the videos diagram?缩略图和视频图一样吗?
173When you edit the diagram inside the thumbnail,当你在缩略图中编辑图表时,
174should the changes go back to the diagram the video uses?更改是否应该回到视频使用的图表?
175This is kind of a question about这是一个问题 关于
176where do we want this diagram stored?我们要将这个图表存放在哪里?
177Should it be inspired from existing diagrams?是否应该从现有的图表中启发它?
178Because in the application, you can see,因为申请中你可以看到
179if I do a search here, then I can actually search如果我在这里搜索,那么我可以真的搜索
180for existing diagrams.用于现有的图表。
181So I've found this wayfinder diagram所以我找到了这个探路器图
182by just sort of like, oh, I've got to search, haven't I?有点像, 哦,我得搜索,不是吗?
183So go to diagram, wayfinder,所以去图,探险家,
184and then search all the diagrams that I've used.然后搜索我用过的所有图表
185So this one, for instance, is good.比如说,这个很好。
186This one's another one.这个是另一个
187So it's kind of asking, how do we associate所以,它是一种问, 我们如何联系
188these thumbnail diagrams with this list?这些带有此列表的缩略图 ?
189And I'm not quite sure there.我不太确定这里
190With Q2, I'm not sure.与Q2,我不确定.
191I'm kind of not sure of the trade-offs there really.我有点不确定 真正的权衡。
192I suppose the question is,我想问题是,
193do I want the diagram to be sort of searchable我是否希望图表可以搜索
194inside the main list?在主列表内?
195Do I want it associated?我要和它联系起来吗?
196I'm not quite sure what the use case is there.我不太确定那里有什么用途
197Q3, starting from scratch,Q3,从零开始
198should you be able to draw a new diagram如果您能绘制新的图表
199straight in the thumbnail without any existing diagram?直接在缩略图中, 没有可用的图表 ?
200Q3, yes, I agree.问题3,是的,我同意。
201That sounds good.这听起来不错。
202With Q3 too, I kind of maybe want to be able加上Q3,我也许想能够
203to search existing diagrams.以搜索已有的图表。
204I like the ability to add components that we've already got,我喜欢添加我们已经拥有的组件的能力,
205maybe searching for stuff that we've already got,也许在寻找我们已经得到的东西,
206or maybe I could just copy stuff in或者我可以把东西抄进去
207from one TL Draw board to another.从一个 TL 绘图板到另一个。
208I want you to notice at this point我要你注意这一点
209how loose the language is语言有多松散
210that we're using to describe the feature.我们用来描述这个特征
211It doesn't feel like we are particularly sort of,感觉我们不是特别的
212we haven't figured out the right names for things yet,我们还没找到合适的名字
213and so I'm having to use a lot of weird verbosity所以我不得不用很多奇怪的动词
214and shortcuts.和捷径。
215It's not quite clear in my head still.我脑子里还不清楚
216As we go through this grilling process,当我们经历这个烧烤过程时,
217the idea of what we're building关于我们正在建设的理念
218is gonna become clearer and clearer in my head我脑子里会越来越清楚
219until we end up with a nice set of words直到我们最后用一个很好的词组
220for the things we're building.为了我们建造的东西。
221And once we're there, we've kind of built the feature.一旦我们到了那里,我们建立了这个功能。
222So Q4 says, should there be one editing mode or two?所以Q4说,应该有一个编辑模式还是两个?
223In the thumbnail, should there be a single在拇指中,应该有一个
224edit the diagram mode and a separate arrange mode?编辑图表模式和单独的排列模式?
225For Q4, I think the process should probably be对于问题4,我认为这一过程可能是
226that we take a photo of my face first,我们先拍我的脸的照片
227then that face gets arranged onto the canvas,然后那张脸被安排在画布上,
228and then once my face is there,然后一旦我的脸在那里,
229then we can sort of build the diagram around my face,然后我们可以把图画在我脸上
230and I should have the option of retaking it.我应该有选择 收回它。
231For Q5, is the face fixed?对于第5题,面部是否固定?
232For Q5, I think I should have the option对于Q5,我想我应该有选择
233of moving the face horizontally,使面部水平移动,
234and from there, that would just give me从那里,那只会给我
235a bit more flexibility.有点灵活
236Q6, is this only about diagrams?问题6,这仅仅是图?
237Yeah, Q6, let's make it diagram only for now.是的,Q6,让我们只用图图。
238I can't think of a use case where I want to attach我无法想象一个我想附着
239other stuff inside the thumbnail.拇指里的其他东西
240We don't wanna build a second Figma.我们不想再造第二个法格玛了
241We just want to make this particular flow easier.我们只是想让这个特别的流量更容易。
242Okay, so while we were answering those questions,好吧,所以当我们回答这些问题时,
243the agent was going off, spinning up a background agent,特工要离开 转动一个背景探员
244and going to find the supporting information并寻找佐证信息
245that we needed here.我们在这里需要的。
246So it's actually going ahead and changing所以,它实际上正在前进和改变
247two of the questions here.这里有两个问题
248And then Q7 says, should edit the diagram in place然后,Q7说,应该编辑 的图表到位
249mean a live TL Draw editor clipped to the thumbnail frame表示一个活的 TL Draw 编辑器剪贴到缩略图框架
250with the camera locked so the area you see is the thumbnail?摄影机被锁了 所以你看到的是拇指?
251For Q7, I'm concerned that cramping us对于Q7,我担心我们抽筋
252into that smaller space will mean that editing the thing,进入这个小空间意味着编辑这个东西,
253or the thumbnail actually becomes kind of painful.或者缩略图会变得很痛苦
254And so I think we might need to prototype所以我认为我们可能需要原型
255a few different approaches there.有一些不同的方法在那里。
256So that's a very detailed first response.这是非常详细的第一反应。
257Let's fire it off.开火吧
258Now you might be looking at this approach现在你也许在看这个方法
259and you might be thinking, okay,你可能会在想,好吧,
260what benefits this have over approaches that I'm taking这对我采取的办法有什么好处?
261over like plan mode, let's say.就像计划模式一样
262What this skill does and what this approach does这种技巧能做什么,这个方法能做什么
263is we align on the thing that we're building我们是否同意 我们建造的东西
264before we go ahead and build it.之前,我们前进和建造它。
265This means that we're gonna get这意味着我们会得到
266a much more predictable output.更可预测的产出。
267I'm gonna have much stronger understanding我会更了解的
268over the thing that we're building.因为我们正在建造的东西。
269And while it's building,当它建起来的时候,
270I'm gonna let it just sort of run by itself.我要让它自己来操控
271But this is the moment early on when I get to但是,这是我早到的时刻
272maybe with my teammates align on what we're building,也许跟我的队友们说好我们要建什么
273figure out what it actually is,找出它实际上是什么,
274what the words we're gonna use about it.我们要用什么词来形容它
275And then everything from that point然后从那开始一切
276all the way down to human review at the end一直到最后的人类评论
277is kind of gonna be fairly on rails.那种会是公平 在铁轨上。
278So Q2, it's reframing it.所以Q2,它正在重塑它。
279It's saying, is the thumbnail's diagram a real diagram?意思是 缩略图是真正的图吗?
280And at this point, we should probably talk about此时此刻,我们也许应该谈谈
281what it actually means by a real diagram.真实的图表意味着什么
282This is inside the course video manager repo.这是课程视频管理器内部的Repo。
283And this is a glossary.md that is my pride and joy.这个词汇表是我的骄傲和喜悦。
284When I talk about language inside a project,当我在项目里谈论语言
285what I'm really talking about is the words我真的在说这些话
286that you're using to describe certain things.你用来描述某些事情。
287And in this pretty massive file here,在这个相当庞大的文件里
288which is about 560 lines,约560行,
289we define all of the main concepts我们定义了所有的主要概念
290that sit inside this course,坐在这条路里,
291or sorry, that sit inside this repository对不起,坐在这个仓库里
292that are responsible for this project.负责这个项目的人。
293And the stuff that we're really talking about here而我们真正谈论的东西
294is a diagram.是一个图表。
295And so there's a whole section on diagrams.因此,有一个关于图表的整个部分。
296So a diagram is really a group of diagram snapshots,所以,一个图其实是一组图的快照,
297which is a copy of the diagram's drawing这是图画的复制件
298at the moment that a clip is filmed.在片段被拍摄的时候
299In other words, in my video editor,换句话说,在我的视频编辑中,
300it's linked up to the diagram.和图表相连
301And so I can see what diagram I was using我可以看到我用的是什么图
302at each point in the video.在视频的每一点。
303There is the active diagram,这是活性图表,
304so the diagram that the author is drawing on now.所以作者现在利用的图
305We have an action called restore to head我们有一个叫做恢复的动作
306when we load an older diagram snapshot当我们装入更古老的图表快照
307back as the active diagram.返回为活动图表。
308There are preserved snapshots as well,还有保存下来的快照
309which are diagram snapshots kept in its diagrams timeline,这是图中的图示,
310even when no clip uses it.即使没有剪辑使用它。
311You can start to see that these definitions你可以看到这些定义
312form a really nice picture of the feature.组成一个非常不错的图片 特征。
313And what we're kind of doing here我们在这里做什么
314is we are trying to add to this,我们正试图增加这一点,
315trying to figure out where our new feature lives试着找出我们的新特色
316in this existing landscape.在现有的地貌中。
317So by asking, is a thumbnails diagram a real diagram?所以通过问,一个缩略图是真实的图吗?
318We're kind of asking, okay, it's a diagram,我们有点问, 好吧, 这是一个图表,
319but maybe it's private to the thumbnail.但也许对拇指来说是私人的
320For Q2, I think it makes sense对于Q2,我觉得这很合理
321to have our existing setup here.将我们的现有设置在这里。
322But what I'm concerned about is that但我担心的是
323the thing we're putting into the thumbnail我们用在拇指上的东西
324is not really a diagram, it's just a single snapshot.不是一个真正的图表,它只是一个快照。
325In our model, a diagram is really a grouping在我们的模型中,图真的是一个组合
326of different snapshots of that diagram该图的不同快照
327as they change through a clip.他们通过剪辑改变。
328Whereas this is more like a diagram snapshot.而这更像是图示
329So now that probably sounds like garbage or jargon to you所以现在你可能听上去像垃圾或术语
330if you don't understand the language of the project,如果你不懂项目的语言,
331but I've been able to communicate something pretty rich但我能传达一些非常丰富的东西
332that the model understands模型能理解
333because the glossary.md is in its context.因为术语表.md是在其上下文。
334Q8 sounds good, all three of those sound really valuable.Q8听起来不错 这三个声音都非常有价值
335Q9, yes, when we move the face,问题9,是的,当我们移动的脸,
336the diagram should just stay put.图表应该留在原地
337Q10, yes, when we retake,问题10,是的,当我们重拍时,
338then we do the background removal and we replace the photo.然后我们去除背景 并替换照片。
339Okay, it's now asking whether it should prototype好吧,它现在问 它是否应该原型
340a few different editing surfaces, and I love this.几个不同的编辑表面, 我喜欢这个。
341That's exactly what I wanted to do.这正是我想做的。
342The tricky thing about Q11 here问题11的棘手之处
343is that it's really about a question about feel.是关于感觉的问题
344How does it look?怎么样?
345How does it feel to use?用起来感觉如何?
346And I won't really know the trade-offs而我不会真正知道权衡
347until I see the differences all laid out in front of me.直到我看到差异 都摆在我面前。
348In other words, until I have a go at it.换句话说,直到我尝试它。
349And so I have a prototype skill所以我有原型技术
350that gives you multiple options给您多个选项
351that you can use to make these kinds of decisions.你可以用来做出这些决定。
352And that's what the agent is trying to do here.这就是特工想做的事
353Which ones should it prototype?哪个是原型?
354Q11, yes, that sounds great to me.问题11,是的,听起来很棒。
355The benefit of having multiple prototypes to look at拥有多种原型的优点
356is especially if it builds something that you don't like,特别是如果它造出了你不喜欢的东西
357that often tells you more than what you might get经常告诉你的比你可能得到的更多
358from something you do like.从你喜欢的东西。
359So actually exploring lots of different options所以实际上探索了很多不同的选择
360can give the agent a really rich view可以给特工一个非常丰富的视图
361{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}为了你真正想要创造的东西
362And there we go.就这样
363We now have the glossary.我们现在有了词汇表。
364The CVM glossary has no entry for the thumbnailCVM 词汇表没有缩略图条目
365and it's proposing two.它提出两个。
366So it's proposing a thumbnail,因此,它提出一个缩略图,
367the image shown for a video on YouTube,在YouTube上显示的视频画面
368or a cutout, or rather, and a cutout.或剪断,或更确切地说,剪断。
369The author's face with the background removed,提交人的面部背景被移除,
370placed over the diagram.放在图上。
371And then it's also saying然后它也说
372there should be a third term thumbnail diagram.应该有第三个术语缩略图。
373For Q12, yes, that sounds great.对于Q12,是的,这听起来很棒。
374All right, let's send this off.好吧,让我们把这个关闭。
375And now again, we should be getting closer现在,我们又应该走近了
376and closer as we go.离我们更近
377Lots of folks ask me like, you know,很多人问我喜欢,你知道,
378why, what happens if you have a grilling session为什么,如果你有烧烤会怎么样?
379that runs for like 500 questions or something?跑500个问题还是什么的?
380How do you know when to stop grilling?你怎么知道什么时候停止烧烤?
381And you should, like, I should be driving this conversation.你应该,像,我应该 驱动这个对话。
382You know what I mean?你知道我的意思吗?
383Like, you should be the one in charge of it.喜欢,你应该是一个负责它。
384The agent is not grilling you.探员没在折磨你
385You are in a conversation with it.你正在和它交谈
386And so you should feel free to just go,所以,你应该觉得自由 只是去,
387no, we've talked enough.不,我们已经谈够了。
388Let's go and actually create some code now.让我们去创造一些代码。
389Okay, we can see it's updated.好吧,我们可以看到它更新。
390The section on thumbnails inside the glossary.词汇表中关于缩略语的部分。
391That's really good.这是非常好的。
392And now it's doing something cool,现在它正在做一些很酷的事情,
393which is it's pinging off a subagent就是它从潜质中抽出来
394to go and prototype thumbnail diagrams.和缩略图的原型。
395So that's great.所以这是伟大的。
396We're able to continue grilling while it goes off我们可以继续烤 趁它爆炸
397and does some work in the background.并在背景中做一些工作。
398Okay, and now we're doing some hardcore language stuff.好吧,现在我们正在做一些硬核语言的东西。
399Thumbnails drawing is neither a diagram缩略图绘图不是一个图
400nor a diagram snapshot.也没有图示
401You'll write that it isn't a diagram你会写它不是图
402and a diagram snapshot doesn't fit either.和图表快照也不合适。
403The glossary defines a snapshot as a copy术语表将快照定义为副本
404at the moment a clip was filmed.在拍摄片段的时候
405So it's now proposing a new term, a thumbnail drawing.因此,它现在提出一个新的术语,缩略图画.
406The drawing that belongs to one thumbnail,属于一个拇指的画
407you edit in place and we can start from a diagram,你编辑就位 我们可以从图表开始
408diagram snapshot or another thumbnail's drawing.图表快照或者另一个缩略图的图画.
409It's actually saying to avoid thumbnail diagram here.这其实是为了避免缩略图
410Now I know this glossary pretty well, right?现在我对这个词汇很了解,对吧?
411And the better I know the glossary,我越了解词汇表
412the more able I'm able to make smart contributions我越能做出聪明的贡献
413to the application,申请,
414the better I understand the application.我越了解申请
415And so I know there's this thing called a preserve snapshot,所以我知道有个东西叫保存的快照
416which is the diagram snapshot kept in its diagrams timeline,这是图中的图示,
417even when no clip uses it.即使没有剪辑使用它。
418So I can say to the agent,所以我可以跟探员说
419doesn't it make sense to have a thumbnail有个小指甲没道理
420represent a preserved snapshot?代表保存的快照吗?
421We don't always define snapshots我们并不总是定义快照
422as the moment that a clip was filmed.作为片段拍摄的那一刻。
423I'm gonna show you a technique that I sometimes use我给你看我有时使用的一种技巧
424when I feel like I'm at the crux of something当我觉得自己在某事的十字架上
425or when I just wanna talk about one thing for a minute,或者当我只想谈一件事的时候,
426which is I'm just gonna say,我要说,
427for now let's just focus on this question,现在让我们只关注这个问题,
428ask me one question at a time until I say otherwise.一次问我一个问题,直到我再说
429This is another way that you can direct the grilling这是另一种方法 你可以引导烤肉
430if you're kind of getting a bit scatterbrained,如果你有点被打散了
431if you just want to focus in on the thing如果你只想专心于这件事
432that you actually care about你真正关心的
433and don't care about all the small stuff,也不在乎这些小东西
434then you can just say,那你可以直接说,
435no, just go one question at a time for now.不,先问一个问题
436One other thing it's doing here is it's reading还有一件事它在这里做的是读
437an architectural decision record建筑决定记录
438that we made on snapshots and preservation.我们用快照和保存。
439This is another thing we do during grilling.这是我们在烤肉时做的另外一件事。
440We can take a look at ADR 003,我们可以看看ADR 003,
441just up in here,就在这里,
442diagrams as first-class entities with per-clip snapshots.图表作为头等实体,每张剪贴快照。
443So this is where we actually made the decision这就是我们真正做出决定的地方
444about the glossary.关于词汇表。
445So the glossary kind of describes the application因此,术语表类型 描述应用程序
446as it is now, as does the code,就像现在一样 密码也是一样
447but the ADRs are here to explain但ADRs在这里解释
448why we made those decisions.为什么我们做出这些决定。
449In other words, we are interacting换句话说,我们正在互动
450with a part of the application that's relatively old,有一部分应用 相对旧,
451relatively mature,相对成熟,
452and if we didn't write this stuff down,如果我们不写下来,
453then we would be guessing.然后我们猜。
454This is a classic Chesterton's fence issue, right?这是典型的切斯特顿的篱笆问题,对吧?
455There exists in such a case,在这种情况下,
456a certain institutional law,某些体制性法律,
457let us say for the sake of simplicity,让我们说,为了简单起见,
458a fence or gate erected across a road.跨越公路竖立的栅栏或大门。
459The more modern type of reformer goes gaily up to it改革者越现代 就会轻描淡写
460and says, I don't see the use of this,并说,我不认为 用这个,
461let us clear it away,让我们去清理它,
462to which the more intelligent type of reformer最聪明的改革者
463will do well to answer,将善解答,
464if you don't see the use of it,如果你没有看到它的用途,
465I certainly won't let you clear it away.我当然不会让你把事情处理掉的
466Go away and think.走开,想一想
467Then when you come back and tell me那你回来告诉我
468that you do see the use of it,以便你们看见它的作用。
469I may allow you to destroy it.我可以让你摧毁它
470In other words, do not remove a fence换句话说,不要拆除围栏
471until you know why it was put up in the first place.直到你知道为什么它被放在首位。
472So the ADRs, the architectural decision records,因此,ADRs, 建筑决定记录,
473help us keep track of why these fences have been put up.帮助我们追踪为什么这些围栏被竖起。
474So it's come back and of course it's saying,所以它回来了,当然它说,
475yes, you're absolutely right,是的,你绝对是对的,
476I was wrong to rule it out.我错了,排除它。
477And so it's saying,所以说,
478which diagram does a thumbnail's snapshot belong to?一个缩略图属于哪个图?
479Yeah, the thumbnail pins a snapshot of some diagram's head.是啊 缩略图上刻着一些图头的快照
480The question is,问题是,
481which head you're editing in the thumbnail creator.在缩略图创建者中您正在编辑哪个标题 。
482This is a really tricky one这是一个非常棘手的
483because we're basically deciding因为我们基本上决定
484how the thing is gonna work now.事情会怎样运作呢?
485We basically, in this mode,我们基本上,在这个模式下,
486we might have to choose a diagram我们可能必须选择一个图表
487so that we can create a snapshot inside it,以便我们在那里创造一个快照,
488or we choose an existing snapshot that we then edit.或选择我们先编辑的现有快照。
489It all feels a little bit clunky and weird.感觉有点古怪
490And what it's kind of suggesting和它是什么 那种暗示
491is that we might need a diagram of its own我们可能需要一张自己的图
492for each thumbnail.每个缩略图。
493It keeps the teaching diagrams head safe它能保证教学图的安全
494while you simplify for the thumbnail同时简化缩略图
495and you still get to start from the teaching version.你仍然可以从教学版本开始
496I really don't know here, I really don't know.我真的不知道这里,我真的不知道。
497I'm just gonna sort of spill out我只是要有点溢出来
498what I'm thinking about, I think.我在想什么,我认为。
499So what I'm thinking about in my head我脑子里在想什么
500is the decision between whether we kind of tie是决定我们之间 是否有某种关系
501into the existing diagram, diagram snapshot stuff,到现有的图,图的快照,
502which is mature, there's a lot of code in there,已经成熟了 里面有很多密码
503or whether we sort of extend that work或者我们是否要延长这项工作
504and instead apply it to a different data model,并将其应用于不同的数据模型,
505call it a different thing.称之为异物.
506And it's essentially whether to mix the streams根本上是要不要把溪流混在一起
507or not mix the streams.或不混合的溪流。
508I think probably what I'm most inclined to do here我想可能是我最喜欢做的事
509is not mixing the streams.不混合溪流。
510But what I'm scared about is later down the line,但我害怕的是后来的事
511we might wish that we had我们也许希望我们有
512so that these models could be linked somehow.这样这些模型就可以以某种方式联系起来。
513But I can't see the concrete use case但我看不出具体用法
514for why we would want to still hang onto the existing model.为什么我们还想继续坚持现有的模式
515You can see that, I'm struggling here, right?你可以看到,我在这里挣扎,对不对?
516This is a hard thing to think about.这是很难想到的。
517And if I had colleagues, this would be the moment如果我有同事, 这将是的时刻
518when I would reach out to them and go,当我伸出手去和他们,
519help me, I'm not quite sure what we do here.帮帮我,我不知道我们在这里做什么。
520This feels like quite a large consequential decision这感觉就像一个巨大的决定
521for this feature.用于此功能。
522So it's saying, I would go with your instinct意思是 我会用你的直觉
523and keep them separate.让他们分开
524The fear of wanting them linked later害怕以后想要它们
525is mostly covered by two facts.大部分事实涉及两个方面。
526So both sides store the same scene format.因此,双方储存了相同的场景格式.
527In other words, the way they store it in the database换句话说,他们在数据库中存储它的方式
528is the same.一样
529Copying between them is trivial in either direction.在两个方向之间复制是微不足道的。
530So start from a diagram or snapshot works所以从图表或快照开始
531without the models being joined.而不加入模型。
532The link you're likely to want你可能想要的链接
533is where a drawing came from, not one model.是画作的源头 不是一个模型
534Which thumbnails were made from which diagram哪个缩略图来自哪个图
535is answered by one nullable started由一个无效的开始回答
536from snapshot reference recorded when you copy.从复制时记录的快照参考。
537So the reason we're so obsessed with language所以我们对语言如此着迷的原因
538at this point is because the language这时候是因为语言
539is going to form the data model将形成数据模型
540that everything else fits on top of.其它的都一样
541Once we understand the language,一旦我们理解语言,
542once we understand the names for these things,一旦我们了解这些东西的名字
543we then have names for database tables.然后我们有数据库表格的名字。
544We understand how they reference other parts of the system.我们理解他们是如何提到系统其他部分的。
545And so we can create tables from that,这样我们就可以从这里创造桌子,
546create modules and set it up.创建模块并设置它。
547Okay, so I think I've decided.好吧,我想我已经决定了。
548Okay, that suggestion sounds good.好吧,这个建议听起来不错。
549I like that we have a lot of flexibility我喜欢,我们有很多灵活性
550not to quite decide the data model now.现在不能完全决定数据模型。
551And I like your suggestion of tracking the snapshot我喜欢你的建议 跟踪快照
552that it came from in case that becomes relevant它来自 万一它变得相关
553later down the line and we properly want to link it.我们想把它连接起来
554I suppose I don't necessarily matter how we model this我想我不一定在乎我们怎么做这个
555as long as the way we're modeling it is not lossy只要我们做模特的方式不败
556and we preserve all of the links.我们保留了所有的联系
557Let's just see what it says to that.让我们看看上面写了什么
558I'm not necessarily giving it a great answer,我不一定给它一个伟大的答案,
559but maybe that's enough for it to go on.但也许这样就足够继续了
560At its best, grilling really does feel最好的时候,烤肉真的感觉
561like rubber ducking with someone像橡皮鸭与某人
562with a really respected colleague,和一个很受尊敬的同事
563someone that understands the code base really well.一个非常了解密码基础的人
564And you're kind of just able to talk out your thoughts你只能说出你的想法
565or type out your thoughts.或打出你的想法。
566And by talking them through,而通过说服他们通过,
567you get to a more concrete solution找到更具体的解决办法
568even before you've written any code.甚至在你写出密码之前
569Okay, it's gone a bit nuts here,好吧,它走了 有点疯狂在这里,
570which is it's actually gone ahead这是它实际上走了前进
571and written an entry for thumbnail drawing,并写了一条用于缩略图画的条目,
572which I don't like.我不喜欢这样
573I don't like having the concept of drawing here.我不喜欢在这里画画
574Let's take a step back.让我们退一步。
575I really don't like the wording of thumbnail drawing.我真的不喜欢缩略图的写法
576I hate the fact that we've got a drawing and a diagram.我讨厌我们有图和图
577Those feel like they conflict really hard.他们觉得他们冲突很激烈
578I think thumbnail diagram is just fine.我觉得缩略图很好
579Can you also run me through the decision你能帮我做个决定吗?
580to create an ADR here?在这里创建 ADR ?
581Why did you decide to go for a new ADR?你为什么决定去参加新的ADR?
582So it's sort of eagerly create an ADR without asking me,所以,它有点急切地创建 ADR 不问我,
583which is not how I usually like to do it.我通常不喜欢这样
584I like to have that decision be something I do我喜欢做这样的决定
585during the grilling session.在烧烤期间。
586Okay, he says, he says, the agent says,好吧 他说 他说 探员说
587I've renamed it to thumbnail diagram everywhere,我把它改名为图示
588the glossary, the ADR, and the ADR's file name.术语表、 ADR 和 ADR 的文件名。
589Yeah, it's kind of coming back at me a little bit on here,是啊,它有点回到我这里一点点,
590saying once more catch to be aware of,再说一遍,要知道
591an active diagram is a diagram,活动图是图,
592but a thumbnail diagram is not.但缩略图不是。
593So maybe the word diagram isn't right here.所以也许图表这个词不在这里。
594So now it's saying, why did it suggest an ADR?所以现在它说,它为什么建议一个ADR?
595Why did it feel the need to write down为什么它觉得需要写下来
596this non-obvious decision?这个非明显的决定?
597So it's saying it is non-obvious, right?所以它说它不是明显的,对不对?
598It's surprising without context.没有上下文是令人惊讶的。
599There is a real trade-off here.这里有一个真正的权衡。
600And so that's another criteria and it is strong所以,这是另一个标准 它很强
601and it's hard to reverse,这很难逆转,
602or rather it's saying it's not hard to reverse.或者说它不是很难扭转的
603We could potentially walk this back.我们可以走这回。
604So now it's spelled it out.故今明说.
605I do agree with its reasoning我同意它的说法
606as to why it suggested an ADR.至于为什么它建议进行发展成果评估。
607And by the way, I'm investing time into this顺便说一句,我正投入时间
608so that future runs understand the context让未来了解背景
609for every decision,对于每一个决定,
610so that I continue getting better grilling sessions这样我就能继续得到更好的烤肉会议
611as I continue working on this project.我继续研究这个项目
612Without this or being lazy here,没有这个或懒惰,
613would mean that my next run ends up being a lot worse意味着我的下一场比赛会更糟
614because I don't have as good context as I need.因为我没有我所需要的那么好的背景。
615Okay, I agree with your decision on the ADR,好吧,我同意你的决定 关于ADR,
616and I also agree that thumbnail diagram我也同意这个缩略图
617is a little bit awkward.有点尴尬
618Can you give me some options here你能给我一些选择吗?
619and let's do some scenario testing让我们做一些情景测试
620to see how they match up against diagram看他们如何与图表匹配
621versus diagram snapshot.与图示对比.
622I'm sort of leaning towards thumbnail diagram snapshot,我有点倾向于缩略图快照,
623even though that's a little bit long, but might work.虽然有点长,但也许有用
624Scenario testing is a really great way场景测试真是好方法
625of kind of testing your domain language,一种测试你的域语言,
626testing the language that you're trying to use.测试您想要使用的语言。
627What it does is it gives you a table of different options,它所做的是 给你一张不同的选择表
628different sentences you could use to describe the system.不同的句子可以用来描述系统。
629And then it checks out how easy it would be然后它检查 是多么容易
630to describe in different forms of language.以不同语言形式描述。
631So here we can see we have a candidate,因此我们可以看到我们有一个候选人,
632a thumbnail diagram snapshot缩略图快照
633versus a thumbnail diagram versus a thumbnail scene.相对于缩略图相对于缩略图场景.
634So in the first scenario it says,所以,在第一种情景中,它说,
635I started the thumbnail from the agent loop snapshot我从经纪人的循环快照开始用缩略图
636used in clip 14, then I simplified it.用在14号片段,然后我简化了它。
637All three there are probably fine.三个都很好
638You open the agent loop in the playground,你打开操场的经纪人圈
639is the thumbnail in its timeline?时间轴上有缩略图吗?
640Yeah, that's an interesting one是啊,这是一个有趣的一个
641because if it's saying it's a snapshot,因为如果它说的是一个快照,
642then you would kind of expect it to be in there那你会期望它在里面
643or expect it to be in there somewhere.或期望它在那里某处。
644If it's a thumbnail diagram,如果是一个缩略图,
645then you might try to look at it on the top level.然后,你可能会尝试看 在顶层。
646And so yeah, by calling it a diagram or a diagram snapshot,所以是的,通过把它称为一个图表或一个图表的快照,
647it sort of makes it feel like it's linked in它会让人觉得它连接在
648with the other stuff.其他东西。
649It says here, I dragged an arrow in the diagram snapshot,上面写着 我用箭射中了地图
650but that's not good because snapshots can't change.但是这不好 因为快照无法改变
651You tell an agent to tweak你告诉一个特工去修剪
652the thumbnail's diagram snapshot, doesn't really work.缩略图的图示 并不有效
653But I'm starting to see why it thinks about thumbnail scene但我开始明白 为什么它会想到 缩略图的场景
654and why it thinks it's good.以及为什么它认为它很好。
655We can see in all of the tables here这里的桌子都能看到
656that thumbnail scene is basically fine.那个缩略图的场景基本上很好
657Apart from Matt says it allowed while working.除了马特说它允许工作
658In other words, does it match my actual mental model?换句话说,它跟我真正的心理模型相符吗?
659For thumbnail diagram snapshot, it's a bit too long,对于缩略图快照, 它有点长,
660a bit too wordy.有点太词性了。
661Thumbnail diagram seems fine缩略图看起来不错
662because it is at what I naturally say.因为这是自然而然的。
663And thumbnail scene is not a word that I would use.缩略图的场景不是我想说的
664It's more sort of coding vocabulary.这更像是编码词汇
665In other words, scene is not something换句话说,场景不是什么
666that we sort of have throughout the application.在整个申请过程中我们都有
667Maybe it is actually,也许它实际上是,
668maybe we have like a scene layer more possibly.也许我们有像一个场景层 更可能。
669I'm just gonna search in the glossary for scene here.我只是在词汇表里搜索一下这里的场景
670And yeah, we do have a concept of a scene.是的,我们有一个概念 一个场景。
671And diagram we've also got, okay, that's not good either还有图,我们也有,好吧,那也不好
672because we've got a scene in there too.因为我们也有场戏
673So let's read its kind of final part here.让我们在这里读读它的最后部分。
674Yeah, even though C has all the ticks,是的,尽管C有所有的滴答,
675it actually does wait number seven really high.事实上,它确实等待 7号真正高。
676And it says C is the clearest technically,上面说C在技术上是最清楚的
677but it's not how you talk.但这不是你说话的方式
678And it puts a code word in the domain language.它在域语中设置了一个代码词.
679B has one weakness, it reads as a kind of diagram.B有一个弱点, 它读作一种图。
680And so yeah, I do think it's right所以,是的,我觉得这是正确的
681that thumbnail diagram makes sense那个缩略图有道理
682as long as we have an ADR to say it's a diagram,只要我们有一个ADR 说这是一个图表,
683but not a diagram.但不是图
684And I can see why it went for thumbnail drawing as well,我能理解为什么它也用来画拇指
685but I just don't like that word.但我只是不喜欢这个词。
686It doesn't feel like it rolls off the tongue.不觉其卷下舌.
687Okay, thumbnail diagram is the right thing.好吧,缩略图是正确的事情。
688I agree that thumbnail scene is poor,我同意缩略图的场景很差
689especially because we do actually have a concept特别是因为我们确实有一个概念
690of a scene elsewhere in the glossary.在词汇表的其他地方。
691I also agree that having the ADR there means我也同意,有发展成果评估就意味着
692that yet we have a concept of a diagram,我们有一个图的概念,
693but we've also got a thumbnail diagram.但我们也有缩略图
694And I think that's okay to have that distinction.我认为有这种区别也没关系。
695Can you now widen things out?你现在能把事情扩大了吗?
696I feel like we've understood the crux我觉得我们理解了十字架
697of what we're building.我们建造的东西。
698Let's now have multiple questions at once.今当同时多问.
699I think this kind of ceremony feels really off我觉得这种仪式很不愉快
700to a lot of people.对很多人
701A lot of people go,很多人会去,
702why are you spending so much time thinking about language你为什么花这么多时间想着语言
703and sort of like about the words that you're using?就像你用的那句话一样?
704Why is that so important to you?你为什么这么重要?
705And I think the reason it's so important我觉得这很重要的原因
706is what you've just seen here, what we've just done.这就是你刚刚看到的, 我们刚刚做的。
707We have from almost nothing,我们几乎一无所获
708now we have a fully realized concept现在我们有一个完全实现的概念
709of the thing that we're building我们所建造的东西
710and the data model that's gonna go into it.和将进入它的数据模型。
711We now know that we have a thumbnail我们现在知道我们有一个缩略图
712and a thumbnail diagram.和一个缩略图。
713That thumbnail diagram is not technically a diagram.这个缩略图在技术上不是图。
714It's more like a scene,更像是场戏
715but we can't use the word scene但我们不能用这个词
716because we've got that elsewhere.因为我们在别的地方有
717And then this is going to then go into the rest然后这个再进入其余的
718of this grilling session.这场烤肉会
719Q2C says, starting from a diagram's head,Q2C说 从图头开始
720when you start from a diagram's head,当你从一个图头开始,
721should the CVM save that head如果 CVM 保存头
722as an unpreserved diagram snapshot?作为未保存的图表快照?
723Q2C, that is absolutely correct.Q2C,这是绝对正确的。
724What the start from searches and in what order?搜查的起点是什么?
725I think it's got this idea that I want a UI我想它有这个想法 我想要一个UI
726where we like start from an existing diagram,我们喜欢从现有图表开始
727but I think I always want an empty diagram to start但我想我总是希望一个空的图开始
728and then be able to search my existing diagrams from there.然后可以从那里搜索我现有的图表。
729I think what I want from the Q14我想我要从Q14里得到什么
730is I don't necessarily want to go我不一定想离开
731from a start from list of potential different diagrams.从可能的不同图表列表开始。
732I want to start with an empty canvas我想从空画布开始
733and then maybe search for existing diagrams然后可能搜索已有的图表
734and plonk them on.并摆平他们。
735Q15 says, should we have one thumbnail diagram per thumbnail?问题15说,我们应该有一个缩略图 每个缩略图?
736Absolutely, Q15 is correct.当然,问题15是正确的。
737Q16, no user images in the thumbnail diagram.Q16, 缩略图中没有用户图像 。
738Absolutely agree with Q16.绝对同意Q16.
739Q17, it's asking about a separate concept called a pitch问题17 它在问一个叫做投球的单独概念
740with a pitch has a YouTube thumbnail description有投球的YouTube缩略图描述
741with arrow text field.带有箭头文字字段。
742Q17, let's not worry about pitches.问题17,别担心投球
743They're kind of soft deprecated.其类柔弱.
744I don't use them very much我不怎么用他们
745and so let's not worry about integrating with them.所以,我们不要担心 与他们融合。
746Q18, yes, let's keep existing thumbnails as they are.问题18,是的,让我们保留现有的缩略图。
747Q19, let's give the thumbnail editor问题19,让我们给缩略图编辑器
748a parity with the diagram editor与图表编辑器对等
749in terms of saving components, inserting components.在保存组件方面,插入组件。
750We may even want to consider a shared component there.我们甚至可以考虑其中的一个共同部分。
751We're seeing something a little bit awkward actually我们发现有些事有点尴尬
752in our domain language for component.用于组件的域语言。
753We can see that inside the diagram sections of the glossary,我们可以看到,在术语表的图表部分,
754we have this concept of a component.我们有一个组成部分的概念。
755This is something I'm actually pretty proud of这是我非常骄傲的事
756in my user interface.在我的用户界面中。
757We have diagram components here,我们这里有图表组件
758which are reusable diagrams可重复使用的图表
759that I can plug into any diagram that I want to.我可以插进任何我想要的图表
760But calling them just raw components in the glossary但称它们只是词汇表中的原始组成部分
761means that they actually sort of bump up意思是他们真的有点颠倒
762against the concept of components in React.与React中组件的概念相对应.
763And that's what I was just talking about.这就是我刚刚说的。
764We need to have a shared component我们需要一个共同的部分
765that shows a list of components.显示组件列表。
766It doesn't make sense.岂不通乎.
767A quick note on the component part of the glossary,关于术语表组成部分的简要说明,
768which is I'm finding it a little bit awkward我觉得有点尴尬
769with the word component in there里面有单词组件
770because that bumps up against React components.因为这与React组件相撞
771So I think we probably need to prefix it所以,我想我们可能需要 它的前缀
772with the word diagram, so a diagram component.带有图表的单词,所以是一个图表组件。
773Okay, we are cooking with gas now.好吧,我们现在用煤气做饭了。
774So I'm starting to get a real sense所以我开始有了真正的感觉
775for what we're building much, much more than when we started.对于我们正在建设的东西 比开始的时候要多得多
776I'm not feeling the need to end the grilling session just yet.我还没觉得需要结束烤肉会呢
777I'm feeling pretty happy with where we are.我对我们现在的处境很满意
778These are still high quality questions.这些仍然是高质量的问题。
779Okay, it's now asking whether I want to change好吧,它现在问我要不要换衣服
780the way the search works.搜索的方式。
781Q20, no, I disagree.问题20,我不同意
782I still want the way,我还想走
783I want it to work in the diagram playground我想在图游乐场工作
784the exact same as it works in the thumbnail editor.和缩略图编辑器一样
785I like that components have one search我喜欢那些组件有一个搜索
786and then diagrams and diagram snapshots然后是图表和图表快照
787have their own.有他们自己的。
788If we make two subtly different diagram editors,如果我们做了两个不同图编辑器
789that will be very, very annoying那会很烦人
790and users, i.e.和用户,即:
791me, will paper cut themselves我,会剪纸自己
792all the time on it.总是这样
793Q21, what's an insert brings in?问题21 插入会带什么进来?
794Should it inserting a diagram or snapshot如果插入图表或快照
795bring in the whole drawing?带整幅画来?
796Q21, yes.问题21,是的。
797Paste counts as a source too.粘贴也算作源 。
798So what it's saying is if we copy one diagram它的意思是 如果我们复制一个图表
799and then paste it in,然后贴在,
800should we track the snapshot that it came from?我们是否应该追踪它来自的快照?
801Q22, that sounds like a lot of complexity问题22 听起来很复杂
802for a feature that I'm maybe not gonna use that often.我可能不会经常使用这个功能
803So no, I don't think I care about it.所以,不,我不认为我关心它。
804One diagram component library, one UI.一个图组件库,一个UI.
805Should a diagram component saved from the thumbnail是否从缩略图中保存图表组件
806show up in the playground and the reverse?在游乐场出现,反之呢?
807Q23, yes, absolutely.问题23,是的,绝对。
808Next, deleting things that are a source.接下来删除属于源的东西 。
809Today, deleting a video cascades今天,删除一个视频级联
810and hard deletes its thumbnails.并硬删除其缩略图。
811If next week's thumbnail diagram copies shapes如果下周的缩略图复制形状
812from this week's, deleting this week's从本周开始,删除本周
813would break that link, which breaks the not lossy rule.将打破这种联系,打破了不败的规则。
814Q24, yes, thumbnails should be archived instead of deleted.Q24, 是, 缩略图应该存档而不是删除 。
815We kind of want soft delete on everything,我们想要软删除一切
816should be the rule.应该是规则。
817For those who don't know, soft delete,对于不知道,软删除,
818instead of deleting something from a database,而不是从数据库中删除一些东西,
819which would be a hard delete,那确是一件难事,
820you instead mark it with a little marker而不是用小标记标记它
821like archive true or something,譬如真实的档案,
822and then it doesn't show up in the UI之后它不会出现在UI中
823or you build your application so that it doesn't show up.或者你建立你的应用程序 这样它就不会出现。
824Soft deletion is incredibly useful软删除非常有用
825because it means that you can go back因为这意味着你可以回去
826and retrieve that data if you want to.并获取数据 如果你想。
827Whereas if you hard delete, then you're kind of screwed如果你很难删除, 那么,你有点性交
828because it's literally been gone, gone from the system.因为它已经从系统里消失了
829Because this data is really valuable to me,因为这些数据对我很重要
830I pretty much always go with soft delete我几乎总是去 软删除
831and I don't think I have any cleanup mechanism我想我没有任何清理机制
832for like cleaning up old data, I just keep it around.就像清理旧数据一样,我只是保持它周围。
833But in an application with lots of users,但是在一个有很多用户的应用程序里
834then I would want to make sure I'd eventually,然后,我想确保 我最终,
835let's say on a 30 day cycle or something,比如说在30天的周期里
836deleted the stuff that people had soft deleted.删除了人们软删除的内容。
837Okay, it's asking about, should parity come好吧,这是问 关于,如果对等出现
838from extracting the playground's editor取出操场编辑器
839into one shared diagram editor component?输入一个共享图编辑器组件吗 ?
840Q25, yes, absolutely.问题25,是的,绝对的。
841Let's have a single source of truth for this.让我们有一个单一的真相来源。
842Q26, it's saying your step of searching问题26,这是说你的搜索步骤
843for a diagram or snapshot or dropping it in用于图或快照或投影
844doesn't exist yet.现在还不存在
845This feels to me like it's actually untrue.我觉得这不是真的
846It's actually not noticed something about the code,其实它没有注意到 代码的东西,
847which is a little annoying.这有点烦人。
848Q26, I don't think that's true.问题26,我不认为这是真的。
849We already have a like find diagram thing, right?我们已经有一个类似 找到图表的东西,对不对?
850So we would just reuse that, wouldn't we?所以,我们只是重新使用,不是吗?
851Q27, navigation results in the thumbnail editor.Q27,导航结果为缩略图编辑器.
852Q27, yes, I agree, looks great.问题27,是的,我同意,看起来很棒。
853Q28, soft delete everywhere is a separate piece of work.Q28,软删除处处都是单独的作品.
854It's now taking my opinion and kind of running with it.它现在取走我的意见 并有点运行它。
855But I'm pretty sure we already have soft delete everywhere.但我敢肯定,我们已经有 软删除到处。
856Q28, yeah, let's not over scope this.问题28,是的,让我们不要超出这个范围。
857I'm pretty sure we already have soft delete我敢肯定,我们已经有 软删除
858most places that I want it.大部分地方我想要它。
859This is an important part of grilling too,这也是烤肉的重要组成部分
860is like when you're talking about your system,就像你在谈论你的系统时
861you will often find little ways to improve it你经常找不到什么方法改进它
862that might lead to issues that you create on your backlog可能导致你积压的问题
863that you eventually maybe grill about最终你或许会纠缠
864or maybe just like slam through.也许只是像撞穿。
865And so grilling is not only about the feature you're on,所以烧烤不仅仅是关于 你正在上的特点,
866but it's also about staying in touch with the code base.但这也是关于保持 与密码基础的联系。
867It's a ritual, a ceremony for thinking about the code.这是一个仪式,一个思考密码的仪式.
868This is why I spend so long on it.这就是为什么我花了这么长时间。
869Q26, yes, let's add a new action to the existing search.Q26,是的,让我们在现有搜索中添加一个新的动作.
870That sounds great.听起来不错
871Okay, it's now saying, this is a good one.好吧,它现在说, 这是一个很好的。
872So should pass thumbnail diagram show up in the same search?因此,通过缩略图显示在同一搜索中?
873So that's actually pretty neat idea所以,这其实是相当好的主意
874because we probably do want the ability因为我们可能确实想要这个能力
875to search through old thumbnails that we've created通过我们创建的旧缩略图搜索
876since they might be useful in diagrams因为它们可能对图表有用
877and just in the same way以同样的方式
878that diagrams are useful for thumbnails.用于缩略图。
879This is again, exactly the kind of thing再说一次,就是那种事情
880that grilling is really, really good at pulling together.烤肉真的很会拉在一起
881Q29, yes, that is a really smart idea.问题29,是的,这是一个非常聪明的主意。
882You should be able to search for thumbnails您应该可以搜索缩略图
883from or thumbnail diagrams from the diagram playground从图表游乐场或缩略图
884and you should be able to search for diagrams您应该能够搜索图表
885and diagram snapshots from the thumbnail editor.和缩略图编辑器的图示。
886So that is an important thing所以这很重要
887that we need to think about in the data model我们需要在数据模型中思考
888that we weren't really valuing before,我们以前并不重视
889but I think our current model gets us there但我认为我们目前的型号能让我们到达那里
890because thumbnail diagrams are probably gonna be stored因为缩略图可能要存储
891in a separate database table在单独的数据库表格中
892or they might just be an entry on the existing thumbnail.也可能只是现存缩略图上的条目
893So yeah, interesting one.所以,是的,有趣的一个。
894Okay, while we've been talking, the prototype has been built.好吧,虽然我们一直在交谈, 原型已经建造。
895So let's check it out.让我们来看看。
896Okay, here we go.好了,开始了。
897It's pretty surreal.这是相当超现实的。
898It's quite surreal editing a thumbnail for my own face.这是相当超现实的编辑缩略图 为我自己的脸。
899This is very cool.这很酷
900This is pretty similar to what I was imagining here.这和我想象的很相似
901We can move my face like left and right here.我们可以把脸移到左边和右边
902It's a little bit fast there,这里有点快
903but I mean, it is a good one.但是,这是一个很好的。
904And then in the top left,然后在左上方,
905you can actually see a preview您可以看到一个预览
906of the composited photo there, that's nice.里面的合成照片 不错
907And this is only variant A, right?这只是变体A,对不对?
908We've got a couple more variants.又有数种变种.
909So we now have a face inside the canvas, whoa.所以现在画布里有张脸
910This is again, pretty trippy.这又来了,真让人迷惑
911This is actually worse than I thought it was going to be.这比我想象的还要糟
912It's a bit too large.有点太大了
913I really hate this like bar over the left here with the view.我真的很讨厌这里左边的酒吧
914This face thing again, is just way too, whoa.这张脸也是一样
915Okay, B is really not as good好吧,B真的没有那么好
916as I thought it was going to be.就像我想的那样
917And then what's this, a split view.然后是什么,一个分裂的视野。
918Okay, the split view is garbage好吧,分割视图是垃圾
919because I have to like look over on the left here因為我喜歡看左邊
920and then see it update on the right.然后看它更新的右边。
921You can see I'm moving the blue box around你看,我在移动蓝盒子
922and then I have to like manually line it up with my finger然后,我不得不喜欢手动 线用我的手指
923and I can't see my finger.我看不见我的手指。
924This is bad.这是坏的。
925And so I guess A is the one that we're kind of going for here.我想A就是我们要去的地方
926Oh, look at this feature.哦,看看这个特色。
927Look, it has a ghost face while pointer is in the frame.你看,它有一个鬼脸 而指针在框。
928Ghost used as a verb there.鬼在那里用作动词.
929So look, I can like, when the pointer is in the frame,你看,我可以喜欢, 当指针在框中,
930my hand disappears.我的手不见了。
931That's so freaky.这太奇怪了。
932It's annoying that it's showing get license这太烦人了,它显示有执照
933for production there because I do actually have a license.在那里生产 因为我确实有执照
934So something's going wrong there.所以那里出问题了
935So I'm going to dictate out all the things所以我要决定一切
936that I love and hate about this我爱和讨厌这个
937and we're going to iterate with the agent.我们要跟探员一起走
938I really love A.我真的爱A。
939I think you've really nailed something there.我觉得你真的 钉在那里的东西。
940I especially like the ghost face thing.我特别喜欢鬼脸
941That's a nice feature.这是一个不错的特点。
942The moving me left and right.左右动我.
943So moving the face left and right is a little too sensitive.所以左右移动脸部有点过于敏感.
944So just bump that down a little bit.所以,只是碰下来一点点。
945There appears to be in the composited diagram复刻图中似乎有
946a little white line just to the left of, sorry,左边有点白线,对不起
947to the, on the outside of the main block there,在主街区的外面,
948which is not good.这是不好的。
949I also want the composites to display我也希望这些复合材料能展示出来
950below the thumbnail editor.在缩略图编辑器下面。
951We're also missing a lot of the stuff我们还漏了很多东西
952that we've grilled about,我们一直在纠缠,
953such as being able to insert components例如能够插入组件
954and being able to drop in stuff.并且能够掉下来的东西。
955And I'm pretty sure we don't currently have parity我敢肯定,我们目前没有平等
956with the other, with the diagram playground, right?与另一个, 与图游乐场,对不对?
957So we probably need a version of it like that.因此,我们可能需要这样的版本。
958So let's abandon the three variants now.故今弃三种变体.
959Let's just go with A and let's continue to iterate on it.让我们和A一起继续推敲
960It's also got a couple of questions for me还有几个问题要问
961after I've tried it.我试过之后
962So it's saying which surface, I think we've added that.上面说是哪个表面,我想我们添加了这个。
963With Q31, yeah, I want it to live inside the thumbnail page用Q31,是的,我要它活在缩略图页里
964and I think we probably need to see that我觉得我们可能需要看看
965in the next prototype so that we can arrange it在下一个原型,以便我们可以安排它
966on the page properly.在页面上正确。
967{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}应该把脸移开再拍
968be on the same undo history as drawing?和绘画相同吗?
969Oh yeah.对
970Q32, that is genius.Q32,这是天才。
971Really, really smart.真的,真的很聪明。
972Definitely, that's really cool.当然,这真的很酷。
973Cause I don't have an undo history因为我没有历史
974in my current thumbnail editor.在当前缩略图编辑器中。
975So I'm kind of screwed there,所以我有点搞砸了,
976but we kind of get that for free because TLDraw,但我们是免费的 因为TLDraw
977which is the tool that I'm using,这是我用的工具,
978bakes it into its data model.把它制成数据模型
979Very, very, very smart.非常非常非常聪明。
980Okay, so it's now gone and sent the prototype agent back好,现在它不见了,把原型特工送回去
981to it saying, okay, drop B and C,对它说,好吧,B和C,
982put A inside the real thumbnail page, blah, blah, blah.把真正的缩略图页,等等,等等。
983In other words, it's confirming with me all the things换句话说,它证实了我的一切
984that I gave it as feedback我给它反馈
985and it's now implementing all of those.现在它正在执行所有这些。
986This prototyping phase is so, so important这个原型阶段如此重要
987because we really get to stamp how we think the product因为我们真的可以盖印 如何看待产品
988is going to look before we then like actually schedule我们之前会先看一看 然后就喜欢实际的日程安排
989an agent to build it.一个特工来建造它。
990In other words, this time human in the loop换句话说,这次是人环
991with the agent is so essential与代理人是如此重要
992because we're really gonna like reduce the decision space因为我们真的会喜欢 缩小决定空间
993for the agent.给经纪人的
994We're gonna say, no, it has to look exactly like this.我们要说,不,它必须 完全像这样。
995We know exactly the data model.我们完全了解数据模型。
996All the agent then has to do once we run it AFK一旦我们运行AFK,所有特工都要做
997is plug those two things together.将这两件事连接在一起。
998I find it pretty hard to like not get excited我觉得很难不兴奋
999when I see a prototype,当我看到一个原型,
1000when I see things starting to come to life.当我看到事情开始 生命。
1001We've done this grilling,我们做了这个烤肉,
1002which feels kind of a little bit onerous sometimes,有时候感觉有点麻烦
1003a little bit annoying,有点烦人,
1004but when you actually see the thing coming together,但当你真正看到的东西 在一起,
1005you see how it's going to feel to use.你明白用起来的感觉了吧
1006And I'm really doing this.我真的很这样做。
1007This is personal software for me.这是我的个人软件。
1008You know, it's just something to make my life more delightful你知道,这只是一些 使我的生活更快乐
1009and seeing that actually coming together is so exciting.而看到它真的走到一起 是如此令人兴奋。
1010Okay, we are back and we have a new version here好,我们回来了,这里有新版本
1011inside the thumbnail editor.在缩略图编辑器里面。
1012So we've got the YouTube previews down the bottom.因此,我们得到了YouTube的预览 从下面。
1013That's nice.不错
1014The face is in frame here.脸在框里
1015I love that I can resize this actually.我喜欢我可以改变这个尺寸
1016That's something I've never had before.那是我从未有过的
1017Let's switch me around a little bit.我们换个地方吧
1018That is really nice and smooth.这是非常好的和顺的。
1019Yeah, this really, really rocks.是啊,这是真的,真的石头。
1020Now have access to a command palette as well.现在也可以使用命令调色板。
1021So I can insert components.所以我可以插入组件。
1022Let's take a look at the list item here.让我们来看看列表项目在这里。
1023Yes, that's looking excellent.是的,这看起来很棒。
1024I should be able to search for other diagrams我应该能找到其他的图表
1025so I can insert a diagram.所以我可以插入一个图表。
1026So let's just go for a wave finder here.我们来找个浪探
1027And then would you look at that?然后你会看看吗?
1028We've got all of that working too.我们也有办法
1029So let's take a look at the composites.让我们来看看复合材料。
1030We can see, still looks like there's that little white bit我们可以看到,仍然看起来像 有一点点白色
1031just there.就在这里。
1032Let's move me slightly this way,让我们稍微移动我这样,
1033move this so it covers the whole screen.移动这个,它覆盖整个屏幕。
1034Yeah, that's really cool.是啊,这真的很酷。
1035Oh, I love it.哦,我喜欢它。
1036I can still see the little white bar我还能看到小白酒吧
1037on the right of the export,出口权,
1038but overall this is looking a lot better.但总的来说,这看起来好多了。
1039It's also asked me some questions here.这里还问我一些问题
1040Q34, I agree.问题34,我同意。
1041Q35, I agree.问题35,我同意。
1042Who owns the face?脸是谁的?
1043It's an excellent AI sentence.绝妙的AI句子.
1044Very good.很不错。
1045Q36, I agree.问题36,我同意。
1046Q37, I agree.问题37,我同意。
1047Q38, I agree.问题38,我同意。
1048So at this point, the agent is pretty much aligned with us.因此,现在,代理 几乎与我们一致。
1049We now have just sort of one problem to solve我们现在只有一个问题要解决
1050in the prototype.在原型。
1051And I can feel we're nearly at the end我感觉到我们快到了
1052of the grilling session.烧烤会议。
1053Like once I just start going, yes, yes, yes, yes, yes,就像我刚开始去,是的,是的,是的,是的,
1054we are aligned, right?我们结盟了,对吧?
1055The agent is making decisions as if it were me代理在做决定 就像是我
1056and it's making decisions understanding what I care about.它正在做决定 理解我关心的。
1057So this little white bar thing所以这个白色小酒吧的事情
1058is actually showing something pretty nice here.其实是展示一些不错的东西在这里。
1059This is essentially a bug in the prototype.这基本上是原型中的虫子.
1060And this is a bug that could have gone into production这个虫子本来可以生产
1061if we hadn't spotted it, but we have spotted it.如果我们没有发现它, 但我们已经发现了它。
1062So what it's trying to do here所以它想在这里做什么
1063is it's trying to verify its own findings.是它试图验证自己的发现。
1064It's trying to construct a harness around the problem,它试图在问题周围搭建绳索
1065in other words, a reproduction,换句话说,复制,
1066and then it's going to try to fix it,然后它会试图修复它,
1067whatever the issue is.不管问题是什么
1068In other words, it's going to reproduce the bar换句话说,它将复制酒吧
1069in its own browser first,首先在自己的浏览器中
1070then read pixel colors along the right edge of the export然后沿着导出的右边缘读取像素颜色
1071and of each preview.和每个预览。
1072That should tell us where the white comes from.这应该能告诉我们白色是从哪里来的
1073This generation of agents appear to be really,这代人似乎真的
1074really good at this.真的很擅长这个。
1075In other words, verifying their own work really solidly.换句话说,验证他们自己的工作非常可靠。
1076There might be stuff in my home repo,我家里可能有些东西
1077like steering files that tell it to do this,就像引导文件 告诉它这样做,
1078but I'm not quite sure.但我还不太确定
1079I think it is just doing this off its own back.我认为它只是做这个 从自己的背。
1080We can see too that it's opened up the existing subagent.我们也可以看到它打开了现有的副剂.
1081So this one that's currently on 260K tokens here.这个现在有260K的纪念品
1082So this is already punching pretty deep into its dumb zone.这已经深入到了它的哑巴区域。
1083I would probably have preferred it to kick off我可能更喜欢开球
1084a new subagent with just specifically this problem.一个新的副代理 问题就是这个
1085I think that probably would have been better,我觉得这样可能更好
1086but I mean, let's just see how it does但是,让我们看看它是如何做的
1087and see if it manages to find the solution.看看它能不能找到解决办法
1088If it doesn't manage to find the solution,如果它找不到解决方案
1089then I will punch it again那我再来一拳
1090with a new subagent with a clean context.与新副剂 与干净的背景。
1091Everyone's always asking me, by the way,每个人都问我,顺便说一句,
1092oh, do you still stand by the smart zone, dumb zone thing?哦,你仍然站在 智能区,哑巴区的事情?
1093This is my contention,这就是我的论点,
1094and other people have had this contention as before.其他人和以前一样有这种争论。
1095It's not original to me.这对我来说不是原创的
1096来自HumanLayer的Dex Horthy 现在工厂想出了它,
1097which is that when your agent gets to around 150K tokens,也就是当你的经纪人 拿到大约15万个信使时
1098it starts acting a little bit stupider开始有点蠢了
1099and it starts getting slowly dumber and dumber.它开始慢慢地变笨
1100And if you think of what smart zone如果你想到什么是聪明的地方
1101versus dumb zone actually means,对哑区实际上意味着,
1102like what we're talking about there就像我们在谈论那里
1103is that the risk of hallucination slowly raises幻觉的风险慢慢增加
1104the more tokens you add to the context window.在上下文窗口中添加的符号越多。
1105That's because if you imagine each one of these boxes那是因为如果你想象每个盒子
1106is an individual token,是个人的象征,
1107then the model needs to keep track那么模型需要保持跟踪
1108of all of the relationships between every single token.所有关系 每一个符号。
1109And it's not the fact that the number of tokens increases,并不是说信物的数量会增加
1110it's the number of relationships这是关系的数量
1111that the model needs to keep track of该模型需要跟踪
1112just expand quadratically,只要四倍扩张,
1113and you end up with this enormous amount of memory needed你最终会拥有如此巨大的记忆
1114and amount of work needed to hear the signal in the noise.听到噪音中的信号需要大量的工作
1115However, making the models better at this然而,让模型更好的 在这个
1116is essentially an engineering problem, right?本质上是个工程问题,对吧?
1117It's some kind of model design problem有点模型设计问题
1118that I'm sure people are trying to figure out.我敢肯定,人们正在试图弄清楚。
1119And the question everyone always asks me is like,大家都问我的问题就是
1120what number does the dumb zone begin at?哑巴区从哪开始?
1121When should I clear the context?我什么时候才能澄清背景?
1122And my answer is becoming,我的回答是,
1123okay, in previous generations of models, sure.好吧,在前几代的模型,当然。
1124Okay, you pretty much had to clear the context好吧,你几乎必须清除 上下文
1125at 120K sometimes, even like 80K tokens有时在120K,甚至像80K令牌
1126给Sonnet 3.5之类的
1127You know, the number of token relationships你知道,象征关系的数量
1128would just go nuts and you would end up with loads你会发疯,你最后会负载
1129and loads of factuality errors.和大量事实错误。
1130But now it's more like it's a kind of cost但现在更像是一种代价
1131and optimization thing really.和优化的东西真的。
1132You know that your agent will be smarter你知道你的经纪人会更聪明
1133when there are fewer tokens here.当这里有更少的标志。
1134So it's not necessarily about the risk of hallucinations.因此不一定是关于幻觉的风险.
1135It's more like optimizing your agent更像是优化你的经纪人
1136to produce the best work.制作最好的作品。
1137So for me, it's not so much对我来说,这不算什么
1138that the agent produces hallucinations in the dumb zone.毒剂在哑区产生幻觉
1139It's more that it just produces worse work.更多的是,它只是产生更糟糕的工作。
1140And I end up with better results我最后会得到更好的结果
1141when I do my work in the smart zone.当我在智能区工作时
1142Plus operating at like 750K tokens in your context window加上在上下文窗口中运行的 750K 令牌
1143is very, very expensive非常,非常昂贵
1144because even like when your cash runs out,因为即使你的钱用光了
1145all of those previous tokens所有之前的标志
1146are going to be run through again将再次运行
1147and that's gonna be billed again.这会再次被收帐。
1148Okay, the next version of the prototype is ready.好吧,下一个版本的原型已经准备好了。
1149And while it still has this little white thing in it,虽然里面还有这个白色的小东西
1150it actually says that it's not an issue.它实际上说 这不是一个问题。
1151The little bar actually comes from the browser小条其实来自浏览器
1152在Windows 125%的缩放中,
1153Chrome shrinking 120 wide image into the previews,Chrome缩小120幅宽的图像进入预览,
1154left the last pixel column only partly painted.仅保留了最后的像素列部分画。
1155There's some other stuff here like some hazards.这里还有一些东西 像一些危险。
1156I agree with Q39, Q40.我同意Q39,Q40的说法.
1157Yes, drawing edit should auto save the thumbnail.是的, 绘图编辑器应该自动保存缩略图 。
1158And it's now asking whether I want to write it up.现在它问我是否想写出来。
1159So I'm gonna be careful here.所以我会在这里小心。
1160I'm going to go back to the start of this little text input我要回到这个小文字输入的开始
1161and I'm gonna say to spec, let's write it up.我要告诉Spec,让我们把它写出来。
1162I have to go back to the start我必须回去开始
1163because to spec is a user invoked skill.因为Spec是用户引用的技能。
1164So I can invoke it essentially所以,我基本上可以引用它
1165and I have to have it at the start我一定要在开始的时候得到它
1166when I'm using Claude code.当我用克劳德的代码。
1167I can't just sort of scatter it throughout the text input我不能把它分散在文字输入中
1168which is a bit annoying这有点烦人
1169and something I've been wanting them to change我一直希望他们改变
1170for a long time.长久以来
1171To spec, what it's gonna do来看,它会做什么
1172is it's going to create a specification.它会创造一个规格。
1173It's gonna ask me a couple of questions它会问我几个问题
1174about where we're gonna test.关于我们要去测试的地方。
1175And then from there, we'll be able to implement it.然后从那里,我们就可以执行它。
1176I already have a few quite robust reducers我已经有一些相当强大的减员器了
1177and reducers are essentially places in the front end和减压器基本上位于前端
1178where you can contain lots of states together.在那里,你可以包含 很多州在一起。
1179And I find them really, really good with agents我发现他们真的, 真的很好与特工
1180because they can just kind of extend existing ones.因为他们只是可以扩展 现有的。
1181All of those three seams look good.这三个接缝看起来都不错
1182I'm then going to go for the to tickets skill as well.我也会去买票技巧
1183I'd like you to add some tickets too.我也希望你再加点票子
1184Let's just do these in one batch.我们一批就来
1185Now what spec and to tickets do门票和门票怎么办?
1186is they essentially give the agent everything it needs他们基本上给了特工一切需要的东西
1187to run a long running session.运行长会话。
1188The spec acts like a destination document.光谱就像目的地文件
1189So we're essentially running work over multiple sessions所以,我们基本上 运行工作 通过多个会议
1190而Spec会说,
1191okay, once we get to the end of these sessions,好吧,一旦我们到达 结束这些会议,
1192this is where we want to end up.这是我们想要结束的地方。
1193And then the tickets are essentially然后票是基本上
1194about scoping each individual session.关于界定每次届会的范围。
1195┮и┮Τ
1196{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}会拿到一张单张票
1197and that's gonna be the scope of its piece of work.这将是它的工作范围。
1198So here it's given us the proposed breakdown因此,这里它给了我们 拟议的细分
1199of all of the sessions.所有会议。
1200So the first one is like a pre-factor,所以第一个像一个前因子,
1201like extracting the shared diagram editor比如提取共享图编辑器
1202into a shared component, really useful.变成一个共享的组件,真的有用。
1203That's gonna be very handy later.那以后会很方便的
1204Each ticket says what it's blocked by每张票都写着它被什么挡住了
1205and I'm not gonna like review this too much.我不会再喜欢这样了
1206Nine seems fine to me.九似无碍.
1207I'm just gonna say, yep, looks good to me.我只是要说,是啊,看起来不错。
1208Now the plan is that once this is done,现在的计划是,一旦做到这一点,
1209I'm then going to compact.然后,我要去紧凑。
1210So I'm gonna take that entire session,所以我要接整场课
1211the grilling session we've just done, compact it down我们刚刚做的烤肉会 压缩一下
1212and then we're gonna run a skill called implement spec,然后我们要运行一个技能 叫做执行规格,
1213which is going to essentially AFK基本上将是AFK
1214just create all of this stuff and merge it into a single PR.只要创造所有这些东西 并合并到一个单一的公关。
1215And you think of how easy that job is going to be你想想那份工作会有多容易
1216for the agent, right?给经纪人的 对吧?
1217We are gonna have an updated glossary by that point.届时我们将会有最新的词汇表
1218We are going to have an entire spec我们要有一个完整的谱系
1219of the thing it needs to build,它需要建造的东西,
1220all of the tickets on the how it's gonna get there.所有的票 如何到达那里。
1221And we've also got a prototype,我们也有一个原型,
1222which essentially just needs to copy in terms of the UI.基本上只需要复制UI
1223So we've already got a bunch of code written too.我们已经写了一堆密码
1224By the time I get to the spec and the tickets,当我得到的规格和票,
1225by the time I get to implementation,等到我执行完毕
1226like I'm really trying to give the agent碞钩и痷稱倒竒瞶
1227no decision space in which to operate,没有可操作的决定空间,
1228no nuance that it can go, oh yeah,没有细微的,它可以去, 哦,是的,
1229I'll just sort of fiddle around with this.我只是有点闲逛 与这个。
1230Because the more nuance you give to an agent,因为你对特工的细微了解
1231the worse it's going to perform更糟糕的是,它会演出
1232because as soon as you ask an agent to make a decision,因为一旦你要求经纪人做决定
1233it might make a bad decision.它可能会做出一个糟糕的决定。
1234So the more decisions you give it,所以越多的决定,
1235the more decision space it has,决策空间越大
1236the more likely it is to choose a bad one.越有可能选择一个坏的。
1237So I tend to like giving the agent very, very few options所以我喜欢给经纪人很多很少的选择
1238when it comes to implementation,在执行方面,
1239when it comes to the decisions of the features that I want.说到我想要的特征
1240Okay, we now have our spec好吧,我们现在有我们的谱
1241and we can see that this is in GitHub.我们可以看到这是在GitHub。
1242So this is a GitHub issue.因此,这是一个GitHub问题。
1243I have a bunch of user stories here, around 47 of them,我这里有一堆用户故事 大约47个
1244a bunch of implementation decisions,一系列执行决定,
1245a very, very rich document,一个非常,非常丰富的文件,
1246including stuff that's out of scope.包括超出范围的东西
1247We can see it's also referencing the prototype我们可以看到它也参考了原型
1248on the local branch, fantastic.在当地的分支,太棒了。
1249And it then has a bunch of sub issues,然后它有一堆子问题,
1250each of which are the individual tickets.每张票都是个人票。
1251So all of these are individual tasks所以所有这些都是个别的任务
1252and crucially, these can be parallelized.关键是,它们可以平行进行。
1253And so what I'm going to do所以,我要怎么办
1254is I'm going to compact the current conversation我要把现在的对话压缩一下
1255and the words just sort of take all of the context和文字只是排序 所有上下文
1256that we've had so far and squash it down.目前为止,我们已经 并摧毁它。
1257And then I'm going to say implement spec然后我要说 执行谱
1258just on the, essentially just on the spec只是,基本上只是 光谱
1259that it's just created.它只是创造了。
1260I've started using compact a lot more,我开始用紧凑器了
1261actually compact has become a lot more reliable,实际上,紧凑 已经变得更加可靠,
1262a lot nicer to use.更不错的用。
1263I still don't think it's a perfect thing,我还是不认为这是件完美的事情,
1264like auto-compact is still a little bit dodgy就像自动装配 仍然是有点多
1265because the timing sometimes just absolutely wants you,因为时机有时只是绝对想要你
1266something important will be taken out of context.重要的东西将脱离背景。
1267But compact, especially in this situation,但紧凑 尤其是在这种情况下
1268when we've taken the conversation当我们开始谈话时
1269and just turned it into a document,然后把它变成文件
1270is so, so safe, it's almost free.所以,如此安全, 它几乎免费。
1271It's just a kind of like a minute it spends这就像花在一分钟
1272just compacting this conversation and bam,只是把谈话和bam压缩一下
1273we're back down to essentially our starting context.我们基本上回到开始的背景。
1274Now, implement spec is a skill that I've had现在,执行Spec是我的技能
1275for a little while now, I think it came out in V1.3.一会儿,我想它出来了 在V1.3。
1276And this is really, it just takes the spec and the tickets这是真的,它只是拿 光谱和票
1277and it implements them inside our local setup.并在我们本地的机构内执行
1278And when it finishes, which for a piece of work like this当它完成, 对于这样的作品
1279might be like an hour or 45 minutes maybe,也许像一个小时或45分钟,
1280then we're going to end up with a nice PR然后我们会有一个很好的公关
1281that essentially implements the entire thing基本上执行整个事情
1282that is ready to merge.准备合并。
1283So this is the point here where I would step away,所以这就是我要离开的地方
1284where I would trust it to run AFK.我会相信它能运行AFK。
1285It's going to run as much in parallel as it possibly can.它将尽可能平行运行。
1286You can see it's starting the three tickets你可以看到它开始 三张票
1287that can begin now and it's able to pass them现在可以开始了,它可以通过他们
1288very rich context about what needs to happen非常丰富的背景 需要发生什么
1289because it's just a compacted version因为它只是一个压缩版
1290of our original conversation.我们最初的对话。
1291So it knows exactly the parts of the code base that matter,所以它确切地知道 密码基础的部分 这很重要,
1292knows the spec, knows the prototype too.知谱,知原型也.
1293So I'm going to walk away and when I come back,所以我要离开 当我回来时
1294I should have working code.我应该有工作代码。
1295Okay, it's been a little while, we now have a massive PR好久不见,我们有了大公关
1296and we have a code review that has run我们有一个代码审查 运行
1297and found some violations.并发现一些违规行为。
1298We can see the pull request inside the PRs here我们可以看到公关内部的拉动请求
1299for edit a thumbnail diagram in place beside the face.用于编辑面部旁边的缩略图。
1300We can see we've added 21,000 lines of code.我们可以看到我们增加了21,000行代码。
1301I'm looking forward to reviewing that.我期待着审查这一点。
1302And the way that implement spec works执行Spec的方法
1303is it goes away and reviews everything with an agent是它走了,并审查 一切与代理
1304and then it checks against some existing coding standards.然后对照一些现有的编码标准进行核对。
1305You should take a look at the code review skill你应该看看代码审查技巧
1306if you want to see more of that,如果你想看到更多这样的,
1307but basically it found one hard violation但基本上,它发现 一个严重的违反
1308and a couple of cases of scope creep和几例范围爬行案例
1309and then it's fixing them up right now.然后它正在修复他们现在。
1310I'm going to try something I don't usually try here,我要尝试一些 我通常不尝试在这里,
1311which is I think I do want to review this我认为我确实想回顾一下
1312with you guys watching.你们在看
1313And so I think I want to try a different way所以我想尝试另一种方式
1314of breaking down this massive PR into smaller chunks.将这个庞大的公关拆分成小块
1315I don't have a skill for this yet.我还没有这个技能。
1316This isn't something that I do regularly,这不是我经常做的事
1317but for large chunks of work like this但对于大块的工作像这样
1318that I do want to review, this makes sense.我想回顾一下,这是有道理的。
1319Once the review is finished,一旦审查结束
1320I think I want you to break it into smaller chunks我想请你把它分成小块
1321使用叠叠的 diffs 。
1322These smaller chunks ideally should be reviewable这些小块最好可以审查
1323on their own.他们自己。
1324And what that means is that I want them to be那意味着我希望他们成为
1325each a bunch of two-way doors每扇双向门
1326and finish in a final one-way door.然后在最后的单向门里完成。
1327You can look for the definitions of two-way door您可以查找双向门的定义
1328and one-way door inside the PR skill.和单向门 在公关技能。
1329One-way doors and two-way doors,单向门和双向门,
1330it's a really nice analogy.这是一个非常好的类比。
1331It basically means that when you have a PR这基本上意味着当你有公关
1332that is a two-way door,这是双向的门,
1333it means you can merge it and then revert it anytime.它意味着你可以合并它 然后随时还原它。
1334So you can walk through the door这样你就可以走进门了
1335and then walk back through the door.然后从门口走回来
1336Whereas a one-way door is a PR that is merged单向门是合并的公关
1337and then is very difficult to unmerge.然后很难解脱
1338In other words, it might mess with some data.换句话说,它可能会弄乱一些数据。
1339It might speak to an external service.它可能与外部服务。
1340It might expose like a security window它可能会像安全窗口一样暴露
1341that's hard to walk back.那很难走路回去。
1342And agents are pretty good at breaking up massive PRs特工们很擅长破解大规模公关
1343into small PRs.变成小公关
1344So it's given me this chunk of different PRs here.这里有一大堆不同的公关
1345I can tell though that some of them are smaller than others.我看得出来,有些比其他小。
1346It feels like this last one is kind of the big one.感觉上一个有点大
1347Can you give me an estimate of the lines of code你能给我一个代码线的估计数吗?
1348that would be in each PR,在每个公关,
1349since that's really what I want to do here?既然这就是我想在这里做的事?
1350I'm also wondering whether we could utilize feature flags我还在想我们能不能使用地标
1351to make the thumbnail diagram available以提供缩略图
1352and then pull it back later.然后把它拉回来
1353In this situation, I'm kind of cosplaying在这种情况下,我是那种 cosplay
1354as if this is a production system.这就像一个生产系统。
1355I'm kind of pretending as if,我装作...
1356okay, I want to break this huge PR down好吧,我想打破这个巨大的公关
1357into reviewable chunks that we can ship to production进入可审查的块 我们可以运送生产
1358and not have like this big risk when we merge a single PR.当我们合并一个公关时 就不会有这么大的风险
1359Usually when I merge to this repo,通常当我合并到这个repo,
1360because it's only personal software,因为它只是个人软件,
1361I don't have to care that much.我不用这么在乎
1362And I can just go, all right, bam, let's stick it in.我可以去,好吧,巴姆,让我们坚持下去。
1363But because if I'm imagining I've got, you know,但是,因为如果我想象 我得到了,你知道,
1364thousands, hundreds of thousands of users,成千上万的用户,
1365like we really want to make sure production就像我们真的想确保生产
1366is as close to the change as possible.尽可能接近变化。
1367And then once we finally flick it on,然后,一旦我们终于闪开它,
1368it should be relatively seamless.应相对无缝。
1369In other words, we're taking this huge chunk of,换句话说,我们拿了一大块,
1370or taking this a single door或把这个单扇门
1371and turning it into lots of doors,并把它变成许多门,
1372which we can revert as we need to.我们可以随心所欲地恢复它
1373And then finally, we're going to flick it on at the end.最后,我们将在结尾点亮它。
1374Okay, so now it's taken that last PR, the massive one,好吧,现在它采取了 最后一个公关,一个巨大的,
1375and turned it into four smaller ones.化为四小.
1376The upshot of this is it would basically run这的高潮是 它基本上会运行
1377both implementations side by side for a bit.两者并肩执行。
1378And then when we were ready, we would merge the final PR然后,当我们准备好了, 我们将合并 最终PR
1379and then that would turn the flag on.然后会打开国旗。
1380Okay, let's go with this version.好吧,让我们走这个版本。
1381Sounds good to me,听起来不错
1382but only do this once the review has finally fixed its things.但只有在审查最终定下来后 才会这么做
1383Make sure you delegate this work to subagents一定要把这项工作交给副代理
1384since you're a little bit constrained既然你有点被束缚
1385in terms of context window.在上下文窗口方面。
1386So this is exciting.所以这是令人兴奋的。
1387This is kind of an experiment.这是一种实验。
1388Hopefully these are going to be easy to merge individually.希望这些都很容易单独合并。
1389Okay, so we have our first PR of seven here.好吧,我们有我们的第一个 公关7。
1390The first one is literally just the glossary terms,第一个是字面上的术语表
1391diagram component, and ADR 060.图表组件,和 ADR 060。
1392If we take a little more detailed look at this,如果我们仔细看看这个
1393this all looks fine.这看起来很好。
1394And so as this is, this can just go in.这样的话,这个就可以进去了。
1395I'm happy to enable an auto-merge here.我很高兴能在这里自动出现
1396I can press confirm auto-merge and that will now go in我可以按确认自动出现,现在会进入
1397as soon as the CI checks pass.只要CI检查通过
1398And there we go, it has gone in and merged, beautiful.到了,它已经合并,美丽。
1399Next, we have a new PR coming in saying,接下来,我们有一个新的公关 来说,
1400extract the shared diagram editor提取共享图编辑器
1401from the editor or diagram playground.从编辑器或图表游乐场。
1402So just a few files changed here.所以这里只有几个文件改变了。
1403Now, while we're here,现在,当我们在这里的时候,
1404we might as well talk a little bit about human review我们不如谈谈人类审查
1405and like what the purpose of this exercise is.喜欢这个练习的目的是什么。
1406For me in this situation,对我来说,在这种情况下,
1407I'm going to do this human review我要做这个人类评论
1408because I know that you're watching因为我知道你在看
1409and you're interested in how I do human review.你对我的人类评论感兴趣
1410And so I'm going to review every single line,所以我要审查每一行
1411but do, am I saying that you need to但做,我是说 你需要
1412do every single line yourself or review every single line?是每一行自己还是每行审查?
1413No, I don't think you do.不,我不认为你这样做。
1414When I'm reviewing code like this,当我这样审查代码时
1415obviously I want to make sure that it works.显然,我想确保它的工作。
1416And so if this was going out to a production system,所以,如果这是 一个生产系统,
1417then I would clone it locally然后我会在当地复制它
1418or I would get some kind of playground否则我会得到某种游乐场
1419where I could walk through it and check that it works.在那里我可以走过它 并检查它的工作。
1420What I'm actually going to do is I'm going to merge everything我实际上要做的是把一切都合并
1421and then because I'm the only user,然后因为我是唯一的用户,
1422I'm just then going to review it at the end.我到最后再审一遍
1423But the point of checking the code here但这里检查密码的意义
1424is that I'm not just interested in like what the code does.我不只是对代码感兴趣
1425I'm also interested in the system that produced this code.我也对生成这个代码的系统感兴趣.
1426In other words, if I notice that something换句话说,如果我注意到
1427is going wrong inside this code正在此代码中发生错误
1428or there's a pattern that I don't like,或有一个模式 我不喜欢,
1429then what I'd like to do is create like a lint rule那么我想做的是创造出一个规则
1430or something to make sure it doesn't happen again.或者确保不再发生这种事
1431And by don't like, I mean that I want to have a hypothesis不喜欢,我的意思是 我想有一个假设
1432around that thing that I want to change环绕着我想改变的东西
1433that it is affecting my environment影响我的环境
1434my agent operates in in a negative way.我的经纪人以负面方式行事
1435In other words, I can see in this file here换句话说,我可以看到这个文件
1436like the command palette,像命令调色板,
1437I can see there's a huge comment right next to it我看到旁边有个大评论
1438saying the command K command palette表示命令 K 命令调色板
1439mounted inside the active diagrams挂载在活动图表中
1440or rather the shared diagram editor over its canvas.或者在画布上共享图编辑器。
1441I'm kind of not happy about these large comments我有点不高兴 这些大的评论
1442and they are kind of everywhere in my code base他们都在我的密码库里
1443because it's more surface that the agent needs to update.因为毒剂需要更新的表面更多。
1444And so I'm going to add a comment here.因此,我要在这里补充一个评论。
1445I'm gonna say, I'm not really a big fan of these comments我要说,我并不很喜欢这些评论
1446because they leave a huge surface for the agent to update因为他们留下了巨大的表面 供毒剂更新
1447and they don't really add a lot也没什么增加
1448that isn't already explained by the code.密码还没解释清楚
1449I think I'd like you to add something to coding standards我想请你加入一些编码标准
1450to make these comments much less prevalent.使这些评论更为少见。
1451And I think we should have a conversation我觉得我们应该谈谈
1452about maybe banning comments可能禁止评论
1453in certain parts of the code base.在代码基础的某些部分。
1454So I'm gonna comment here所以我要在这里评论
1455and then I'm going to show you然后我要告诉你
1456what I'll do with those comments later on.我以后会怎么处理这些评论。
1457For instance, here, I really don't like the as keyword比如说,这里,我真的不喜欢关键词
1458in TypeScript.在类型脚本中。
1459It can be used to cheat the TypeScript in which I hate.它可以用来欺骗我讨厌的TypeScript.
1460So I want to say a helper function is needed here所以我想说这里需要帮助
1461on what to ban all uses of as not inside shared utilities.何以禁止共享公用事业的所有用途。
1462This is just something I know这是我所知道的
1463因为我是前TypeScript专家
1464I made a course on TypeScript basically.我做了一个课程 关于TypeScript基本上。
1465Again, these docs here just sort of feel pretty gnarly.再说一遍,这些医生只是感觉很不舒服
1466I don't like this.我不喜欢这样
1467You can see how much the diff as we're going through你可以看到我们经历了多少
1468is literally just code comments.仅仅是代码注释。
1469It really is brutal.真的很残酷
1470But overall, this review didn't take too long但总而言之,这次检讨没有花太长时间
1471and I've noticed a couple of things我注意到一些东西
1472that we might need to improve.我们可能需要改进。
1473So next we go to the next PR in the list所以接下来我们去名单上的下一个公关
1474which is just a relatively small change again.这只是一个相对较小的变化了。
1475We've got some reducer testers, which I really, really like.我们有一些减量测试器, 我真的很喜欢。
1476If you've never used a reducer before,如果你从未用过减员器
1477it's just so nice, so easy to work with.它只是这么好, 很容易合作。
1478Again, more comments that I just want to kill, man.再说一遍,我只想杀更多的人
1479This repo is full of comments.此回函充满了评论.
1480There's also another TypeScript thing还有另一个类型脚本
1481that I really don't like,我真的不喜欢,
1482which is using this pick and this and here.用的是这个,这个和这里
1483Prefer using interface extends to using intersections.优先使用接口扩展至使用交叉点.
1484See if you can find a lint rule for this看能不能找到一条规则
1485that we can ratchet.说我们可以调试。
1486That phrasing, by the way, like lint rule,顺便说一句,那句措辞就像规则一样
1487it's asking it to find a deterministic rule它要求它找到一个决定性的规则
1488that we're not necessarily going to impose on day one,我们不一定要强迫第一天,
1489but we're going to ratchet up over time.但我们要逐渐调整
1490Again, so many comments here to review.同样,这里有许多评论要回顾。
1491It's just, it's getting pretty disgusting, I have to say.它只是,它越来越 相当恶心,我不得不说。
1492Another one here is that even in code这里的另一个是,即使代码
1493that is not actually touched by the PR,公关实际上没有触及,
1494I'm noticing it's calling fetch我注意到它叫"收"
1495and then ignoring the results.然后无视结果。
1496And I say it feels like a reusable function is needed here.我认为这里需要一种可重复使用的功能。
1497I'm being pretty harsh in these reviews, right?我对这些评论很严厉,对吧?
1498Like I'm trying to force it to design APIs就像我试图强迫它设计API
1499that remove all of the nuance,以去除一切微细的事物,
1500all of the decisions from the agent.代理商的所有决定
1501Another one here is I can see这里还有一个,我可以看到
1502we have a use search params hook我们有一个搜索参数钩
1503and we're grabbing things using magic strings here.我们用魔力来抓东西
1504It would be very, very easy会非常非常容易
1505to just change the name of this highlight只更改此亮点的名称
1506or this snapshot even.甚至这个快照。
1507And we would get no type errors from it.我们不会从中找到任何类型的错误。
1508Find a more type-safe design找到更安全的设计
1509for the way that we access search parameters,对于我们访问搜索参数的方式,
1510since this feels like a magic strings style hole因为这感觉就像一个神奇的弦式洞
1511that we could potentially fall through.我们可能会跌倒。
1512Create a new lint rule,创建一条新规则,
1513banning the use of use search params.禁止使用用户搜索参数。
1514And then let's create a strategy to ratchet it up.然后我们来创造出一种策略 来调整它。
1515Again, I'm being super ambitious here.再说一遍,我在这里非常有野心
1516I'm saying, okay, everything that we find in here,我是说,我们在这里找到的一切,
1517I never, ever want to see this again.我再也不想看到这个了
1518Never, ever want to loot.从来没有,从来没有想抢劫。
1519Like I want it to lint it out of existence.就像我想把它从存在中抹掉
1520That's my plan.这是我的计划。
1521Next PR again, we're up to 500 lines here.接下来的公关,我们有500行。
1522Gotta say that apart from the comments here,除了这里的评论之外,还要说
1523this is a clean, clean PR.这是干净干净的公关
1524We can see it's taken a bunch of like magic conditionals here我们可以看到它被 一堆像魔法条件在这里
1525and it's replaced them with a single source of truth并用单一的真理取而代之
1526for is diagram search phenomenal.因为图搜索是惊人的。
1527Again, just way too many comments here.再说一遍,这里的评论太多。
1528Too many comments.评论太多。
1529Okay, so I'm now into the, I think penultimate one好吧,所以我现在进入, 我想倒数第二
1530or maybe last but couple, let's see.或也许最后但夫妇, 让我们看看。
1531Yeah, this is still a two-way door thing, I think here.是啊,这仍然是双向的门的事情,我想在这里。
1532And this is now we're getting up to about 2,500 lines.现在我们有大约2500条线路。
1533Now I think you've got the idea现在你有主意了
1534of what I'm reviewing for here,我在这里评论,
1535which is I am trying to give my opinion,我试图表达我的意见,
1536give my feel just by looking at the code.只要看看密码 就能让我感觉到
1537And I think reviews are a good surface for this,我认为评论是很好的表面 这一点,
1538but I'm not gonna consider any of these blocking.但我不会考虑这些障碍
1539In fact, out of all of these PRs,事实上,在所有这些公关中,
1540the only one where I would consider我唯一会考虑的
1541reviewing mandatory is this one.强制审查是这个。
1542This is an additive migration这是一种添加剂的迁移
1543for the thumbnail diagrams concept.用于缩略图概念。
1544And what I wanna see is inside schema.ts here.我想看的是里面的图案
1545This adds the thumbnail diagram into the thumbnails here.在此将缩略图添加到缩略图中 。
1546Ugh, so many fricking comments here, guys.呃,这么多他妈的 评论在这里,伙计们。
1547Comments are also an opportunity for the agent评论也是代理人的机会
1548to do like two specific texts喜欢两个具体文本
1549or text that's specific to its session.或专用于会议的案文。
1550In other words, this session is,换句话说,本届会议是,
1551or this text is basically just like a note for itself或者这个文本 基本上就像一个说明本身
1552in a future session, which is really frustrating在未来的一届会议上,这确实令人沮丧
1553because then that is just gonna live forever,因为那样的话,那会永远活着,
1554that comment, and it's just totally useless.那个评论 完全没用
1555Overall, this looks really solid.总的来说,这看起来真的很扎实。
1556So actually, I'm happy with the one-way stuff所以,实际上,我很高兴 单向的东西
1557as part of this big PR.作为这个大公关的一部分。
1558So what I'm gonna do is go back to my agent session.所以,我要做的是 回到我的经纪人会议。
1559I'm going to compact, and then I'm gonna say,我要去紧凑,然后我要说,
1560could you merge all of those PRs in order, please?你能把这些公关合并一下吗?
1561Ignore all of the review comments for now.暂时忽略所有评论 。
1562We are gonna tackle those in a minute,我们马上就会解决的
1563actually, once everything is merged.实际上,一旦一切都合并。
1564Could you run the merge in a background subagent您可以在背景子代理中运行合并
1565so that we can continue chatting?这样我们才能继续聊天?
1566Okay, let's fire this off.好吧,让我们开火吧。
1567So now that we've decided that the merge is happening,既然我们决定合并了
1568like, I'm gonna assume that in your version of this,喜欢,我会假设 在你的版本这个,
1569you would have actually cloned it locally你本可以在当地复制的
1570or actually checked that it was all working或实际检查 它都是有效的
1571on the final branch.在最后的分支。
1572I'm fine with checking it in a minute.我检查一下就好
1573But what I'm gonna do now is I'm gonna use this session但我现在要做的是 我要用这个会话
1574to fix or make a plan to fix修补或计划修补
1575all of the things I've found during review.我审查时发现的所有东西
1576And for that, I'm gonna use the retro skill.为此,我要使用复古技巧。
1577I'm gonna say, could you take a look at我要说,你能看看
1578all of the agent sessions that ran as part of this?所有代理会话都是作为这个的一部分吗?
1579And could you also pull in my review comments?你也可以引用我的评论吗?
1580And the retro skill essentially runs a retrospective复古的技巧 基本上是一个回顾
1581on the process that we just saw.我们刚刚看到的这个过程
1582Even though we've run compact,虽然我们已经运行紧凑,
1583it still has access to all of the sessions that ran before它仍然可以参加之前的所有会议
1584because they're just saved locally on disk.因为他们只是被保存在磁盘上。
1585它会使用GitHub CLI
1586to pull in all of my comments.来听取我的所有评论
1587So it's gonna have access to that too.所以它也会接触到这个
1588Now, I will usually run retro现在,我通常会回顾
1589after a big chunk of work like this,做这么多事之后
1590or I'll also just run it regularly,或者我也会经常运行它,
1591just checking up on my agent sessions.只是检查一下我的经纪人会议
1592If you have some kind of software factory setup如果你有某种软件厂的设置
1593where you can automate this,在那里你可以自动化这个,
1594then I would save your agent sessions那我就省下你的经纪人会议费
1595somewhere in the cloud.某处云何.
1596And then retro can take a look at those然后回顾一下这些
1597and see what the agent struggled with.看看特工在挣扎什么
1598So it's going off and sending agents所以它要爆炸了,派特工过来
1599through the 30 odd session transcripts通过30个奇数会话记录
1600and your 12 review comments.以及你的12个评论。
1601And it's gonna come back with a ranked list.它会带回一个排行榜。
1602So we're essentially throwing a bunch of tokens at this所以,我们基本上扔 一堆代币在这里
1603and looking for improvements or potential improvements并寻求改进或可能的改进
1604to the environment our agents are operating in.我们的特工们正在进入环境
1605Now, we didn't pay attention at all现在,我们根本没注意
1606to the implementers while they were running.给运行中的执行者。
1607I didn't look at the sub agent traces,我没有看到副探员的痕迹
1608haven't looked at that at all.还没看过呢
1609This is our opportunity to apply some tokens to it这是我们给它用一些符号的机会
1610and actually look at those而实际上看看那些
1611and get some improvements from it.并获得一些改进 从它。
1612Okay, and here we go.好吧,我们开始吧。
1613We have the retro back.我们有回溯。
1614So all 12 of my review comments have one root cause.因此,我的12个评论都有一个根本原因。
1615Nothing in the CVM's written standards cover your points.证监会的书面标准中没有任何内容能涵盖你的点数.
1616The existing code in the docs model do the opposite.文档模型中的现有代码则相反。
1617So existing code in the docs model do the opposite.因此Docs模型中已有的代码是相反的.
1618在Docs前端状态下的 Staffencodingstandards.md,
1619show the patterns you rejected,显示你拒绝的图案,
1620and main already has thousands of instances.而主要案例已经有数千起。
1621Thousands of instances, blimey.成千上万个案例,天啊。
1622Okay, so I am trying to turn an oil tanker around,好吧,所以我试图调转 油轮,
1623apparently, and also the prototype branch was copied.显然,还有原型分支被复制。
1624Okay, so its first recommendation is to turn your comments好吧,所以它的第一个建议是 把你的评论
1625into ratcheted checks.被扣进支票
1626The first one is as outside shared utilities.第一个是外部共享公用事业。
1627Yes, lovely, sounds good.是的,可爱,听起来不错。
1628There, that is 2,000 instances it will find, okay, brutal.在那里,这是2000例 它会发现,好的,野蛮。
1629Intersections into interface extends.交叉到接口扩展.
1630Oh, excellent, has no rule for this, but a small parser,哦,太好了,没有规则 但一个小解析器,
1631so it's basically saying create a custom lint rule所以它基本上是说 创建一个定制规则
1632for this rule, excellent.这个规则,非常好。
1633Next, I said we should kill use effect, lovely job.接下来,我说我们应该杀死 使用效果,可爱的工作。
1634We turn it off for a specific directory, so hooks,我们关闭它 对于一个特定的目录, 所以钩子,
1635and there are currently around 230 use effects in 140 files.目前140个文件中大约有230个使用效果。
1636Next, we have use search params and magic strings,接下来,我们使用搜索参数和魔法弦,
1637so this would point at a new typed search params helper,因此,这将指向一个新的输入搜索参数帮助器,
1638lovely.可爱
1639We ban raw fetch, and instead,我们禁止偷生,相反,
1640we have a typed API client module,我们有输入的API客户端模块,
1641and then it's saying too many comments,然后它说太多的评论,
1642so here, no lint rule fits.所以在这里,没有规则适合。
1643Yeah, I don't know what to do about comments.是啊,我不知道该怎么办 关于评论。
1644I mean, like, Lauren Tan, potato,我的意思是,像,劳伦谭,土豆,
1645says they just ban comments, no comments allowed,说他们只是禁止评论,不允许评论,
1646and I kind of want to go that direction,我想走那个方向
1647but I wonder whether we do that in a phased approach但我想知道我们是否分阶段这样做
1648where we ban comments in certain folders.我们禁止在某些文件夹中发表评论。
1649This is interesting, so 18% of lines of comments这很有趣,所以18%的评论行
1650in the new features diagrams against a 12% repo average.与12%的回波平均值相对应。
165112% of code in my repo is comments,12%的密码在我的Repo是评论,
1652and 20% of the new feature is comments.20%的新功能是评论。
1653It's crazy.太疯狂了
1654Okay, I really like number one.好吧,我真的很喜欢第一。
1655All of those, I think,所有这些,我认为,
1656should be raised as issues on the repo.应作为收回问题提出。
1657Can we also start trialing the no comments rule我们能否开始试验无评论规则
1658in certain folders?在某些文件夹中?
1659And actually, I want you to give me your opinion其实,我希望你给我你的意见
1660on what we would lose inside features diagrams里面的特征图
1661if we just deleted all the comments immediately.如果我们马上删除所有评论。
1662Is there any information contained within the comments评论意见中是否载有任何信息。
1663that cannot be divined from the code itself?这不能从密码本身得到启示?
1664Okay, number two, it says fix the docs好,第二,它说修复文件
1665that teach the rejected patterns.教那些被排斥的图案
1666Obviously, yes.显然,是的。
1667Number three, prototype code was copied第三,原型代码被复制了
1668and not re-implemented.而不复执行.
1669Yeah, this is interesting.是啊,这是有趣的。
1670So it's actually recommending a change to my skills所以实际上它建议改变我的能力
1671about the prototype skill关于原型技能
1672and the implement spec implementer brief.以及执行 spec 执行者简介。
1673For number three, could you raise an issue第三个,你能提出一个问题吗?
1674on the Matt Pocock skills repo?在马特·波考克的技能回波?
1675By the way, this is often how my skills get improved,顺便说一下,这经常是 如何提高我的技能,
1676is I raise issues about my own skills我对自己的能力提出问题
1677based on what I find in these retros,根据我在这回想中发现的
1678and they get subtly improved.并得到了很好的改进。
1679The reviewer can't cover a big diff with one agent.审查员不能用一个代理来覆盖一个大diff.
1680Yep, so this is the code review skill,是的,所以这是代码审查技巧,
1681kind of not being able to perform at its limits.那种不能发挥的极限。
1682Can you raise an issue for number four, please?你能提出一个问题 四号,好吗?
1683And I think there might be an existing issue,我认为可能有一个问题,
1684so maybe you can just add this所以,也许你可以 只是添加这个
1685as a kind of extra reason for me to look at it.作为某种额外的理由 让我看看它。
1686There's an argument to say that you should do,有个论点说,你应该这样做,
1687instead of doing automated review on the spec,而不是进行自动审查
1688you should do it on every single ticket,你应该在每张票上做,
1689but I found that that's just extraordinarily slow.但我发现这太慢了
1690It's an absolutely hugely slow approach,这是一个非常缓慢的方法,
1691but it looks like the code review skill但它看起来像代码审查技巧
1692is kind of like taken under a 400 word limit,就像是在400字限制下
1693which doesn't make sense to me.这对我来说不合理。
1694So I think maybe the code review skill might need to change,所以我想也许代码审查技巧 可能需要改变,
1695might need to divide more chunks of it into subagents可能需要将更多的块块分成子剂
1696so that it can more easily do it.以便它更容易地做到这一点。
1697Okay, it's asking some stuff好吧,它问一些东西
1698about the implement spec skill, meh.关于执行技术,meh。
1699With number six, I really like that idea.第六,我真的很喜欢这个主意。
1700It's basically saying that in implement spec,它基本上说,在 执行 spec,
1701it creates a merger agent too early,它创建合并代理太早,
1702it should just try to like merge it in directly.它应该只是尝试 把它直接合并起来。
1703For number seven, could you raise an issue about this七号,你能提出一个问题吗?
1704and see if we can hill climb towards like a faster suite.看看我们能不能爬到一个更快的套房里
17058号,我叫CVM
1706which basically kicks in every time I want to verify基本上每一次我都要核实
1707some code or an implementation on the CVM.一些代码或CVM上的执行.
1708It runs it inside a browser, does all sorts of stuff.它在浏览器里运行, 做各种事情。
1709Okay, could you add eight as an issue?好吧,你能加八作为一个问题吗?
1710And all of number nine, all the smaller items和所有9号, 所有较小的物品
1711should be added as separate issues, that all looks great.应该作为单独问题添加,这看起来都很好。
1712So honestly, this retro was extremely, extremely good.老实说,这次回顾非常非常精彩
1713I think we might get like 20 issues out of this.我想我们可能会有20个问题
1714Things that can go like,事情可以去喜欢,
1715that we probably don't have to grill on,可能我们不用纠缠,
1716things that we can just pass off to agents我们能传递给特工的东西
1717and get PRs back from,把公关拿回来,
1718that will over time slowly improve the repo.随着时间的推移,这将缓慢地改善回购。
1719While this has been running, our agent has been merging.我们的经纪人一直在合并
1720It looks like it's just sort of waiting看起来只是等待而已
1721for all of the CI checks to complete完成所有CI检查
1722and then it just merges each one in turn.然后,它只是合并 每一个依次。
1723All right, while that's going on,好吧,虽然这样,
1724we have our comment audit has come back.我们的评论审计回来了
1725So it's saying of about 2000 lines of comments,也就是说大约2000行的评论
1726about 940 can go now and about 1000 explain a reason大约940可以去 现在和大约1000 解释一个原因
1727you can't see in the code.你看不到密码
1728It says seven comments are already stale, there you go.上面说7条评论已经僵化了,就这样
1729而且没有 ESLint 禁用
1730or TS expect error directives to worry about.或TS期望错误指示会担心.
1731Okay, let me lay into the agent for a second.好吧,让我躺下 代理一秒钟。
1732The thing that concerns me about comments关于评论的事
1733is that they allow workarounds to proliferate也就是他们允许工作周而复始
1734and the comments kind of act as a fig leaf和评论 那种作为无花果叶
1735that the agent is able to put there经纪人可以放在那里
1736and say, look, this is fine说,你看,这很好
1737because we've got an explanatory comment.因为我们有一个解释性的评论。
1738The idea behind lots of folks like Lauren Tan像Lauren Tan这样的人背后的想法
1739is that the comments are actually a safety valve评论其实是安全阀
1740that you are using too often,你经常使用,
1741that you're basically saying,你基本上说,
1742okay, because I've got this comment,好吧,因为我有这个评论,
1743I'm allowed to do the workaround.我被允许四处工作
1744Whereas if you were banned from doing the comment,如果你被禁止做评论,
1745you might actually not take the workaround.其实你可能不会去上班
1746All this to say, what I would like you to do所有这一切来表达,我想你做什么
1747is to tell me which of these could be moved into ADRs,告诉我哪一个可以搬进ADRs
1748which of these could actually just become non-workarounds.这其中哪些可能只是 成为非工作。
1749In other words, use something you don't need a comment for换句话说 用你不需要评论的东西
1750and which of them could just disappear他们中谁可以消失
1751because they're not actually needed因为实际上不需要它们
1752or you can actually infer it from the code.或者你可以从代码中推断出来
1753I want you to be more aggressive here.我要你在这里更冲动
1754Let's see what it says here.看看上面写了什么
1755I don't know, let's see.我不知道,让我们看看。
1756Guess what?你猜怎么着?
1757It agrees with me.它同意我的观点。
1758The comment next to a workaround often marks a place工作旁的评语 经常是一个地方
1759where the code should have been designed differently,代码的设计应该不同,
1760not explained.未解释。
1761It's guessing that the TL draw and command K quirks猜想TL画和指挥K怪兽
1762mostly become adapter wrappers.大多成为适配器包装器.
1763The race constraints mostly become test names.种族限制大多成为测试名称.
1764Yeah, that's a legitimate place to have some kind of like是啊,这是一个合法的地方 有某种喜欢
1765free text is just like the name of a test.免费文本就像测试的名称。
1766And while that has happened,虽然发生了这种事,
1767our PR, the mega PR stack has now been merged to production.我们的公关,巨型公关 已经合并到生产。
1768So I've got this loaded up.所以,我得到了这个装填。
1769We should be able to capture my face here.我们应该能抓住我的脸
1770And there we go.就这样
1771We have my face and we can see that I can add text我们有我的脸,我们可以看到 我可以添加文本
1772to the thumbnail like this.像这样的拇指。
1773So I can add a big box here所以我可以在这里加一个大盒子
1774that my hand is kind of pointing to.我的手有点指向。
1775I can go all the way down我可以一路下来
1776and I can see that is how it's going to look.我看得出来 事情会是这样的
1777There's like a button here saying a dark panel这里好像有个按钮 说暗面板
1778behind the drawing.画的后面。
1779So I can take that out or put that in if I want to.如果我想的话 我可以把它拿出来或者放进去
1780And I mean, it's pretty good guys.我的意思是,这是相当好的人。
1781Like that is not bad.感觉不错
1782If I exit out to here,如果我离开这里,
1783then we can see my thumbnail is ready to go.然后,我们可以看到我的拇指 准备好了。
1784I can select it when I then upload it to YouTube.当我上传到YouTube时 我可以选择
1785I can click back through and edit it我可以点击回来编辑它
1786and back we are should be back to this screen here.我们回到了这里的屏幕。
1787Nice.不错
1788So you can see exactly how much fidelity it has这样你就能看清它有多忠诚
1789to the prototype that we created.到我们的原型。
1790It seems to be working okay.似乎还行
1791I probably do have some light follow-up feedback here我可能有些小的反馈
1792but overall, yeah, I can insert icons.但总的来说 我可以插入图标
1793Let's just add this one for instance, bam, like that.举个例子吧,巴姆,像这样
1794Put that on my finger, lovely.放在我的手指上,可爱。
1795And there we go.就这样
1796Just like that, I've built a feature,就这样,我做了个特写
1797something that I will enjoy using我会喜欢使用的东西
1798for the rest of the time that I use this application.剩下的时间,我使用这个应用程序。
1799And inside our agents view here, we can see that, yes, okay.在我们的特工眼里,我们可以看到,是的,好的。
1800When I tell it to be more aggressive,当我叫它更具攻击性时
1801it says 22 can simply be deleted.它说22 可以简单地删除。
1802There are 18 workarounds that need changing.有18个工作需要改变。
1803Look at that.看看这个。
1804I mean, that is wild.我的意思是,这是野性的。
1805I feel like there might be a skill here, you know,我觉得这里可能有些技巧
1806like just looking at all of your comments就像看着你的所有评论
1807that are in the repo and just using those as smells在回放中,只是用这些闻起来
1808and just say, okay, sniff, sniff, sniff,并只是说,好,嗅,嗅,嗅,
1809take a look at that comment,看看这个评论,
1810see what workaround it's describing.看看它在描述什么
1811Can we just get rid of the workaround,我们能不能把工作弄走?
1812get rid of the comment?消除评论?
1813And it does say that there are three ADRs.它确实说有三个ADR。
1814Yeah, there you go.是啊,给你。
1815So CVM custom shapes are a persistence contract,因此,CVM定制形状是一种持久性合同,
1816face cam centering is tuned by eye,脸部摄像头中心是用眼睛调制的,
1817diagram PNGs render in the running app.图表 PNG 在运行的应用程序中渲染 。
1818All three of which I agree make good ADRs.我同意这三件事都做得很好
1819And it's giving me a suggested PR order here.它给了我一个建议 公关令在这里。
1820So let's prompt it one more time just to tie this up.所以,让我们再次敦促它 只是把它绑起来。
1821I want you to take all of these findings我要你把这些发现都带走
1822and put them in one more issue把它们放在另一个问题里
1823that will be the kind of umbrella issue for this idea.这将是这种想法的总括问题。
1824And that, as they say, is that.正如他们说的,这就是。
1825Now, what I would do next is I would go into the thing现在,我接下来要做的是 我会去的东西
1826that I just created.我刚刚创造了。
1827I would try to find anything that I could improve我会试着找到任何我能改进的东西
1828and QA it, and then those would go into issues和质量保证,然后这些会进入问题
1829which I would then just slam through with an agent,之后我就会和一个探员打通电话
1830probably not even grill them.可能连烤肉都没有
1831I would then go back through the issues,然后,我会回到问题,
1832get my agent to take a look at all of them让我的经纪人看看他们
1833and turn those into code-based improvements.把它们变成基于代码的改进。
1834And all of those, I would expect the diff所有这些,我期望diff
1835to be really, really small变得非常,非常小
1836and so I could just one-shot them.所以我可以一枪就打
1837But that is it, folks.但就是这样,伙计们。
1838Hopefully you enjoyed this kind of deeper dive希望你喜欢这种深度潜水
1839of me actually walking through how I do things.其实我走 通过如何做事情。
1840And hopefully you get a good sense希望你们有好感
1841for where I am most valuable in this process.我在这个过程中最有价值的地方
1842I'm most valuable early on in the alignment phase我最有价值 早期在调整阶段
1843where we talk through everything.在那里,我们谈论的一切。
1844We get alignment.我们得到对齐。
1845I understand exactly what's being built.我完全理解正在建造的东西。
1846I create a prototype.我创造了一个原型。
1847We figure that all out together.我们一起解决
1848And then I am really useful at the end然后,我真的很有用 在结尾
1849where my technical expertise can come in我的技术专长可以进来
1850and I can impose my coding standards.我可以强加我的编码标准。
1851And I can say, no, that looks bad.我可以说,不,这看起来很糟糕。
1852Let's do this instead.让我们做这个代替。
1853In other words, grilling and retro换句话说,烧烤和复古
1854are really the two main points其实是两个要点
1855at which I interact with the system.我在其中与系统互动。
1856And then, of course, QA and putting in my taste,然后,当然,QA和让我的口味,
1857making sure that everything feels right确保一切都好
1858and is working how I want it to.并且正按照我的意愿运作
1859But thank you so much for watching.不过谢谢你的观看
1860Hopefully you enjoyed this, wow,希望你喜欢这个,哇,
1861nearly hour and 10 minute video so far近一小时零十分钟的录像
1862and that you learned something from it.你从中学到了什么
1863I love doing these deep dives.我喜欢做这些深潜。
1864I don't get enough time to do them.我没有足够的时间做他们。
1865So if you like this, then do share it with your friends所以,如果你喜欢这样, 那就和你的朋友分享吧
1866and that will incentivize me to make more of them.这会激励我多做一些
1867Thanks so much for watching.谢谢你的观看
1868See you very soon.再见
该视频共有字幕 1868 条。解锁更多字幕为会员功能,请移动到 价格