JavaScript Interview Questions

So I’ve been learnin’ me some mo’ JavaScript. I know the basics, and I know jQuery fairly well, but jQuery != JavaScript. I’m reading Douglas Crockford’s JavaScript: The Good Parts while listening to his Yahoo! videos on pretty-much the same content.

I just ran across a few posts on JavaScript interview questions; these are a good reminder of key parts of JS to pay attention to:

Open Source Book: Book of Speed

Stoyan Stefanov (@stoyanstefanov) is known as one of the ‘sultans of speed’. In December 2009 he wrote a 24-day series on page speed which turned into a book offer.  He’s now writing that book in true open-sourced fashion.

Stoyan’s work-in-progress book is available to read at Book of Speed. If you have anything to add or even edits, you can fork the project on Github and submit a pull request with your changes.

Note: Take a look at the Github project just to see how it’s structured. Chapter text is in the /src folder with a build script to generate the TOC. This could be made into a very nice book starter project for anyone.

Disable Pay-Wall

My wife is originally from Ohio and still likes to keep up with the happenings in her town. Recently, the Canton Repository and Massillon Independent erected a pay-wall similar to the New York Times. You get 20 free articles, then you must be a member for any additional articles. The problem is when you follow a link into the newspaper website, you get a large signup box that covers the screen, and closing it redirects you back to the homepage leaving you to hunt down your article again.

Below is a quick fix to stop that pesky box from coming up. Just set this as your user stylesheet in your favorite browser.

1
2
#fancybox-tmp, #fancybox-loading, #fancybox-overlay, #fancybox-wrap
{display:none !important;}

An Event Apart, Boston 2011

An Event Apart just wrapped up, and the interwebs are buzzing with links, talks, and ideas. Luke W and Jeremy Keith both live-blogged several talks. Links to talks and Jeffrey Zeldman’s post-envent follow up are below.

Luke Wroblewski (@lukew)

Missing:

  • The CSS3 Anarchist’s Cookbook; Eric Meyer
  • Smoke Gets In Your Eyes; Andy Clarke
  • Outing the Mind: Designing Layouts That Think for You; Mark Boulton
  • Disaster, DNA, and the Fathomless Depth of the Web; Jeff Veen

Zeldman’s official roundup

Google’s ‘Book’

Google’s new fancy web book — “20 Things I Learned About Browsers and the Web”.   I haven’t actually read the book; I’ve been too busy just looking at it.

  • HTML5 + JavaScript
  • Pretty URLs
  • Real browser history thanks to some fancy JavaScript.
  • Non-Flash page animations
  • Content search
  • ‘Resume place’ if you leave the page before finishing
  • Page thumbnails in the footer
  • Table of Things (contents)
  • Light and dark themes
  • Great illustrations

I can only hope this is somehow a HTML-book framework to be reused. That would be great.

http://www.20thingsilearned.com/

UPDATE John Gruber at DaringFireball has a nice writeup on the book and a few links.

Installing Windows 7 on MacBook Air BootCamp

I wanted to run Windows 7 BootCamp on my new MacBook Air. I didn’t want to spring for the external SuperDrive for a one-time use, and BootCamp says you have to have a physical drive.  Turns out, with a little tweaking, you can use a USB flash drive instead.

  1. Install rEFIt on the MacBook Air. Sometimes you have to reboot twice before rEFIt works.
  2. Use the Windows 7 USB/DVD Download Tool to create a bootable USB drive with the Windows 7 ISO.
  3. Reboot the MacBook Air and boot off the USB Flash drive. That’s it. It’s actually pretty easy.

Intro to HTML5 and IE

I’m about to start a small new project, and I was thinking it’d be a perfect time to start testing HTML5. However, this project must work in IE6 - there’s no negotiation on that.

Here are my brief findings while research HTML5 in general, and if it’s viable for an IE6 world.