1
00:00:00,000 --> 00:00:05,599
I'm not going to lie, I feel a little bit guilty that yesterday was all me talking.
我不会撒谎，我对昨天全是我在说的话感到有点内疚。

2
00:00:05,599 --> 00:00:12,079
Well, I have good news. Today, less talking, more doing. Welcome to your first yellow day,
嗯，我有个好消息。今天，少说话，多做事。欢迎来到你的第一个黄色日，

3
00:00:12,079 --> 00:00:17,120
the first day of working with products. Welcome to the day when we go through Cursor, Copilot,
使用产品的第一天。欢迎来到我们通过光标、副驾驶的那一天，

4
00:00:17,120 --> 00:00:23,200
Codex, and Antigravity. Let's get started. So the purpose for today is for me to show you
法典和反重力。让我们开始吧。所以今天的目的是让我向你们展示

5
00:00:23,200 --> 00:00:28,479
a number of the different agentic coding products out there, and also take it as an opportunity to
那里有许多不同的代理编码产品，并以此为契机

6
00:00:28,479 --> 00:00:33,919
show you some of the way that you go about doing what we call vibe coding. And I want to give you
向您展示一些进行我们所说的氛围编码的方法。我想给你

7
00:00:33,919 --> 00:00:39,840
some principles to keep in mind throughout today. First of them is that everything I show you today
今天要牢记一些原则。首先是我今天向您展示的所有内容

8
00:00:39,840 --> 00:00:45,279
is going to be optional for you. I want you to have a feel for the different agentic AI coding
对您来说是可选的。我想让你感受一下不同的代理人工智能编码

9
00:00:45,279 --> 00:00:50,159
platforms there are out there. It doesn't mean that you need to use all of them. You might want
那里有平台。这并不意味着您需要使用所有这些。你可能想要

10
00:00:50,159 --> 00:00:54,639
to if you want to have that hands-on experience. It might be completely fine for you just to see
如果您想获得实践经验。也许你只是看看就完全没问题了

11
00:00:54,639 --> 00:00:59,360
me doing it and pick up the differences between them. So it's optional. Download them, install
我这样做并找出它们之间的差异。所以它是可选的。下载它们，安装

12
00:00:59,360 --> 00:01:04,000
them, and use them if you wish. But otherwise, you can pick the one you like. It might be Cursor,
并根据需要使用它们。但除此之外，您可以选择您喜欢的一个。可能是光标，

13
00:01:04,000 --> 00:01:08,800
it might be GitHub Copilot, it might be Claude Code that we're really going to dig into next week.
它可能是 GitHub Copilot，也可能是我们下周真正要深入研究的 Claude Code。

14
00:01:08,800 --> 00:01:12,639
And that can be the one that you stick with. You don't need to do them all. And then the second
这可能是你坚持的那个。你不需要全部做完。然后是第二个

15
00:01:12,639 --> 00:01:18,080
point to mention is that you are going to get different results to me. I say your results may
值得一提的是，你将会得到与我不同的结果。我说你的结果可能

16
00:01:18,080 --> 00:01:23,519
vary. Your results will vary. And I'm going to be using some versions of models, and you might be
各不相同。您的结果会有所不同。我将使用某些版本的模型，你可能会

17
00:01:23,519 --> 00:01:26,879
on different models. You might be on cheaper models if you don't want to spend so much.
在不同的型号上。如果您不想花那么多钱，您可能会选择更便宜的型号。

18
00:01:26,879 --> 00:01:30,959
You might be on free models. You might be on something completely different. So your results
您可能使用免费模型。你可能会从事完全不同的事情。所以你的结果

19
00:01:30,959 --> 00:01:37,120
might be different. Go with what you have and take it as part of the experience to see
可能会有所不同。随心所欲，并将其作为观看体验的一部分

20
00:01:37,120 --> 00:01:43,839
different results. And the single most important principle for today is not to get frustrated.
不同的结果。今天最重要的原则就是不要感到沮丧。

21
00:01:43,839 --> 00:01:49,599
If things don't go well and the agent starts delivering nonsense, which can happen particularly
如果事情进展不顺利，代理人开始胡言乱语，这种情况尤其可能发生

22
00:01:49,599 --> 00:01:55,199
if you're getting downgraded to cheaper models, then the trick is, first of all, be patient.
如果您要降级到更便宜的型号，那么首先要保持耐心。

23
00:01:55,199 --> 00:02:00,800
It's easy for me to say it. I lose my patience myself sometimes. Try and stay patient. Give the
我说起来很容易。我自己有时也会失去耐心。尝试并保持耐心。给

24
00:02:00,800 --> 00:02:06,959
agent feedback on what's happening. And then if in doubt, simplify, simplify, simplify. Reduce
代理对正在发生的事情的反馈。如果有疑问，就简化、简化、再简化。减少

25
00:02:06,959 --> 00:02:12,160
the scope of the problem, make it simpler, get something to work, and then build from there.
问题的范围，让它变得更简单，让一些东西起作用，然后从那里开始构建。

26
00:02:12,160 --> 00:02:16,720
Simplification is such a big trick to keep in mind. And if you can't get it to work,
简化是一个需要牢记的大技巧。如果你不能让它发挥作用

27
00:02:16,720 --> 00:02:21,279
you can always just delete and start everything again and just give it a second shot from
您始终可以删除并重新开始所有内容，然后再试一次

28
00:02:21,279 --> 00:02:25,679
the beginning. And if that doesn't work, you can always skip that particular product and go to the
开始。如果这不起作用，您可以随时跳过该特定产品并转到

29
00:02:25,679 --> 00:02:31,440
next product and see if that works. There's so many options today. Most important of all is to
下一个产品，看看是否有效。今天有很多选择。最重要的是

30
00:02:31,440 --> 00:02:35,039
have fun with it. We're going to be playing with tons of different products. We're going to be
玩得开心。我们将尝试大量不同的产品。我们将会成为

31
00:02:35,039 --> 00:02:40,559
seeing very different results. It's really interesting. You should enjoy today a lot.
看到截然不同的结果。这真的很有趣。你今天应该很享受。

32
00:02:40,559 --> 00:02:45,119
And with that, let's go straight to the lab. I would like you to open back up
接下来，让我们直接进入实验室。我希望你打开备份

33
00:02:45,119 --> 00:02:50,240
Cursor again. Cursor that we already had some experience with. Go back into Cursor,
再次光标。我们已经有一些经验的光标。返回光标，

34
00:02:50,240 --> 00:02:54,160
and I will see that. And this is what Cursor should look like when you open it. And if not,
我会看到这一点。这就是光标打开时的样子。如果没有，

35
00:02:54,160 --> 00:03:00,000
you go to File and you go to New Window, and then you should see this. And I would like you to start
你转到文件，然后转到新窗口，然后你应该看到这个。我希望你开始

36
00:03:00,000 --> 00:03:05,199
by going back to the Instant project that we already worked on. It might pop it up as one of
回到我们已经处理过的 Instant 项目。它可能会弹出它作为其中之一

37
00:03:05,199 --> 00:03:09,360
the things here, or you might need to press Open Project and go into it. But once you have, you
这里的东西，或者你可能需要按“打开项目”并进入它。但一旦你拥有了，你

38
00:03:09,360 --> 00:03:14,080
should be back in Instant. Does this look familiar? This is what we did before. This is where we're
应该会在 Instant 中返回。这看起来很熟悉吗？这就是我们之前所做的。这就是我们现在的位置

39
00:03:14,080 --> 00:03:19,039
going to begin. Now, what I'd now like you to do is to find the course resources. If you don't
即将开始。现在，我希望您做的是找到课程资源。如果你不这样做

40
00:03:19,039 --> 00:03:25,199
already have them to hand, they are linked in many of the first few videos in Udemy. You also should
它们已经在手，它们在 Udemy 的前几个视频中都有链接。你也应该

41
00:03:25,199 --> 00:03:30,240
have got a link in your welcome email when you enrolled. Bring up the course resources and find
当您注册时，您的欢迎电子邮件中有一个链接。调出课程资源并查找

42
00:03:30,240 --> 00:03:35,360
this section. So you're following along there. And the first thing you should see is a link to
本节。所以你就跟着那里。您应该看到的第一件事是一个链接

43
00:03:35,360 --> 00:03:41,279
the website for Node.js. Node. And if you don't already have Node installed in your system,
Node.js 的网站。节点。如果您的系统中尚未安装 Node，

44
00:03:41,279 --> 00:03:46,720
that's what we're going to do right now. And this is Node's landing page right here. It is
这就是我们现在要做的。这是 Node 的登陆页面。这是

45
00:03:46,720 --> 00:03:52,479
nodejs.org. And when you come here, I want you to click on Download, which if you haven't done it
nodejs.org。当你来到这里时，我希望你点击“下载”，如果你还没有这样做的话

46
00:03:52,479 --> 00:03:58,080
before, is where we will download Node. So here on the download page, you will see that you can
之前，是我们下载 Node.js 的地方。所以在下载页面上，您会看到可以

47
00:03:58,080 --> 00:04:04,639
get Node to install it on a Mac or on a PC. It's defaulted to the Mac settings right here. This,
获取 Node 将其安装在 Mac 或 PC 上。此处默认为 Mac 设置。这，

48
00:04:04,639 --> 00:04:08,800
using these commands is the way to do it on a Mac. Don't worry about where we run them. We'll do that
使用这些命令是在 Mac 上执行此操作的方法。不用担心我们在哪里运行它们。我们会这样做

49
00:04:08,800 --> 00:04:14,639
in just a second together. And if you're on a PC, then you can. If you're on Windows and you have
仅仅一秒钟的时间。如果您使用的是 PC，则可以。如果您使用的是 Windows 并且您有

50
00:04:14,639 --> 00:04:19,200
something called Chocolaty, if you've used that before, you can just install it this way. But also,
一个叫做Chocolaty的东西，如果你以前用过它，你可以这样安装它。但是也，

51
00:04:19,200 --> 00:04:25,839
you could come down here, go to Windows, pick x64, and then use this to get a normal Windows
你可以到这里，转到 Windows，选择 x64，然后使用它来获取普通的 Windows

52
00:04:25,839 --> 00:04:32,640
installer. Use any of these techniques to install Node. If you have any problems with it, then you
安装程序。使用这些技术中的任何一种来安装 Node.js。如果您有任何问题，那么您

53
00:04:32,640 --> 00:04:36,959
should just message me or look at the course resources in case I've got some suggestions
如果我有一些建议，应该给我发消息或查看课程资源

54
00:04:36,959 --> 00:04:41,279
there. And when it comes to running commands, if you want to run these commands for Windows or Mac
那里。当谈到运行命令时，如果你想在 Windows 或 Mac 上运行这些命令

55
00:04:41,279 --> 00:04:47,359
rather than running this installer, the place that you can do that is back here in Cursor. When you're
您可以在 Cursor 中执行此操作，而不是运行此安装程序。当你在

56
00:04:47,359 --> 00:04:53,440
looking at Cursor, you can go to the View menu and select Terminal. And up will come this little
查看光标，您可以转到“视图”菜单并选择“终端”。就会出现这么一点点

57
00:04:53,440 --> 00:04:59,519
screen here, a little terminal. And this is where you can punch in the commands to install Node.
这里的屏幕，一个小终端。您可以在此处输入安装 Node 的命令。

58
00:04:59,519 --> 00:05:03,440
And once you've done it, once you've installed Node, you can then bring up a new terminal by
一旦你完成了它，一旦你安装了 Node，你就可以通过以下方式打开一个新终端

59
00:05:03,440 --> 00:05:07,359
pressing the plus button here. You get a new terminal. And in here, you should be able to
按此处的加号按钮。您将获得一个新终端。在这里，你应该能够

60
00:05:07,359 --> 00:05:12,480
type Node minus minus version. And you should get back a version. Maybe it's the same as me. Maybe
类型 Node minus minus 版本。你应该找回一个版本。也许和我是一样的吧。或许

61
00:05:12,480 --> 00:05:19,279
you've got a more recent version. Anything after 22 is great. And at this point, you are set with
你有一个更新的版本。 22岁之后的任何事情都很棒。此时，您已设置完毕

62
00:05:19,279 --> 00:05:25,519
Node.js. Any problems with it, drop me a message, a Q&A, and you do me or an email, and I'll help
Node.js。如有任何问题，请给我留言、问答，然后您给我或发电子邮件，我会提供帮助

63
00:05:25,519 --> 00:05:29,679
out or look in the course resources for tips. Now, we're just going to spend a few moments now in
出或查看课程资源以获取提示。现在，我们将花一些时间

64
00:05:29,679 --> 00:05:34,079
this terminal. And some of you use terminals all the time. For some of you, this might be a bit
这个终端。你们中的一些人一直使用终端。对于你们中的一些人来说，这可能有点

65
00:05:34,079 --> 00:05:39,279
new. And that's nothing to be afraid of, even if it does look a little bit like it's something
新的。这没什么好害怕的，即使它看起来确实有点像什么

66
00:05:39,279 --> 00:05:46,079
hung over from the 80s. But here we are. What we're looking at here is we're looking within
从80年代开始就一直悬着。但我们到了。我们在这里看到的是我们正在向内看

67
00:05:46,079 --> 00:05:52,079
the directory that's called Instant that we created before that's in perhaps in a project's
我们之前创建的名为 Instant 的目录可能位于项目的目录中

68
00:05:52,079 --> 00:05:56,720
directory. And the way you can see that is you can type this command, pwd, which stands for
目录。你可以看到这一点，你可以输入这个命令，pwd，它代表

69
00:05:56,720 --> 00:06:04,160
print working directory. And it tells you where you are. And I am in users, ed, projects, instant,
打印工作目录。它会告诉你你在哪里。我在用户、编辑、项目、即时中，

70
00:06:04,160 --> 00:06:08,160
which makes sense. And if you're on a PC, it will look a bit different. You'll have backslashes
这是有道理的。如果你在电脑上，它看起来会有点不同。你会有反斜杠

71
00:06:08,160 --> 00:06:12,559
instead of forward slashes. But it's going to be much the same kind of thing. You're in instant.
而不是正斜杠。但这将是同样的事情。你就在瞬间。

72
00:06:12,559 --> 00:06:16,720
And that's a fine place to be if you're working on instant. But we're going to work on something
如果您正在即时工作，那么这是一个不错的地方。但我们要做一些事情

73
00:06:16,720 --> 00:06:22,160
different. So what I want to do is I want to go up one directory to the projects directory. And
不同的。所以我想做的就是向上一个目录到项目目录。和

74
00:06:22,160 --> 00:06:27,839
the way you do that is you type cd for change directory, and then a space, and then dot dot.
这样做的方法是输入 cd 来更改目录，然后输入一个空格，然后输入点。

75
00:06:27,839 --> 00:06:32,480
And I know most of you know this already. But then when I do that, if I now do pwd,
我知道你们大多数人已经知道这一点了。但当我这样做时，如果我现在做 pwd，

76
00:06:32,480 --> 00:06:37,839
you can see that sure enough, I am in the parent directory, I'm in the projects directory,
你可以看到，果然，我在父目录中，我在项目目录中，

77
00:06:37,839 --> 00:06:42,239
where I have all of my projects, quite a few of them. Okay, and if you look in the course resources,
那里有我所有的项目，其中有不少。好的，如果你查看课程资源，

78
00:06:42,239 --> 00:06:50,160
you'll see that I have a repository, a repo on GitHub that I now want to bring down locally so
你会看到我有一个存储库，GitHub 上的一个存储库，我现在想将其下载到本地，所以

79
00:06:50,160 --> 00:06:55,920
that that that repo is on your computer. And there's a simple way to do it. It's a git clone
该存储库位于您的计算机上。有一个简单的方法可以做到这一点。这是一个 git 克隆

80
00:06:55,920 --> 00:07:02,239
command, I'm going to type git clone. And then I'm going to paste in the link to that repo. There it
命令，我要输入 git clone。然后我将粘贴该存储库的链接。在那里它

81
00:07:02,239 --> 00:07:08,320
is right here. It'll also be on the course resources. It's HTTPS github.com slash ed dash
就在这里。它也将出现在课程资源中。这是 HTTPS github.com 斜杠 ed 破折号

82
00:07:08,320 --> 00:07:15,760
Donna slash Kanban dot get in on the Kanban is that's what we're about to be doing. So I run this
唐娜斜线看板点进入看板就是我们要做的事情。所以我运行这个

83
00:07:15,839 --> 00:07:20,959
and bam, it happens. I've done it, we now have a directory I can I can go into it,
砰，它发生了。我已经完成了，我们现在有了一个目录，我可以进入它，

84
00:07:20,959 --> 00:07:27,679
you don't need to but I can go cd Kanban. And there we go. We are in Kanban. If I do pwd,
你不需要，但我可以去 cd 看板。我们就这样吧。我们在看板。如果我做 pwd，

85
00:07:27,679 --> 00:07:33,440
then you will see I am in users and projects Kanban. And you will be in some different thing
然后你会看到我在用户和项目看板中。而你将会处于不同的境地

86
00:07:33,440 --> 00:07:39,839
probably with backslashes maybe. But basically the same idea, you will have Kanban setup.
可能带有反斜杠。但基本上是相同的想法，你将有看板设置。

87
00:07:39,839 --> 00:07:45,440
That is the project we'll be working on now. Okay, so now to switch over from instant to this
这就是我们现在要做的项目。好的，现在从即时切换到这个

88
00:07:45,440 --> 00:07:51,679
new project called Kanban, you go to the cursors file menu, and you say new window and this screen
名为看板的新项目，您转到光标文件菜单，然后说新窗口和此屏幕

89
00:07:51,679 --> 00:07:58,559
comes up, remember this screen, and now you press open projects. Okay, fair enough. Here we go. And
出现时，请记住此屏幕，然后按“打开项目”。好吧，很公平。开始了。和

90
00:07:58,559 --> 00:08:03,200
now you go into into your projects, you navigate your way to your your projects directory. And
现在您进入您的项目，导航到您的项目目录。和

91
00:08:03,200 --> 00:08:09,200
you'll see that there is Kanban here it is. And then you go into Kanban by double clicking,
你会看到这里有看板。然后双击进入看板，

92
00:08:09,200 --> 00:08:14,320
and then you press the open button to have launched the Kanban project. And you'll know
然后按下打开按钮启动看板项目。你会知道

93
00:08:14,320 --> 00:08:19,760
because it will say Kanban here and it will say Kanban in block capitals up on the top left. And
因为这里会显示看板，并且左上角会显示大写字母看板。和

94
00:08:19,760 --> 00:08:26,640
that means we've had success. We are now in the Kanban project. Great. It's time for us to start work.
这意味着我们已经成功了。我们现在处于看板项目中。伟大的。我们该开始工作了。
