Towards Data Science cover image

Joel Grus - The case against the jupyter notebook

Towards Data Science

00:00

How Big Can a Function Get Before You Break It Up?

i use type annotations everywhere, in particular. I want to think about everything i do in terms of types. And it allows me to actually check the types i'm using and make sure they're correct. If you went up with a big function, it's worth asking yourself if there's too much in here or should be broken down into smaller pieces. But i don't think that you should say, oh, here's a hundred line function. I must break it up. Sometimes it doesn't make sense. sometimes it really takes a hundred lines to do what you need that function to do. So i think, i think it's a good rule of thumb to keep your functions small.

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