Eclecticism
I have a number of subjects that I’ve been ruminating but haven’t sat down to explore further: custom WordPress themes, our home entertainment set-up, merging all contacts, learning ukulele with a 2 year old, etc. Instead I think I’ll just take a minute to look at how I spend a day.
It’s now 12:03 on a Wednesday. It has been a slow work week. I finished a project last Friday. I’m waiting on feedback on two other projects. And I’ve made contact on a couple leads for new projects. It’s what I call a ‘holding pattern’ week. Actually, I just made that up, usually these work-less weeks are more like freak-out stress weeks. I am learning to lean into them and take the opportunity to expand my knowledge, practice skills and get chores done.
Illustrator
I started a class on Skillshare.com, learning illustrator, by Brad Woodard. It’s a tool that I’ve used in the past, but I’m very out of date on the software. I’ve started recreating a poster for the Swiss lake Silvaplana.It’s super fun and challenging. It’s certainly a tool that I’ll use in the future.
Cookies
My second task of the day is doing a little free-work on a site I did for Deko-Design. It was a small 3 page HTML site that runs an animation on the index page. I wanted to get it so that a visitor only sees the animation one time. The obvious solution is to use cookies to check if a visitor has been to the page or not. I did a little research on how to use cookies, it doesn’t seem too complicated and it’s made even easier by using the jquery.cookie library. This allows me to just say $.cookies to write to the browser cookie. Easy enough.
However, I didn’t write the animation that opens the site, and since my javascript skills are limited at best I had trouble decoding what the code did. It’s small and pretty simple, but still Greek to me:
$(function() { $('div.transitional').click(function() { $('div.intro').removeClass('hidden'); $('div.final').off('click'); });
ShowDiv($("div.transitional.hidden")[0]); }); function ShowDiv(target) {
target = $(target); target.removeClass('hidden'); target.delay(500).animate({ opacity: 1.0 },300,'easeInExpo',function() { ShowDiv($("div.transitional.hidden")[0]); }) }
So I went over to Stackexchange to get advice from the many sages on that site. I received a couple of good answers, though honestly I haven’t been able to get it to work yet. That may be this afternoon’s task.
Of course, the reason I’m doing this task off-clock is that it’s taking me hours, when I would only feel comfortable charging for an hour or less to write, debug. If I do it this one time for free it becomes another tool in the box that I can use. Again, future planning, fun right now.
Python
My final activity for today is learnpythonthehardway.org by Zed Shaw. There are a number of ways that I’m learning to code. First is like I described above, taking on tasks I’m unsure of at a low or free rate. This is a great way to tackle practical tasks, though often it results in just copy and pasting found script. I’ve done some rudimentary learning through codeacademy.com, a great resource as a beginner. I’ve learned the basics of javascript and jQuery there(as well as HTML and CSS). Finally, I’ve enrolled and started two different MOOC’s at coursera, both Intro to Python. I have never finished those courses, though I came close. Instead I seem to learn a little of the syntax but am missing the bigger picture, “how to code” goal.
Then, I found learnpythonthehardway and was totally intrigued. The title got me at first, then when I looked at his method it dawned on me that he was teaching towards my learning style. (Interestingly, he discounts learning styles in the introduccion.) He sets up the book like an exercise in patience and repetition. The tasks are easy at first and are very repetitive. He only slowly builds skills over the course of many chapters. Every other way that I’ve learned coding has me writing conditionals or for loop within a dozen chapters. I’m currently on chapter 21 and he only just brought in the concept of functions.
Will this make me a programmer? No, probably not, but I’m hoping through 52 chapter I will have a solid grasp of not just the Python syntax, but also those broader concepts I still struggle to differentiate: methods, functions, classes, etc.
Between these tasks, listening to podcasts and doing some household chores I can fill up a week pretty well and feel pretty good about what I’ve done. Of course the goal is always to do more paid work, but if I can settle down and lean into these off weeks I can learn a little something also.