Tuesday, February 25, 2014

JavaScript Hoisting

JavaScript lets you declare and initialize variables at any location within a function. You can even reference a function variable before you reach the variable declaration – How is that possible?

JavaScript does some work behind the scenes to bring all variable “declarations” to the top of a function. This process of automatically moving the variable declaration to the top is known as “hoisting”.

Variable declaration and assignment are two different things. JavaScript only hoists the declaration and assigns “undefined”.

Moral of the story – Always declare and initialize function variables at the beginning of JavaScript functions.

Thursday, February 20, 2014

Search Exactly What I Asked

Google makes an effort to improve search results by correcting spelling errors, using sites you visited before, and synonyms of search terms. This can be very helpful, but sometimes you want to search for exactly what you entered.

The Verbatim result feature is the solution.

How Do I Enable Verbatim?

  • Visit www.Google.com
  • Enter your search criteria and click the Google Search button
  • After your search results are displayed, click “Search tools”
  • Expand the “All results” dropdown and select “Verbatim”

Wednesday, February 12, 2014

The Truth About Multiple H1 Tags in the HTML5 Era

We've all read the guidance to use only one <h1> tag per page.  That guidance changes using HTML5 sectioning content tags of <section> and <article>

Kezz Bracey has a great article clarifying the use of multiple <h1> tags.

Monday, February 10, 2014

Writing Software is Like Playing Music

Software development has parallels to other creative endeavors like being a musician or an artist.
  • Experience is gained through years of work and mastery of many skills and techniques.
  • Passion for the craft motivates the desire for continuous learning and improvement.
  • It's fun.
  • A complex product is divided into smaller, manageable pieces that integrate well together.
  • Consumers of the product can benefit from the work and find pleasure in it.
Did I mention,that it's fun.

There are only 26 letters, 10 numbers, and a handful of other characters. All you have to do is type the right keys in the right sequence. Is it a coincidence pianos and laptops both have keyboards?

Contact me at Blue Canyon Software to discuss your custom software development needs.