There’s a enjoyable anime sequence referred to as “One Punch Man”. And surprisingly, it has some nice classes for mastering Python.
The story takes place in a barely extra trendy world than ours, the place heroes defend the fashionable cityscape from frequently invading monsters. Think about a parade of mini-Godzilla or Mothra-like critters, however extra numerous and colourful and clever, and ranging extensively of their dimension and menace degree.
This goes on to the purpose the place a proper league of heroes will get shaped, with ranks for various perceived ability. Enter the protagonist, named Saitama.
He’s not as flashy as the opposite heroes.
If something, at first look he appears to be like innocent.
However it seems he’s so efficient as a martial artist, so unparalleled in his ability, he is ready to knock out huge highly effective beasts with a single punch, each time. Therefore the identify.
This present is a comedy, crammed with hilarious conditions created by the hero-managing establishments failing to acknowledge his super-talent time and again. I’m leaving so much out right here – it’s value digging up and watching.
However the present has a robust lesson for us Pythonistas.
As a result of the supply of Saitama’s mastery is revealed within the first season. Every single day, with out fail, he did
- 100 pushups.
- 100 situps.
- 100 squats.
- After which ran ten kilometers.
Discover how SIMPLE that is.
He is drilling these basic workout routines with relentless consistency. And one way or the other, it manages to unlock superhuman ability.
That jogs my memory of what occurs while you deeply grasp the fundamentals of Python programming.
OOP, for instance. As a result of OOP is the essential basis ALL advanced software program is constructed on. Slightly OOP data goes a good distance… however higher understanding unlocks ENTIRE NEW UNIVERSES of software program to you.
Or automated checks, like unit checks. If you grasp writing these, you possibly can all of a sudden create shockingly highly effective software program methods that non-test-writers can not contact. Writing checks is a legit superpower.
One other attention-grabbing level: while you grasp each, you discover they ratchet up the ability of one another. OOP amplifying what you are able to do with checks, and vice versa, in exponential ways in which all of a sudden make the sort programming you probably did earlier than appear primitive and easy.
After which you could have scalability patterns that leverage Python’s reminiscence mannequin… Or the higher-level operate abstractions forming the bedrock of a dozen well-known Python libraries you utilize day by day… and so forth.
Every of those are just like the pushups or squats Saitama does religiously.
And all that is only one lesson we are able to study from our buddy Saitama. There many others: like how he all the time goes straight for the monster’s weak level (I do know you possibly can see a parallel for advanced software program “beasts”)… Or how he’s consistently looking for out a higher problem to check himself and develop… and fairly a couple of classes extra.
So dig up this present, or learn the manga it’s primarily based on. And search for what different classes you possibly can draw on, to enhance your coding craft.