WEBVTT

1
00:00:00.160 --> 00:00:02.000
As of recently, especially with the

2
00:00:02.000 --> 00:00:03.920
introduction of the worktrees within

3
00:00:03.920 --> 00:00:06.000
the app, I've kind of started

4
00:00:06.000 --> 00:00:07.600
delegating a lot more work than I did

5
00:00:07.600 --> 00:00:10.320
before and working on multiple tasks

6
00:00:10.320 --> 00:00:12.000
in parallel, which has kind of taken a

7
00:00:12.000 --> 00:00:13.920
little bit of a shift of mindset.

8
00:00:13.920 --> 00:00:15.520
Can you show me like an example of

9
00:00:15.520 --> 00:00:17.360
what that looks like of working in

10
00:00:17.360 --> 00:00:19.120
parallel or what your workflow overall

11
00:00:19.120 --> 00:00:21.360
in the app looks like? So one of the

12
00:00:21.360 --> 00:00:23.040
features I actually wanted to add was

13
00:00:23.040 --> 00:00:26.560
the ability to sort my pin tasks.

14
00:00:27.120 --> 00:00:29.120
So in the worktree, we do have the

15
00:00:29.120 --> 00:00:30.560
ability to sort these workspaces,

16
00:00:30.560 --> 00:00:31.760
which is really nice, and I just want

17
00:00:31.760 --> 00:00:33.200
to add the same thing for the pin

18
00:00:33.200 --> 00:00:35.600
tasks. So for this, I'm going to kick

19
00:00:35.600 --> 00:00:38.400
off a task on a worktree and use

20
00:00:39.120 --> 00:00:40.720
the master branch, and I'm just going

21
00:00:40.720 --> 00:00:43.840
to ask to update the

22
00:00:43.840 --> 00:00:47.040
sidebar pinned tasks

23
00:00:47.040 --> 00:00:49.920
so that I can drag and drop to

24
00:00:49.920 --> 00:00:52.160
reorder them. So I'll send that out.

25
00:00:52.160 --> 00:00:53.920
And this is where often when I was

26
00:00:53.920 --> 00:00:55.760
working on the VS Code extension,

27
00:00:55.760 --> 00:00:57.840
I'd kind of be in this place where I

28
00:00:57.840 --> 00:00:59.360
want to let Codex do its thing. I

29
00:00:59.360 --> 00:01:02.320
don't want to keep working. But

30
00:01:02.320 --> 00:01:03.200
I don't have to worry about that

31
00:01:03.200 --> 00:01:04.720
anymore. It's on its own worktree.

32
00:01:04.720 --> 00:01:06.160
It'll be completely managed by the

33
00:01:06.160 --> 00:01:08.160
app, and I can actually go continue

34
00:01:08.160 --> 00:01:09.760
what I was working on before. So

35
00:01:09.760 --> 00:01:13.280
in this case, I am actively updating

36
00:01:13.280 --> 00:01:15.440
the create branch button.

37
00:01:15.440 --> 00:01:17.440
So let me see if I can find that right

38
00:01:17.440 --> 00:01:19.840
now. So I haven't actually looked at

39
00:01:19.840 --> 00:01:23.040
this yet. I'm going to apply all these

40
00:01:23.040 --> 00:01:25.440
changes on my local tree. Okay. And

41
00:01:25.440 --> 00:01:27.440
then we can see how Codex did. And

42
00:01:27.440 --> 00:01:30.720
yeah, it seems like this might be

43
00:01:30.720 --> 00:01:32.000
unintentional. It seems like it's

44
00:01:32.000 --> 00:01:34.320
creating the branch twice here. So

45
00:01:34.320 --> 00:01:35.840
what I can actually do there is I can

46
00:01:35.840 --> 00:01:37.440
just comment here, and I can ask it,

47
00:01:38.400 --> 00:01:40.640
why are we creating the

48
00:01:40.640 --> 00:01:44.080
branch twice? So also while you're

49
00:01:44.080 --> 00:01:46.080
sending this off, you're still having

50
00:01:46.080 --> 00:01:47.440
Codex actually work on your other

51
00:01:47.440 --> 00:01:49.360
tasks at the same time. Yes, exactly.

52
00:01:49.360 --> 00:01:52.480
It actually seems that... Let's

53
00:01:52.480 --> 00:01:55.040
pull up this. I was just working on a

54
00:01:55.040 --> 00:01:58.080
similar modal, and I also gave it

55
00:01:58.080 --> 00:02:00.160
the Figma designs we see right below

56
00:02:00.160 --> 00:02:03.440
here, right above. And

57
00:02:03.440 --> 00:02:05.760
it just finished up a nice big PR as

58
00:02:05.760 --> 00:02:07.920
well here. You can see there's a bunch

59
00:02:07.920 --> 00:02:09.520
of changes here. And we also have

60
00:02:09.520 --> 00:02:12.000
finished up this drag and drop PR. So

61
00:02:12.000 --> 00:02:13.280
let's take a look at this and see how

62
00:02:13.280 --> 00:02:15.040
this did. I'm going to quickly clear

63
00:02:15.040 --> 00:02:17.680
out my local state. So let's try and

64
00:02:17.680 --> 00:02:20.400
apply this drag and drop feature and

65
00:02:20.400 --> 00:02:22.240
see how this one did while it's

66
00:02:22.240 --> 00:02:23.440
working on the other one. All right.

67
00:02:23.440 --> 00:02:25.840
So if we take a look here and we apply

68
00:02:25.840 --> 00:02:28.640
the changes while Codex seems to still

69
00:02:28.640 --> 00:02:29.920
be taking a look at this and making

70
00:02:29.920 --> 00:02:32.560
sure there's not any problems. We can

71
00:02:32.560 --> 00:02:33.760
keep working here, and I'm going to

72
00:02:33.760 --> 00:02:35.680
apply all the changes for the drag and

73
00:02:35.680 --> 00:02:37.360
drop on the pinned task. So now let's

74
00:02:37.360 --> 00:02:39.680
take a look and see how Codex did. All

75
00:02:39.680 --> 00:02:43.360
right. This looks pretty good. I think

76
00:02:43.360 --> 00:02:45.440
getting into the habit of

77
00:02:45.440 --> 00:02:47.520
really going all in on worktrees and

78
00:02:47.520 --> 00:02:49.280
working in parallel will completely

79
00:02:49.280 --> 00:02:51.360
change how you look at software

80
00:02:51.360 --> 00:02:54.160
engineering. Instead of focusing on

81
00:02:54.160 --> 00:02:55.920
all the individual lines, you'll look

82
00:02:55.920 --> 00:02:57.520
at the overall architecture of the

83
00:02:57.520 --> 00:03:00.000
code and getting good at context

84
00:03:00.000 --> 00:03:02.080
switching in this form. It's pretty

85
00:03:02.080 --> 00:03:04.080
tough to completely switch what you're

86
00:03:04.080 --> 00:03:05.440
working on. But if you find good

87
00:03:05.440 --> 00:03:06.720
stopping points and you know when

88
00:03:06.720 --> 00:03:08.640
to switch, it's a lot better than

89
00:03:08.640 --> 00:03:10.240
either waiting on Codex to finish

90
00:03:10.240 --> 00:03:12.080
something or trying to code it all by

91
00:03:12.080 --> 00:03:13.680
yourself.


