Talk Python To Me cover image

#275: Beautiful Pythonic Refactorings

Talk Python To Me

00:00

Code Refactoring

A lot of the challenge, or most of the messy code, lived in this h t m l side of things. Even beginners are able to tell that you're creating an empty list there. Comments should add value that is not explicitly clear from the code. There's no reason to base state what the code is doing. Typically, comments should say why. If it's not clear why something is being done a certain way, or something that’s implicit and not explicitlyclear from what thecode is doing. And that's where the no came from. Is freally idressing the example of col i do think that a lot of the refactory, or, let's try to

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app