Um... no.

Blog

Um.... no.

Just no.

No, wait, more like, "Fuck no."

5 + 3 ways to hide an element with CSS

Blog

I had a phone interview today with a company that I am incredibly hopeful to be contracting for shortly. The work is in my area of expertise (hello, Drupal); they seem okay with my request for 20 hours a week for the next 2-3 months (with the understanding that I can ramp up to 40 if needed for a project, as long as I drop back down to 20 as the norm); and I'd be working with a friend I've worked with before. Always a good thing.

In the interview, I was asked, "Using CSS, how many ways can you hide an element? Not from a bot, but from a user. I have been told four, but can remember only three."

I thought about it for a moment, and replied, "I can give you five."

Such the overachiever.

Starting with this layout:

The the five ways I answered:

1. Use the display property.

Pragmatic Guide to Sass

Book Notes


Pragmatic Guide to Sass, by Hampton Catlin and Michael Lintorn Catlin
128 pages
Published: 2011-12-16
ISBN: 978-1-93435-684-5

When I was first becoming a professional programmer, I worked with a consultant who, despite being newer to the language and IDE I was using, was able to teach me some new syntax and features. When I asked how he knew these things, he pulled out an intermediate book on the language and commented, "You find a lot of new tricks reading the manual cover to cover."

In that vein, I picked up the Pragmatic Bookshelf's Pragmatic Guide to Sass by Hampton Catlin and Michael Lintorn Catlin. It is a relatively short read at 126 pages, made shorter by the function reference that starts at page 107, and the Haml introduction at page 114

The book is a fast read, made up of tasks and Sass solutions. The basics of the concepts are introduced: variables, imports, mixin, extend, math operators, @each and @if, along with a number of conventions that would surprise anyone who didn't know about them. I'm thinking of the underscore-prefixed file name convention for Sass files that are not standalone after compiling (partial imports) with that comment.

The book is a couple years out of date, and could be updated to include new Sass and Compass features such as namespacing and possibly defining custome sass functions.

As a introduction book, which this book describes itself as, it works. As a refresher book, which this book describes itself as, it works less well. It skims over some of the whys one would use a feature, in favor of how one uses a feature, and doesn't contrast features much. As an introduction, this could be okay for most designers or developers. I prefer the whys, even if only in a sidebar.

Wasn't I just so clever?

Blog

Last night, before going to bed, I wrote a schedule for myself for today. This morning, I jumped out of bed, and started in on that schedule. First item: walken the doggen.

Simple enough. As I grabbed the leashes, though, I thought, hey, the big dog always has the bigger, longer leash, and the smaller dog always has the shorter leash. Why not switch them up?

I put the longer leash on the small dog, and the shorter leash on the big dog. Wasn't I just so clever? The little dog is going to have a taste of freedom, and the bigger dog won't worry me as much. Smart me!

We walked outside. They ran down the porch steps as I locked the door. The tug as they hit the bottom of the stairs should have clued me in.

The Joliet Toilet

Blog

For years, I struggled to remember how to spell toilet. I would spell it either T-O-I-L-E-T or T-O-L-I-E-T, and rarely figured out when I spelled it incorrectly.

Today, I think I figured out why I struggled:

I lived off Joliet Road when I was kid, so OF COURSE toilet is spelled T-O-L-I-E-T.

Wasn't until Kris told me a couple years ago, "Just spell it TWAAAAAAAAAAA-LET and you'll be fine," that I was finally able to spell toilet correctly.

Go me.

Toilet.

Toilet.

Toilet.

Toilet.

Toilet.

Toilet.

Toilet.

Toilet.

T-O-I-L-E-T.

Pages