Baby Snakes: Mark's journey into Python
entry.6 Mar 18, 2018
I am a Cat Chasing a Dot of Laser Light: Pip Install
Rejoice! My project (The Honey Heist Bearacter Generator) has grown into a robust enough assemblage of code organelles that it is time to consider how to wrap it in the cytoplasm and shiny new cell walls of Django.
What is Django? It's a framework - which as far as I understand is like a skeleton that you drape your python snake all upons. Once activated, the skeleton bears the snake unto the internet and they fuse together like Skeksis and Mystics (spoilers, people reading this back in 1982) to become a web page - fueled by the might of python!
I have a lot of new stuff to learn (which is really the theme of this whole experience), and lots of additional jargon to ingest, but it is exciting to think that somehow, someday my humble code could move out of the house and make something of itself in this big, beautiful world.
Speaking of leaving the house - I made it out to my first ChiPy workshop night this week. I walked among the snake-folk all gathered after sundown to crush code and smorsh on pizza. I did one of those things. More on that in a later blog post.
Y'member how I'm always kvetching about being overwhelmed by the gyre of jargon through which I flounder? Here's a video which encapsulates my experience with coding terminology:
entry.5 Feb 25, 2018
Virtual Environment(al illness)
I'm wearing a hoodie, in a Starbucks, typing into my laptop like Real Legit Devs do. Those ChiPy chaps did not forget my absence from their workshop 2 weeks ago - and now I'm digging into my make up assignment.
20 minutes ago I was filled with the impotent rage of a thousand Theon Greyjoys. Ok, that may be a bit of an exaggeration.
The assignment began with the caveat that before beginning, one should:
- Have some idea about virtualenv and installing packages with pip
I have some ideas about virtualenv and pip installations. One idea is that 'virtual env' is probably what the kids say when feeling covetous of somebody's new PSVR.
"Did you see the adjustable skulljack accessory on Hibiscus' new Daydream headset?"
"Sh'yeah. I'm, like, virtual env all day. Anyway. Let's do all the things."
"Let's vote as well."
I spent an hour ramming my head against the dry wall of the project instructions, trying every terminal and black box available to set up my virtualenv and install stuff directly up my pip.
Ultimately, my girlfriend took humanitarian pity on me and walked me through the process. Success! I can now begin the make up project. Or CAN I?
Tune in next time for more adventures in: Mark's World of Nearly Coding.
entry.4 Feb 19, 2018
One of the reasons I'm learning to code is that my current job entails the routine moving of heavy boxes and the involuntary application of dust into my tender eyeballs. Don't get me wrong - my current job has a lot of great aspects, it's just that me and physical toil aren't the happiest of bedfellows.
"This is why you're learning Python," I sometimes think to myself (I stopped thinking to others after I left that school for gifted mutants) as I hoist parcels overhead like a goddamned leafcutter ant. Coding may provide a new direction in life for this recovering man-of-Theatre, but as with most things in life, I have to actually show up to make it happen.
ChiPy had a mandatory workshop last week which I missed because more boxes needed to be moved at work. I felt real emo working late into the night, breathing the storage room air, gnawing through my granola bar dinner, while a cohort of my still-unmet colleagues enjoyed each other's company - and pizza. Pizza! But worse than the food-envy was the ugly feeling that I was missing out on something that could really improve my quality of life. Even if coding isn't my next career, just learning such a new and challenging skill is its own reward.
By the time I got home, I felt like the husk of a husk. Tired, falling behind at work, and AWOL for my second Python event. Crab city. But then my good girlfriend surprised me with takeout from my favorite restaurant. It was like sweet medicine for the soul.
Sometimes we fail to meet our own expectations. That's okay. A year ago I didn't even know what the hell Python was.
Three days after my night of frustration I added more code into the Honey Heist Bearacter Generator. It worked, and I felt really good. The world has all sorts of secret bonus levels that we never expected to find when first we set off on our quest. I am thankful that ChiPy accepted me and the fact that I felt so strongly about missing out is a good sign.
entry.3 Feb 11, 2018
A code sprouted!
So. As part of Chipy I need to create something using python. My friend and fellow podcaster Grant Howitt (who makes table top role-playing games for a living!) wrote a delightful RPG called Honey Heist in which the players get to be criminal bears engaged in, well, a honey heist.
I vow to use python to liberate new Honey Heist players from the archaic rolling of dice. Through code, I will provide these brave gamesters a method of generating their characters via the electric euphoria of hitting the ENTER key! Forget the year of the dog, 2018 is the year of the Honey Heist Bearacter Generator! And both Grant and Jaimie gave me permission, so I'm `onna do it.
I'm an adult.
entry.2 Feb 10, 2018
Gitbash is now my sworn nemesis.
I had my first meeting a few nights ago with my Chipy (Chicago Python if you're nasty) mentor, Jaimie. We sat down on a wintery night over decaff coffee and set up the "environment" in which I suppose the little electric python in my computer will live. The python, I assume, is like a tamagotchi egg - it needs a warm rock to rest upon and, I don't know, some fetal mice every two weeks?
Nearby patrons regaled each other with happenings of the day, and my laptop familiar bore silent witness as I attempted to, without hyperbole, convey to Jaimie that when it comes to coding, I know nothing. I'm Jon Snowcrash.
Okay, that's a lie. Last month I started learning HTML and CSS through the Grow with Google web development challenge. But that coursework has nothing to do with the mysterious "back end" language of python.
Again, a lie. Apparently you can use something called a "framework" to make python code work on a website (HTML and CSS make up and modify the "front end", the stuff you see and click upon when you do an internet).
Anyway, long story long, Jaimie told me to use Gitbash to interface with Github (a website where the code folk share files with each other and ensure VERSION CONTROL - SWEET MOTHER OF MERCY WHY IS THERE SO MUCH JARGON IN MY WORLD NOW? What is a version and why must we enforce such strict control over it? Is it dangerous? Does it want to hurt the python? This must be why Jaimie had me install the python shell! To protec!
The DOS-like commands that make Gitbash git up and work don't make much sense to me. Push? Pull? Commit? - is this an application or a romantic comedy?* Sheesh!
Well, I tell myself, it's going to be okay. This is the just the beginning of a journey. I'm sure within a few days Gitbash and I will be the best of pals.
GITBAAAASH! I have no clue what I'm doing. And, without fail, I never try to use Gitbash until I've made progress in coding my project and am rarin' to upload the code.
So happy with my shiny new baby code, and then - eeeee! The casket lid of that unholy prompt of darkness shudders open and I spend the next hour in its thrall. Like a fool, tilting at windmills, I blast word-spaghetti keystrokes into the void that stretches across innumerable realms, supposedly connecting my computer with the Shangri la known as my Github "repo".
On an intrinsic level, I know that Jaimie knows that I don't know how to Gitbash. And this failing on my part is a crime against all law-abiding code folk. They know. They can smell my sacrilegious drag-and-drop uploads. They can feel them. They taste my shame.
tl:dr It's time to read the dang Gitbash instruction manual already.
* pretty good.
entry.1 date: unknown
>>> print("Help computer.")
The aircraft landed and all mammals seated within checked their phones. We have a real problem with that as a society, but that's another post for another day. One of said vertebrates (me, surprise!) gazed through the opalescent face-oils of his screen protector, and opened his gmail app: 1 new email.
The message conveyed that I had received a place in the Chicago Python Mentorship Program (a project under the auspices of the Chicago Python User Group). Hot diggity-dog!
I zapped a screen grab of the email to my girlfriend (she was seated in a different aisle because for safety reasons airlines discourage amorous feelings between passengers).
You see? I silently exclaimed to the imaginary authority figure that I keep around just in case I start to get too puffed up. I have done a thing of merit! Even at my advanced age of 35 I can become a cyber-trainee! An acolyte of electromancy! A fizz buzz wizard!
My gf sent me a congratulatory Line sticker of Rilakkuma and his family of bears clapping and dancing. And why not? It's a modern world after all. I was about to learn how to computer. I wasn't Mark Soloff, area podcaster anymore - I was a python mentee! There was just one teensy fly in this vast soup of fortune: I had no idea what people do with Python.