シャドーイング練習: All Code Is Slop (Except Mine) — Lauren Tan, SpaceXSI - 動画で英語スピーキングを学ぶ

練習モードを選ぶ

各モードは全画面の練習ルームで開きます。

212 文
文が短すぎたり長すぎる場合は、Editをタップして調整してください。
1
All right.
2
So again, my name is Potato.
3
I work on GropBot at SpaceX SI.
4
And can I ask you a quick show of hands, how many of you have ever looked at code that somebody else wrote and you thought,
5
that's all slop.
6
Well, I have two.
7
But today I'm going to convince you that you can turn that slop into gold.
8
And so I did something crazy last month and I shipped 3 ,000 Ploycrest to production.
9
Now before agents we never really cared about volume except for the outliers.
10
And at my previous company
11
we called these people coding machines people like brett taylor who
12
famously rewrote all of google maps in a weekend just an insanely productive engineer
13
and well with agents anyone can now be a coding machine
14
and my thesis is
15
that the job of the software engineer the meta of being a software engineer is figuring out how to maintain
16
or even improve the quality of your code
17
while massively increasing your productivity to get there some people like to call this a software factory
18
but i like to keep it simple
19
and i think of it as all about trust not blind trust
20
but investing in your agent's environment so you can trust that your agents are going to do the right thing
21
now it takes quite a lot of effort to get there
22
and it took me six months to get to a point
23
where I could ship thousands of pull requests a lot of them in my sleep
24
but it's certainly possible and it will take you much less time than I did
25
so let's start by talking about how we move from a low trust environment to a high trust one
26
so this inverse pyramid is how I think about where to
27
spend time on your agents environment the first two layers are deterministic
28
so using your code itself so things like good api design architecture refactoring
29
or using lint rules type systems compilers or you know different kinds of testing
30
and you can use both of these layers together to constrain what agents can do
31
and force them to do the right thing by default
32
verification both runtime and formal are great tools to layer on to find bugs
33
and check properties and the invariants in your system that you want to hold true,
34
and also help you check whether or not the agent understood your goals and your intent.
35
And then finally you want to layer with a little bit of pros, so things like rules, skills, agents .md, things that require judgment.
36
But let's start with your codebase.
37
Agents generate their outputs based on their inputs, and so the quality of the input really matters and it just
38
so happens that your code base is one of the largest inputs
39
so whenever you're correcting your agent think about how you can make
40
that a deterministic check instead of adding another line to your rules
41
or your agents .md because it's far more reproducible
42
when it's in code and it lets you trust it more
43
and the analogy that i like to use is
44
that your code base is kind of like a garden
45
you know code used to arrive a few pull requests at a time
46
and i remember going into work in 2024
47
and reviewing the three pull requests that my colleagues wrote colleagues wrote and today that number is more like 300.
48
so you know every engineer is now a team of hundreds
49
or even thousands of agents and code is arriving so rapidly
50
that it almost feels like a continuous stream and it almost feels organic like a living thing
51
and in this analogy your code base the constraints
52
that you impose the guardrails that you put up are the concrete foundations
53
that the new code that your agents write grow around just like the building in this picture
54
and so in many ways the job of being a software engineer is kind of becoming like gardening
55
because code is the biggest input for agents it means that any workarounds,
56
anti -patterns, deprecated code, tech depth,
57
it's now likely to be just copied by the next agent since it looks like the established pattern in your codebase.
58
And it's like you have some weeds or pests growing in your garden and then they spread everywhere before you know it.
59
So you want to make your codebase as pristine as possible so that agents are always copying the good stuff.
60
All right, let's look at some real examples.
61
So Dune is a client framework that we created for GroffBot to implement this idea for organic architecture.
62
It's not really that interesting technically.
63
You can kind of think of Dune as kind of like
64
Next .js for electron apps.
65
But the interesting part of Dune is that it has a lot of constraints
66
and lit rules that we've encoded a lot of the lessons that we've learned building desktop applications.
67
And one such lesson is that anything that requires nuance to use well often leads to slow.
68
Well, your classic example is useEffect in React.
69
It has its use cases, but it's often misused.
70
Some people joke that you need a PhD to use useEffect.
71
And in other words, it really requires a lot of nuance to use well.
72
And agents are not good at using it.
73
So our solution has been to just ban it in product code.
74
And it's really only allowed in some places is inside of Dune APIs.
75
And effectively, this problem has now been categorically eliminated.
76
And we never need to catch that during code review again.
77
Another interesting pattern that we use is context through directory structure.
78
So one anti -pattern that we saw with Cursor, which is an electron app,
79
is that agents would often import main thread code into the render thread, which would cause long tasks and jank.
80
So in Grokbot and in DuneApps, we've made this very, very conventional.
81
We have these two top -level directories, literally called ElectronRenderer and ElectronMain,
82
and imports between them are forbidden or banned by our dependency graph analyzer and some lint rules.
83
And again, these are simple lint rules to set up, but it means one less thing that we need to review and think about during CodeView.
84
And then one more surprising thing that I've seen is agents using markdown.
85
So things like documentation, code comments, rules or skills.
86
And they use this as a place to write down their justifications for not doing the right thing.
87
Or, I don't know if you've ever seen this, but they'll over -rotate on some small correction that you made,
88
and they treat it like a hard rule that can never be broken ever again.
89
And here's another example from Cursor.
90
so agents really loved using imperative timers
91
so things like set timeout request animation frame request idle callback
92
and they were using these as quick fixes
93
because they were really patching over an architecture clash between uh vs code's imperative style and reacts declarative style
94
so our choice of architecture actually made both the client and the agent performance much worse
95
And if you've ever done any performance work in JavaScript, you'll know that when you have tons of timers being rapidly created and destroyed,
96
it causes a lot of major garbage collection, which causes a lot of lag and jang.
97
But the worst part is that agents wrote a lot of code comments, like you can see in red here,
98
explaining why this quick fix was justified.
99
And before you know it, we had timers spreading everywhere, and the performance of the app really suffered.
100
Now in GrokBot, we learned our lesson there and we decided to just ban 99 % of comments
101
because they go stale easily.
102
Humans just really don't bother reading the comment slop anyway.
103
And again, it gives an agent an escape hatch to justify not doing the right thing because it's hard.
104
And the worst part about comments, though, is that they're not enforceable.
105
So what seems well intentioned, you know, like I'm going to tell the next agent not to do something,
106
never ends up actually being anything that you can trust.
107
So in GrokBot and Dune,
108
we now have lint rules that give good and very helpful error messages telling the agent to fix the root cause,
109
the real problem, rather than just patch around it.
110
And so our general principle is that every time we correct our agents, it turns into one of these deterministic checks,
111
Or we think about how to categorically eliminate that problem in the code through better API design, through better architecture.
112
And if you do this enough times, you'll find that you have just less things to look out for in code review.
113
And at some point you realize there's nothing left to review.
114
And you can just let agents merge most of their own pull requests.
115
all right uh moving on verification is also a really big part of how we make our agents more autonomous
116
and also increase our confidence and trust in their work
117
and our code review process has now really shrunk into looking at verification artifacts instead
118
so things like videos screenshots diagrams formal verification
119
And the most basic example of this is runtime verification,
120
which is just a fancy way of saying giving your agent a way to run the code for itself
121
and use debugging tools that human developers use as well, like the Chrome DevTools protocol.
122
In our runtime verification skills, we have this thing that we call a feature map.
123
And that's basically kind of like a sitemap of all of the features
124
that are available in your application from the user's point of view
125
and so with this agents don't need to guess
126
when you say you know the thingy
127
and the left sidebar it gives you some shared vocabulary
128
and we also make use of custom CLIs inside these skills
129
so that agents can reuse the CLI and the driver every time
130
which cuts down on token usage and is also testable
131
and then recently we've also started looking at formal verification
132
so we now use TLA plus to do some model checking
133
of major user flows such as notifications across multiple devices and platforms.
134
We use a lean as well for proving certain algorithms.
135
For example, we have our own, we wrote our own custom virtualization library and we use lean there to check
136
that we don't have you know flickering or jittering problems.
137
And we're still experimenting with this approach overall.
138
It seems very promising.
139
We've already found quite a few bugs with formal verification.
140
But it's certainly not a silver bullet, and we're treating it as another tool, another layer in our agent's environment.
141
And then this is a very fast video, but another thing that we just started looking at is property -based testing as well for UIs.
142
So we use this library called Bombadil, and this has also caught a few UI bugs for us already.
143
okay so zooming out I saw this tweet from Cindy
144
and six months ago she said
145
that she was she was talking about not being able to trust her agents
146
because of subtle bugs that were getting merged
147
and really what was missing for her in being able to trust her agents was the verification process
148
and now six months later she says
149
that 70 % of her daily tokens go into verification
150
and I'd say that that tracks with what i see as well that most of my token usage goes to verification
151
and if you really look closely at our process none of these things here are new
152
or novel techniques that we've never had before these are just good software engineering tools
153
but ones that might have been prohibitively expensive to use before as they were hard to understand
154
or write or maintain but agents drastically cut this cost down
155
and really we're entering a golden age of of software testing and verification,
156
because agents let us test everything to a much greater degree than used to be economical.
157
And then formal verification can also help you better reason about how your product should work
158
and whether your agents really understand your intent and goals.
159
I made this new skill called State Chart in my plugin potato stack,
160
which helps you visualize state machines from the user's point of view.
161
And I find this much easier to review alongside the videos and screenshots that we provide.
162
And so that's been great.
163
Sorry for the flashback.
164
Okay, now let's look at what the promised land looks like.
165
What do you get in return for all of this, you know, investment?
166
So on the Groffbot team, our velocity is taking off and rapidly increasing.
167
And last month, our team shipped
168
a ridiculous 11 000 pull requests to production which is a wild number
169
and our pace of releasing the client has also increased and we cut a new stable version about once a day
170
and then the core team is also shipping much more
171
and we also have a lot more casual
172
or drive -by contributors who don't always have a lot of context but they're also contributing
173
And in October, we had about 227 people who contributed at least one pull request.
174
So despite this velocity accelerating, you might be thinking to yourself, like, isn't this going to be chaos?
175
You know, isn't this going to be a bunch of slop?
176
But actually, the number of PRs
177
that get reverted has actually gotten lower on a relative basis and is steady at about half a percent.
178
But I think the really interesting thing about this this shipping pace and this volume of pull requests
179
is that the performance of GroffBot has stayed not just stable, but has improved on multiple dimensions compared to when we launched.
180
So startup, typing, opening new chats, switching chats, all of this has gotten faster.
181
And keep in mind, GroffBot is still an electron app for now.
182
So there is a ceiling, right?
183
But it's already much faster than many other Asian UIs out there.
184
And for an election app with this high velocity and this many people contributing, I'd say that's pretty good.
185
So before you jump into building out a software factory and automating everything that you can, whenever you correct your agent,
186
try and do it by improving your code base first.
187
Start with a lint rule to prevent new occurrences of anti -patterns, and then clean up those old patterns as well.
188
And then make sure that your verification story is really strong.
189
a lot of this work is a prerequisite to automation anyway
190
and if your inner coding loop produces slop then automating
191
that loop just produces more slop and you need to throw more
192
and more and more tokens at the problem
193
which we all know is very expensive
194
and once you meet these investments into you know code into your code base static analysis runtime informal verification
195
you'll start to find that many things become possible with these foundations
196
and that you can really easily build your own factory on top of these foundations.
197
And when you're ready, GropBot is a great way to build that outer loop.
198
We have tons of connectors, routines that can kick off cursor,
199
cloud agents, and projects which let you orchestrate thousands of hundreds or even thousands of agents.
200
And as a quick example, whenever we cut a new release now, Grockbot will automatically spin up a new cursor project for us
201
that will fuzz the entire application the entire build
202
and it will find bugs by running the app
203
and using it like a real user
204
and then it's gonna open fixed PRS for each of those bugs
205
that it finds and it's gonna auto merge it as crazy as
206
that sounds and that's because our code base is good enough
207
that pull requests tend to just be good by default
208
and most product code that we land no longer really requires deep human review
209
so when you have solid foundations and good organic architecture
210
you can turn slop into gold
211
and you can ship with high quality uh high velocity without
212
compromising on quality my name is potato also known as lauren thanks you again for listening to my talk

アプリをダウンロード

流暢に話すために必要なすべて

AI発音採点文ごとに採点
IPA練習すべての音をマスター
単語学習自分の単語帳を作る
単語ゲーム遊びながら覚える

同じチャンネル

FOR YOU

おすすめ動画

このレッスンの語彙とスピーキングのポイント

このスピーキングレッスンは、動画「All Code Is Slop (Except Mine) — Lauren Tan, SpaceXSI」を教材にしています。 繰り返し出てくる語は次のとおりです:agent, code, verification。 この動画には、シャドーイング用の文が212文、単語が2737語あります。 音声の長さは17:01です。 話す速さは1分あたり約161語で、日常会話に近い自然なペースです。 単語の83%は英語の頻出3,000語に含まれます。残りは練習の前に確認しておきましょう。

この動画の重要語彙

動画に出てくる覚えておきたい単語15語を、発音と意味つきで紹介します。

単語発音意味
verification 名詞/ˌvɛ.ɹə.fɪˈkeɪ.ʃən/確証, 検証
architecture 名詞/ˈɑː.kɪˌtɛk.t͡ʃə/建築, 建築学
bug 名詞/bʌɡ/虫
formal 形容詞/ˈfɔɹməl/正式, 公式
layer 名詞/ˈleɪ̯ɚ/層, 膜
velocity 名詞/vəˈlɑsəti/速度
token 名詞/ˈtoʊkən/トークン
lesson 名詞/ˈlɛs.ən/授業, 学科
organic 形容詞/ɔːˈɡænɪk/有機
contribute 動詞/kənˈtɹɪb.jut/貢献する
loop 名詞/luːp/ループ
potato 名詞/pəˈteɪ.təʊ/じゃがいも, 馬鈴薯
electron 名詞/ɪˈlɛk.tɹɑn/電子
merge 動詞/mɝd͡ʒ/合わせる, 合併する
timer 名詞/ˈtaɪmɚ/タイマー

動画に出てくる句動詞

単語発音意味
clean up 動詞掃除する
take off 動詞脱ぐ
write down 動詞書き留める, 記す
zoom out 動詞/ˌzuːm ˈaʊt/ズームアウトする, 縮小する

この動画の文法

話し手がよく使っている文型を、動画の実際の表現とともに紹介します。

文型動画での表現
条件文 if + 節, will/would + 動詞 — 条件とその結果if you do this enough times, you'll find
現在完了形 have/has + 過去分詞 — 過去の出来事が今も関係しているhave ever looked · we've encoded · has been
受動態 be + 過去分詞 — 誰がするかより、何が起きるかに焦点を当てるbe just copied · been categorically eliminated · are forbidden
関係詞節 who / which + 節 — 人や物について情報を加えるCursor, which is · production which is · people who contributed

注意したい発音

話し手はwe've, don't, we'reなど、短縮形や弱形を33回使っています。聞こえたとおりの短い形で発音しましょう。

  • 「th」の音: thread /ˈθɹɛd/, bother /ˈbɑðɚ/, thesis /ˈθisɪs/, algorithm /ˈælɡəɹɪðm̩/
  • 「sh」と「zh」の音: verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, screenshot /ˈskriːn.ʃɑt/, intention /ɪnˈtɛnʃn̩/, conventional /kənˈvɛnʃənl̩/, casual /ˈkæʒ(u)əl/
  • 長い単語(アクセントの位置に注意): verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, architecture /ˈɑː.kɪˌtɛk.t͡ʃə/, velocity /vəˈlɑsəti/, eliminate /ɪˈlɪm.ɪ.neɪt/, directory /dɪˈɹɛktəɹi/

日本語話者が苦手な音:

  • /r/ と /l/ の区別 — /l/ は舌先を歯茎につけ、/r/ はどこにもつけない: formal /ˈfɔɹməl/, rapidly /ˈɹæpɪdli/, electron /ɪˈlɛk.tɹɑn/, relative /ˈɹɛl.ə.tɪv/, ridiculous /ɹɪˈdɪk.jə.ləs/
  • /v/ — /b/ にならないように、上の歯を下唇に当てる: verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, velocity /vəˈlɑsəti/, arrive /əˈɹaɪv/, imperative /ɪmˈpɛɹ.ə.tɪv/, relative /ˈɹɛl.ə.tɪv/
  • /f/ — 「フ」ではなく、上の歯と下唇で出す: verification /ˌvɛ.ɹə.fɪˈkeɪ.ʃən/, formal /ˈfɔɹməl/, default /dɪˈfɔlt/, justify /ˈd͡ʒʌstɪfaɪ/, helpful /ˈhɛlp.fl̩/

この動画での練習方法

  1. まず声を出さずに動画を最後まで聞き、知らない単語をメモします。
  2. まず0.75倍速で一文ずつシャドーイングし、慣れてきたら通常の速度に戻します。
  3. 自分の声を録音して元の音声と比べます。verification, architecture, bugなどの単語に特に注意しましょう。

シャドーイングとは?英語上達に効果的な理由

シャドーイング(Shadowing)は、もともとプロの通訳者養成プログラムで開発された言語学習法で、多言語習得者として知られるDr. Alexander Arguelles によって広く普及されました。方法はシンプルですが非常に効果的:ネイティブスピーカーの英語を聞きながら、1〜2秒の遅延で声に出してすぐに繰り返す——まるで「影(shadow)」のように話者を追いかけます。文法ドリルや受動的なリスニングと異なり、シャドーイングは脳と口の筋肉が同時にリアルタイムで英語を処理・再現することを強制します。研究により、発音精度、抑揚、リズム、連音、リスニング力、そして会話の流暢さが大幅に向上することが確認されています。IELTSスピーキング対策や自然な英語コミュニケーションを目指す方に特におすすめです。

シャドーイングのやり方: ステップ別の完全ガイドを読む →