Effective PyCharm Transcripts
Chapter: The Editor
Lecture: Code With Me in action

Login or purchase this course to watch this video and the rest of the course contents.
0:00 So we're here in this podcast program and it's not working. If I try to run it,
0:06 you can see that it has this little header that comes out and says zero episodes and yet if we go to Pythonbytes.fm over to the episodes.
0:16 There are clearly many, many episodes here so something's wrong. I've been on this all day, I can't fix it, I need help.
0:23 So let's go over to code with me here and right now there's no session but I'll enable and copy the link.
0:30 You have a choice about the permissions you can do this is read only and just let somebody look but not touch or interact with certain files over.
0:39 I can also changes so they can edit files but they can't do things like run
0:42 code. They can't open up the terminal and run arbitrary commands but hey this is Brian Okken I trust him
0:47 Right Brian wouldn't do anything wrong so I'm going to pull this up and just give them full control so he can debug and step through and so on.
0:53 We could also start an automatic voice call. The recording for this setup doesn't work that well.
0:57 So we're going to use a different mechanism and not use the voice call here. Alright link has been copied, I'm going to send this to Brian and he'll be
1:04 here in a moment. So when Brian got that link, I sent to him over a chat. He clicked it and it opens up and says PyCharm is opening is downloading a
1:13 version that he needs the first time you do this often. It's going to actually download a small lightweight copy of PyCharm to run.
1:20 He's already done it before. So it opened really quick. There's a code, we check that I accept it.
1:25 It must match who else would be joining this thing right now. So Okkin has joined. Right. Hey. Yeah. So hey,
1:32 thanks for joining me today. Have a bit of problem. You know, I told you about that cool thing that would tell you the titles
1:37 of all of our episodes on Python bytes that we do together. Yeah, yeah, that would be awesome.
1:42 It's not, it comes back here and it says uh when I run it, it's zero episodes. So um, I'm just gonna follow you around.
1:49 Um, I'm going to click on you and that will follow you. Can you go over to the service thing where we're trying to download them.
1:54 I'm not very good with Xml and X path and there's something busted here. Help me out like, So you can see online 18 that I'm doing this x
2:02 path query against the XML dom the element tree right? Yeah, you can see this is,
2:08 this is brian's highlighted brian's little cursor and highlighting like think google docs.
2:13 Right? So there's something wrong with that X path query because it's clearly coming back when you look like you're actually going and just run it,
2:18 hit the play button for me on your side. Okay, that's a great point or just play just run it just place.
2:24 Okay. Yeah you can see it's working with a total of zero episodes. Yeah that's not right. No that's not right.
2:31 So there's something wrong with the X Path query. Why don't you try just printing out items and see what we get are actually printing
2:36 out the dom just right to print the dom and see what we get printed. Um Okay so yeah let's run it now. Oh actually that's not super helpful is it?
2:48 Let's go I'm gonna try printing out the strings. I'm gonna change that for a moment here and running again.
2:54 That's still the same thing. What do you think about the debugger? I'll put a breakpoint here and we can plug into that and see if we can
2:59 see more about that. Oh cool. Yeah you go to the dom yeah we can go to the thanks. Well there's not a whole lot going on. I guess we can response text.
3:10 We look at the response text. Okay. Clearly there's Xml in this response text here right,
3:14 in this so there's something going on and you got any idea because I thought I had it right, I thought it was channel/items.
3:23 Well is that is that in point correct? Yeah like rss it was channeled and it has a bunch of items so oh maybe there it's just called item do you think?
3:33 Yeah yeah let's try that. Okay. All right. All right again. Oh yes that was some oh no the numbers are on. What do you mean they're wrong?
3:44 Well like here at the bottom we have fuzzy, wuzzy, Lousy Fuzzy I love that title. Um but it says 236 but it's lined up with 235.
3:55 Oh okay that's that's not ideal. Let's see. Um So I think the code right on the same screen that you're
4:01 looking for like online 21 here this is where we come up and if you look actually this episode it goes title link,
4:08 pub date show ID and that's what's getting displayed there. Is that show ID? Okay that's what do you think that should we not have
4:17 that minus you think maybe maybe that might be. What's the problem? You drop it, take it away. Okay. Why are you running again?
4:25 See what happens. Oh there we go. You're a genius. We have our elements and we have our titles and we have
4:32 the numbers fix brilliant. And I just want to point out to everyone watching that
4:37 when Brian ran it it didn't download the code to his machine and run it. It ran on my machine. So for example if we were talking to a database
4:44 or some infrastructure that only my computer had access to like he would be controlling, interacted with that even though in his PyCharm.
4:51 He's debugging and looking at the variables and editing and so on. I think we should check this in.
4:56 This is awesome. So let me go over here to the commit section. And one thing that I found really interesting is there are changes,
5:04 there are changes for me and you can see like I change this channel/items to item and there's also changes by Okken.
5:12 So it actually in the get check in it separates the changes. It shows like that subtraction of one that you did.
5:18 So nice. Uh huh. We'll admit all these changes first. I'll commit these and this just has changed by Brian.
5:32 Cool. Well it looks like we've got it all fixed. Thanks so much for being here. I'm gonna kick you out of the session. All right. So yeah. Bye.

Talk Python's Mastodon Michael Kennedy's Mastodon