I maked arrays.


I love The Awkward Yeti and the Gall Bladder. I think everyone who loves Gall Bladder has adopted “I maked these”. Surely. 

In my previous post, I challenged myself to play with the basics so that I get muscle memory in so that I avoid sloppy errors. Another bonus to the “task” of playing with code for fun and for myself is that since no one else knew what I was doing or had assigned the task, I couldn’t go to anyone but The Googles for help.

I created a haiku builder. I kept the HTML and CSS simple. They weren’t what I was working on. All I wanted to do was build a few arrays and use them to create something. Anything. Build them and use them. *sniff* I’m growing up. 

Not too much, though. As you can see:

Surge:  The Haiku Builder.

GitHub: https://github.com/ihatetoast/haiku-maker


Happiness with final version: 4.5/5 (Would like to see CSS look purty.)
Wheees: Doing this in 5 hours while watching Murdoch Mysteries.
Grrrrs: Figuring out how to reset the div without blowing it all to hell.
What I would change or add: Make it more concise. Build on to the arrays so that eventually there are ways I could prompt the user for a favorite animal and “customize” it … -ish.
What’s next: B is for Boolean.

Div, div, and array. Around the corner function’s made.

Now stick those words into this classic:

A is for Array

Muscle memory. I don’t have it in coding yet. It’s getting there, but too often I forget the ( )s, { }s, or mix up when to use a comma and when to use the semicolon. Some of this is because of my background in editing and proofreading. No space between console.log and the opening parentheses? You’re killing me, Smalls. 

Without the muscle memory, I am spending too much time thinking about the syntax and not the logic needed, plan of attack, or where I could get a decent slice of chocolate cake in south Austin. While I’m learning to code, I’m going to make myself go back to what I already know in theory, but don’t have in muscle memory. 

This leaves me with a bunch of tools that I know the names of, but don’t remember to use or sometimes use inefficiently. I’ve grabbed a bangy thing to get a twisty thing into a piece of wood. I eventually remember that I do not use a hammer with a screw, but in a fast-pace coding school, I don’t think I’m starting projects correctly or efficiently. So, where to start?

Arrays. I can make them, but I forget to use them or am so full of anxiety about completing an assignment on time, that I barely remember how to spell array, much less use one. The alphabet starts with A, so why not start here?

Task: build a basic haiku builder using arrays
Due: Tuesday 29 March 2016 [update: done]