Effective PyCharm Transcripts
Chapter: Tool windows
Lecture: File structure

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's talk about navigating around files one more time.
0:03 There's all these different aspects that we like to explore and these tool windows are really
0:06 really helpful for them over here.
0:09 We've got episodes as a type,
0:12 we've got episodes as a list or a dictionary of those types.
0:16 We've got some of these functions here that we might want to navigate through and this
0:21 file is pretty small, but maybe you want to get a quick overview just what
0:25 is in this file, so we can come on down here to this structure,
0:29 then we can quickly jump around like what,
0:31 where is the max Id boom is right there,
0:33 where is the episodes dictionary? That's right,
0:35 there was episodes type right there,
0:38 so this is a really cool way to go and navigate around through the file.
0:43 This one is fairly simple, there's no classes,
0:46 there's just a couple of methods,
0:47 a couple of variables, so maybe you wouldn't really use it there.
0:51 Remember that actors file. We had all the actors from the wizard,
0:54 D&D. Game, we've got the wizard,
0:56 the small animal, the dragon creature.
0:59 This gets more interesting. So notice over here we have our classes and if we
1:02 expand this out for these things,
1:05 we can see as you just touch them.
1:07 Here's the creature is the dragon that derives from creature in navigate around.
1:13 We can also see here's where the level is defined right online,
1:16 seven. It's hard to see where the cursor is.
1:18 So when we click that it takes us there.
1:20 When you click this takes us over the line.
1:22 Six, so we can see immediately where is that field that belongs to that class
1:26 live. Right? So down here we see that small creature is overriding get defensive
1:32 role, click on that, we get small creatures defensive role,
1:35 super super cool. Now with classes it might be interesting to just have this view
1:41 So you know imagine we were in our own file,
1:44 Act, I can open that up here if we have our dragon and its own
1:50 file, right in this case we don't have any other thing.
1:54 Then the structure only shows what the dragon itself defines its breath,
1:58 fire, scariness and it's get defensive role but this button right here will show us
2:04 the entire type hierarchy for this so check this out,
2:09 look how cool this is. So dragon drives from creature creature drives from object.
2:14 So these things are the items that come from dragon.
2:18 But down here, this rapper,
2:19 this comfortable creature in another file,
2:22 This level comes from creature over there and then we can go further down into the
2:26 hierarchy of like well where's Dunder dict define that's defined in the built in which is
2:32 inside of just object so we can turn on for back in our dragon here we
2:38 can turn on show us the type hierarchy as well.
2:40 Sometimes because of all the magic methods of python data model there,
2:45 this can be a little intense so don't sort alphabetically because you get sort of this
2:50 you know my stuff and then the next level of hierarchy and then the next
2:53 level, which is probably the right way you can sort of like this.
2:57 But then that becomes, I don't know,
2:59 that becomes tricky, so really,
3:01 really useful way to understand type hierarchies,
3:04 how files fit together and navigating large files honestly.