Code Rage

The plan was to have fun with Google’s speech API, but that didn’t happen. No. Totes not true. I had a great time with it over in Codepen.io; however, my own local host and Chrome duked it out in the “Who can be the biggest jackhole” contest. I tried settings on my laptop. I tried Chrome settings. I Googled. I searched Slack Overlord. I asked real humans in touching distance. Nuffink. I won’t go into it other than to say that there may have been emails, slacks messages, and tweets that were in all caps. RAGE AGAINST THIS MACHINE OR SERVER!

Why this sucked glass shards was that I couldn’t test the JavaScript functionality of it. Not without adding, committing, pushing, testing, rinsing, lathering, and repeating. What a waste of time. I have three hounds at home. Two of them decided to eat that (don’t know what that is) and my weekend was spent checking the Googles for answers between cleaning up squirts and steam cleaning carpets. I’m not a prissy woman, but even I get over cleaning up Satan’s pudding multiple times a day.

Not one hour of uninterrupted code.

So this is where I settled for now: Whisper sweet nothings to Divvie.

How happy am I with it? If I were to lighten up my inner Francis, I’d say very. It was a lot of fun and there’s so much potential. My frustration with the mic was a huge stumbling block. I’ll still work on why, but if I put this project to bed, at least I won’t have that poo-flinging monkey on my back. I would return to Divvie and DRY it out. Use object-oriented programming. OR address the need to do this again but DRYer and try something new.  I KNOW I KNOW I KNOW!! I have wanted to do a German “der die das” game. That would work for OOP. OOP there it is!

Silver lining? I realize how much I love to code and learn how to better code when I do this for fun even when I’m exhausted from being the hounds’ poo bitch.

That’s win.

 

A great Dane

I’m very proud of my housemate:

I am a woman who loves her space, so accepting a housemate was hard for me, but I could not leave a young person out in the cold. Okay. It’s August in Texas, but nothing chills like heartbreak, confusion, and feeling like you have to give up.

I will respect his privacy, but I am just so proud of him. Such a good human.

Here is what I posted about him on Facebook:

I am a proud not-mom: I have a great Dane with me. He’s a 21-yo dev student from Denmark. Why is he great? He lost his housing when he and his girlfriend broke up. He has no money for rent in Austin, so I told him and the dev school that he could stay. Here’s what I love about him. He is an excellent student. He just gets it right away. Instead of doing his homework and coming home to watch TV or improve his work on his own in his room, he stays at the school and helps his classmates, often staying until after 9p. And he loves it. He loves learning out to teach others and feels proud of his classmates when they do well. He feels guilty that he cannot pay rent, but he does. He pays it forward without expectation of recognition or reward, and that is his rent. That’s what makes him a great Dane. And he lavishes attention on my dogs, so … Winner winner kibble dinner.

When I was struggling with the speech API, he looked at my code and convinced me it was my computer’s settings. I cannot test my code on my own computer and have to commit and push every stinking time. Just my laptop. What have I done? I’d have lost my mind without his help. He tells me that he did nothing, and that my code was fine, but he sat with me and read and tested it. He didn’t walk by and go to bed. Sure, my code was fine, but my frustration level was not. I still have to commit and push, refresh, rinse, lather, repeat, but at least I know the API part works. And like I said above, that’s rent enough.

Oh, and he’s promised to help me pronounce “red porridge with cream” in Danish.

Here’s to you, my Great Dane! You’re awesome inside and out.

100 Days of Code: Lover Leaver

On an AJAX kick. Today I played with the Words API. I’m not done with that API at all! That is a playground I’ve just barely sampled. Today I just wanted to play with getting rhymes. I couldn’t think of a useful app to make with rhymes, but I’m nothing if not a killer smartass, so I reached into my smartarasscockles and came up with a way for you to find 50 ways to leave your lover.

Lover Leaver

I use Simon and Garfunkle’s lyryics (Okay, Paul Simon’s) chorus to make an array of leads (var leads = [“Make a new ”, “Drop of the ” …]) and chose a random rhyme from the array returned from the AJAX request. Of course this and that some rhymes are iffy lead to lunacy. I can’t (or don’t know how) to just get nouns and other filters to make this make sense, but if you want a logical way to leave your lover, maybe you should make your own damn decision and not use my app, right?

I’d have liked to do more, but I’ve run out of time. I have my limits.

I can’t believe AJAX was hard for me. As I play around with third-party APIs, I can’t recognize where I got stymied. Moly holy. Stress can be blinding.

Ha! AJAX is my buddy.

100 Days of Code: Numbers API

When I was in the midst of my coding bootcamp, my kitchen and utility rooms flooded because … I don’t know. Something blocked it, obviously, but I chose not to drill into my house. I run the washing machine water outside. That’s solved the problem. I also have very green grass. But at the time, was I this blasé about it? Aw hayull no. I fell apart. I saw the damage and wondered if I could afford it. From that day on, everything was about finding a job to pay for repairs. I could not think straight. What would I have to sell? Do I really need to wash my clothes?

That stress became a huge obstacle, and it came just as we learned about AJAX requests. I don’t know if it was clumsy typing or what, I was just not able to do them well. Sometimes not at all. Not without help. 

Now that AJAX is not part of homework, but just part of coding for fun to keep up the skills, I do not see the difficulty. Not at all. I am looking for third-party APIs to play with, and I’m not finding that getting or manipulating the data is something I cannot do. What a lesson in the damage stress causes us. 

I don’t know how I’ll use this later, but I had fun with it. The only awkward moment was getting excited to see my first trivia snippet on the date and then to read that it was something about the Nazis. 

Numbers API trivia

(I will also add 4 more chapters to “Learn Python the Hard Way” to my 100DoC. I WANT CREDIT, DAMMIT!)