Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Monday, 6 February 2017

Computer Coding is a Foreign Language and I am Hopelessly Unilingual.

Welcome to today's installment of "Self-Flagellation" or "How Computer Coding has Turned Me Into a Sado/Masochist Who Could Grind Christian Grey Into Chalk Dust". 

It has been a stress-free ten days since my learned tutor and I sat down for a lesson. Various other pursuits have kept us from our appointed task and I must admit that there is a certain measure of satisfaction that comes with procrastination, especially when the task one is delaying has the ability to send one shaking and screaming from night terrors and awakening at 3:00 am in a pool of one's own sweat and drool. The only problem with such an ardent pursuit of postponement and deferment is that my middle-aged, swiss-cheesed gray matter can't retain any amount of information longer than the time it takes to watch the average beer commercial. So when I innocently asked about moving some elements around the page on my dummy (yes... I am well aware of the irony of that term) page,  The Husband looked me square in the eye this morning and said in astounding seriousness that "You already know how to do that". I gazed back at him with an expression that I am certain imitated the face of a gorilla on Prozac. Square one...here we come.

This morning, this article was on page one of the Miami Herald, right beneath the article of the Super Bowl defeat from hell. Seriously. Is there anybody outside of New England who doesn't believe that Tom Brady has sold his soul to the devil and will be languishing in the bowels of Hades alongside Donald Trump for eternity? But once again, I procrastinate and digress.

So...this article...on page one.


I will not debate the merits or inherent stupidity of this proposal, (other than saying that it is incredibly Floridian and that both skills are necessary for students in the 21st century) but I will say that after enduring a mere four lessons in coding, it is fundamentally apparent to this moronic student that coding is most definitely a foreign language and the ability to master it lies in continual and constant practice. You simply cannot become fluent in any language if all you manage to utter are hello, goodbye, and peace. Great thanks to the Divine Spirit for making Hebrew simple enough to use a single word for all three. Coding is very different, very comprehensive, very complicated, and very very very confusing.

I asked The Husband for his opinion on how he thought my web page should look. I very much value his opinion on design and I was kind of silently hoping that he might just take pity on me and simply redesign the whole fucking thing himself without the stress of imparting this coding bullshit to me. I asked him at one point, how he managed to learn all of these different computer languages that he so effortlessly uses, and he replied without a hint of glibness that  "I just woke up one morning and they were all there." The really crazy part of that statement is that I believe both of us think it is actually possible. 

I decided that I would like for the front page of the site to be the most recent blog posts so that when you all open up the URL for Dawn Ponders, the posts are the first things you see. After determining that we actually couldn't accomplish such a thing using HTML alone, The Husband very gently explained to me that we would now be diverting our attention to "real" programming as if what we had been doing before was a kind of an ersatz mess. He had this look in his eye that said "Don't worry, honey. You won't feel a thing as I push you out of the plane. It's the landing that's the real bitch."

(By the way....there is a nauseated churning that occurs within the pit of your stomach when your teacher takes your computer, spends ten minutes surfing Javascript sites to figure out why he can't solve a basic problem that he wants to convey to you, swears vociferously that it doesn't work and he doesn't know why, and then says...let's try this instead. That feeling of security is EVERYTHING!)

And so we are now in the world of JavaScript working in less than perfect synchronization with HTML. It's kind of like asking "Where's the bathroom" in Spanish and being directed to the bank in Italian. 

Here's what we managed to do.


And here are the results of over an hour's worth of laborious coding. 



See the little "Hello Dawn" under the Home tab? 

Yup. 

That's it. Aren't you all so very proud of me?

At this rate, I might have a new site online in time for the celebration of Canada 175...if we both manage to live that long. 

One last note. Take an expanded look at the coding photograph.

Go on.

Blow it up.

I'll wait.

Are you there? 

Now, look at the very bottom of the screen in the extreme right-hand corner. Do you see that tiny blue icon?

IT'S A FUCKING SQUIRREL!!!!!

They have invaded every part of my life and are determined to haunt me until the end of days.




Wednesday, 18 January 2017

HTML Has Turned Me Into a Baboon

Day 2 of the great experiment is now in the books or as I have taken to calling it "How to Make Dawn Feel Like a  Knuckle-Dragging Cretin in 10 Easy Steps."

I had forgotten how humiliating it was to lack comprehension at a glance. I had totally blocked those feelings of insecurity, self-doubt, timidity, and vulnerability I used to have when even though my concentration level was at its peak, my understanding was at its valley. That, in a nutshell, is how I define my progress on Day 2 of this ridiculous experiment The Husband has laid out for me.

In any relationship, there is a division of duties that seem to fall naturally to one partner or the other. In ours, for example, The Husband has easily fallen into the role of money manager and tech-geek, while it has usually fallen to me to be the teacher. The exception to this rule was the aforementioned "teaching of our children to drive experience" in which I refused to partake for two simple reasons. One...I am a self-proclaimed coward behind the wheel and I knew that my anxiety (and my constant blood-curdling screams of potential death) would be detrimental to the learning process and two...I was totally convinced that I would put a gaping hole in the passenger-side floor boards from continually pressing on the imaginary brake that I so wanted to be there. (The Husband, still to this day, describes the experience as the only teachable moment in a child's life you can literally die while doing.) Taking on The Husband as my tutor for this endeavour required a great leap of faith on my part. I needed him to fully understand that I needed a logical progression in our lessons and I also required a project that made sense. I told him from the outset that he needed to explain things as if he were teaching a baboon because that's kind of how I feel when I am venturing out of my comfort zone; a clumsy and completely moronic being that without proper and careful training might end up using the computer as a cutting board. He said he understood, promised he wouldn't call me stupid,(although we have already skirted the edges of this vow) and then tried to pep-talk me with platitudes like I am one of the smartest people he knew and that I could learn anything. Does anybody else think that this is the strangest mating dance, EVER??

We decided that we would use these lessons to complete an assignment. Together we would attempt to design a new website for DawnPonders. Of course, I have visions of Ferraris and Lamborghinis dancing off of my fully interactive and elegantly designed screen, while The Husband is instead trying to show me how to build a Lada and drive standard with the hope that we manage to spell DawnPonders correctly, but I will take my successes wherever I can get them.

And so we began.

Today's lesson consisted mainly of me trying to create a header. I was ready to simply type the title of the page into our programming box and be done with it but of course, nothing in computers is that easy. We have now taken to communicating with each other through jargon. That's the techy word for bullshit. He uses words like bits, bytes, hexadecimal, and binary. He had me talking tags and attributes and modifiers. Is anybody else out there suffering from the vapours? Are you hot yet? He kept side-glancing me to make sure that I wasn't upset and when he saw that my eyes were crossed and my skin had considerably paled, he asked me if I was about to have a meltdown. Meltdown?? I was so evaporated my shoe size had shrunk. Forty-five minutes into the process we had created this.
Looks impressive, doesn't it?

But in reality, all we really managed to get accomplished was this.
I hope you like the colours because those fuckers took me forever to understand.

We had a chat with Younger Son and His B'shert last night after all of this was done. My beautiful boy is a computer whiz just like his dad and has taken it on as his calling and as his profession. Many a day has passed where both my daughter-in-law and I have exchanged glazed over expressions as our men devolve into Java-spouting cyborgs, lost in a conversation that has no discernible meaning on this planet unless you too happen to be a Java-spouting cyborg. After assuring my son that if this experiment with The Husband should fail that I wouldn't be calling on him to rescue me from this soul-sucking experience, he proceeded to tell me that this wasn't really programming but rather it was merely design work and that the real labour was still in the offing. Thanks, Son. With your positive encouragement skills I know you'll make a great dad someday.

At around midnight last night, I roused The Husband from his early REM cycle to ask him to explain the hexadecimal system to me again. (This actually does matter in the context of our programming because of a discussion we had involving colour choices using HTML.) We had previously engaged in this conversation last year while watching the movie The Martian. Remember the scene when Matt Damon is trying to converse with NASA and he needs a system that works better than simple yes/no? Of course, my fifty-something brain can't retain shit like this any longer, so I needed a refresher and for some reason, I needed it at midnight last night. He mumbled something about finding me serious medical treatment before he drifted back off to sleep. This morning, he re-engaged this baboon like it was her first time with computations. He asked me what I remembered from third grade. I can't even recall who my teacher was in third grade, let alone math from that mesozoic era. He used house diagrams (remember those?) to demonstrate to me the difference between base ten and base sixteen. Is there such a thing as a dyslexic in math. He had me multiplying 10x1 vs 16x1. Seriously. He did. I swear the baboon would have mastered it faster. And then I watched him calculate and convert an RGB (red, green, blue) number into hexadecimal....in his head!! Me? I'm still back on 10x1.

In the words of that great sage Scarlett O'Hara..."Tomorrow is another day."