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 fashionable world than ours, the place heroes defend the trendy cityscape from often invading monsters. Think about a parade of mini-Godzilla or Mothra-like critters, however extra various and colourful and clever, and ranging broadly of their measurement and menace stage.
This goes on to the purpose the place a proper league of heroes will get fashioned, 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 seems innocent.
Nevertheless 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 again and again. I’m leaving rather a lot out right here – it’s price 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. Daily, 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 elementary workouts with relentless consistency. And by some means, it manages to unlock superhuman ability.
That jogs my memory of what occurs whenever you deeply grasp the fundamentals of Python programming.
OOP, for instance. As a result of OOP is the crucial basis ALL advanced software program is constructed on. A little bit OOP information goes a great distance… however higher understanding unlocks ENTIRE NEW UNIVERSES of software program to you.
Or automated exams, like unit exams. Whenever you grasp writing these, you’ll be able to all of a sudden create shockingly highly effective software program programs that non-test-writers can not contact. Writing exams is a legit superpower.
One other attention-grabbing level: whenever you grasp each, you discover they ratchet up the facility of one another. OOP amplifying what you are able to do with exams, and vice versa, in exponential ways in which all of a sudden make the type programming you probably did earlier than appear primitive and easy.
After which you will have scalability patterns that leverage Python’s reminiscence mannequin… Or the higher-level perform abstractions forming the bedrock of a dozen well-known Python libraries you utilize on daily basis… 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 at all times goes instantly for the monster’s weak level (I do know you’ll be able to see a parallel for advanced software program “beasts”)… Or how he’s continually in search of out a higher problem to check himself and develop… and fairly just a few classes extra.
So dig up this present, or learn the manga it’s primarily based on. And search for what different classes you’ll be able to draw on, to enhance your coding craft.
Posted By: Aaron Maxwell on https://ezinearticles.com/?One-Punch-Python&id=10427919