Talk Python To Me cover image

#404: Clean Code in Python

Talk Python To Me

Doc Strings Are Basically Your API Documentation, Right?

2min Snip

00:00
Play full episode
Commenting can be a good way to remind yourself and your team members not what a code is, but why you took that decision. It's also different than doc strings, potentially, right? Which is kind of a form of a comment, but it's meant to talk about the API. The more things you have that are smaller units, you're probably still going to have about the same amount of codes. What gets tricky can be naming them, right? So choosing good names. Another thing that never places, right? Yeah, hopefully fingers crossed.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode