Thursday, July 5, 2018

Python: my coding adventures


Currently, I am taking a class on Python programming. Because coding is a big time skill these days, right? Everyone should know a little bit about it.

‘Really, Lauren? Aren’t summer classes condensed and therefore more challenging – and won’t this class be extra difficult since you don’t know anything about computer programming?’

‘Yes, dear reader. Such grounded, obvious insights are the very foundation of our friendship. Taking this class was one of my top worst ideas.’

print(‘Help!’)  - hehehe, it’s a little Python joke!

The first half-hour of the first class seemed OK. Since then I’ve lived in a state of confusion. 

It’s like if you’re standing at the foot of the hill and a small pebble rolls down and hits your shoe. After picking it up and looking at it for a minute, it seems pretty understandable, a normal, small rock; it’s hard but not that hard. Then an avalanche deafeningly buries you and you die.

If everyone else in the class wasn’t pounding the daylights out of their keyboards like Hugh Jackman in Swordfish, I would insist programming is one of the great challenges known to mankind. The tools at one’s disposal when learning a spoken language are ripped away. It’s you and the screen with its infernal blinking cursor ignoring your animated charades and attempts to point out YouTube research and looking up of concepts on coding forums.

Once after class I asked the professor for help on code I thought was quite close to correct. By the end of the conversation he was almost certainly thinking about retirement.

The professor gives the class starting code (great) peppered with little questions (not great), for which I never have appropriate answers.

    #  allwords.append(words) # why doesn't this work? I AM NOT CONVINCED ANYONE KNOWS.
   
allwords.extend(words) # this does...

    # allwords = allwords + words  # does work - but why is this inefficient?
I CAN ONLY DESIRE THAT IT WORKS. CAN PROCESS OPTIMIZATIONS BE DISCUSSED AT A LATER TIME.

There have been a few rays of hope.

A few days ago I met with my partner for our final project and typed out a working draft of our (very simple) needed code in about 15 minutes. All is well! I DID learn! I felt like watching Swordfish again to figure out what Hugh was up to.

Then I tried to do more homework, leading to the aforementioned conversation with Prof. L.

But whatever. Challenges are good, and I’m glad I ended daily conversations with myself deciding to stick with the class. I like knowing more about the scenes behind our screens; plus, it’s always important to keep terrifying pushing ourselves. As Eleanor Roosevelt said, ‘Do one thing every day that makes you want to claw out your eyes.’

No comments:

Post a Comment