Day 22: Lost in the DOM…
This was just one of those days. It began well enough…I was understanding everything, and the first exercises went well. Then the **** hit the fan. I do realize that a huge part of what we do concerns interacting with the browser and the DOM; but I swear, at times I really miss our beginning labs, when all we did was code and run in the Code Runner console. The worst dread on earth is when you try to run your code, NOTHING HAPPENS, and then you have to hit F12 in the browser. Whenever I see that dreadful flaming red type, flashing angry error messages across the console, I always want to scream at the top of my lungs, “Dear God, WHAT FRESH HELL IS THIS???” Then I remember that I’m old enough have parented the vast majority of my fellow students, and that it would probably be undignified to cry and throw things.
Today, I spent a good part of the afternoon with the bloody F12 console. We’re doing some god-awful routine where we have to take a substr of similar <img> ids (image1, image2, image3) to get the numbers on the ends (1, 2, 3). Then we have to concatenate the “para” part of the paragraph <p> ids (para1, para2, para3) to these like some nightmare from Frankenstein, and — I’m not making this up — take the alt attributes of the img tags and shove that alt text into the <p> html.
I think it was after the 12th time I tried to make this work that I decided I really needed to knit…
I know…all the ghastly code is going to be waiting for me in the morning. On the other hand, I got a mental health break, and my little intarsia sheep are really coming along!
Dear Wildknitter, I am sure you ARE a programmer at heart! You went from data patterns to knitting programs last night, and sheep appeared, your desired result!……..unless, of course, you intended to knit clouds…………… and then you’ll have to hit F12……….. for the errata?
Carol
Yes! Thankfully the sheep are coming out well better than my code from yesterday. I’m now in the front of the sweater, which is similar to the back, except for the dip for the collar.
What cute little sheep! The rest sounds interesting in a twist your brain into a pretzel way.