<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>In usability we trust</title>
	<atom:link href="http://www.svennerberg.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com</link>
	<description>Web Applications Designed for Humans</description>
	<lastBuildDate>Wed, 18 Apr 2012 18:06:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Mobile Design Pattern Gallery by Theresa Neil</title>
		<link>http://www.svennerberg.com/2012/04/mobile-design-pattern-gallery-by-theresa-neil/</link>
		<comments>http://www.svennerberg.com/2012/04/mobile-design-pattern-gallery-by-theresa-neil/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 18:06:07 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Book]]></category>
		<category><![CDATA[Design patterns]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=4013</guid>
		<description><![CDATA[Therese Neil has compiled an impressing collection of current Mobile UI&#8217;s in this book. It serves both as an inspiring read and as a go to reference when designing Mobile User Interfaces. I&#8217;ve already found use for this book as &#8230; <a href="http://www.svennerberg.com/2012/04/mobile-design-pattern-gallery-by-theresa-neil/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.svennerberg.com/2012/04/mobile-design-pattern-gallery.jpg"><img src="http://media.svennerberg.com/2012/04/mobile-design-pattern-gallery.png" alt="" class="alignright" /></a>Therese Neil has compiled an impressing collection of current Mobile UI&#8217;s in this book. It serves both as an inspiring read and as a go to reference when designing Mobile User Interfaces. </p>
<p><span id="more-4013"></span></p>
<p>I&#8217;ve already found use for this book as I&#8217;ve checked out different design pattern on filtering for an app that I&#8217;m currently designing. And that&#8217;s one thing this book excels at &#8211; providing fast answers to urgent needs. </p>
<p>The book is organized into ten different sections that each presents the design patterns in a concise and brief manner. The focus of this book is not so much on the theory behind each pattern but rather what established patterns exists and how to use them. Thanks to this approach it&#8217;s quick to find a suitable pattern.</p>
<p>I&#8217;ve read the e-book edition and it features beautiful screenshots in full color of different apps along some sketches that illustrate the major patterns.</p>
<h2>Device Agnostic</h2>
<p>The book tries to be device agnostic and displays patterns from both iOS, Android, WebOS and BlackBerry which is nice. Unless you have all these devices yourself it can be hard to explore how different apps on different platforms have solved a problem.</p>
<p>A problem with this kind of books is that the evolution of Mobile User Interfaces moves so fast that the patterns and examples, risks being outdated pretty fast. As I read the book, some screenshots already differed from the latest version of the apps.</p>
<h2>About the author</h2>
<p>Theresa Neil is a User Experience Consultant from Austin Texas. She&#8217;s previously co-authored another brilliant book with Bill Scott called <a href="http://www.amazon.com/gp/product/0596516258/ref=as_li_ss_tl?ie=UTF8&#038;tag=inusabiwetrus-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596516258">Designing Web Interfaces: Principles and Patterns for Rich Interactions</a><img src="http://www.assoc-amazon.com/e/ir?t=inusabiwetrus-20&#038;l=as2&#038;o=1&#038;a=0596516258" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.</p>
<p>You can learn more about Theresa on her personal site, <a href="http://www.theresaneil.com/">www.theresaneil.com</a>.</p>
<h2>Conclusion</h2>
<p>This is a great book to have when cranking out Wire Frames and Prototypes for mobile UI&#8217;s. You can quickly explore the most common solutions to design problems and also some anti-patterns to avoid. If you&#8217;re into the mobile app business I highly recommend you pick up a copy!</p>
<p>You can see several of the design patterns online at <a href="http://mobiledesignpatterngallery.com/">mobiledesignpatterngallery.com</a>. There&#8217;s also links to a few chapters that&#8217;s been published online.</p>
<h3>Book information</h3>
<dl class="book-info">
<dt>Title:</dt>
<dd>Mobile Design Pattern Gallery: UI Patterns for Mobile Applications</dd>
<dt>By:</dt>
<dd>Theresa Neil</dd>
<dt>Publisher:</dt>
<dd>O&#8217;Reilly Media (March, 2012)</dd>
<dt>Pages:</dt>
<dd>280</dd>
<dt>ISBN:</dt>
<dd>1449314325</dd>
<dt>ISBN-13</dt>
<dd>978-1449314323</dd>
</dl>
<p><a href="http://www.amazon.com/gp/product/1449314325/ref=as_li_ss_tl?ie=UTF8&#038;tag=inusabiwetrus-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1449314325" title="Buy Mobile Design Pattern Gallery: UI Patterns for Mobile Applications from Amazon.com">Buy Mobile Design Pattern Gallery from Amazon.com</a><img src="http://www.assoc-amazon.com/e/ir?t=inusabiwetrus-20&#038;l=as2&#038;o=1&#038;a=1449314325" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p class="note">
<strong>Note:</strong> I wrote this review for <a href="http://oreilly.com/bloggers/">O’Reilly’s Blogger Review Program</a>. Their deal is pretty good: You get a free e-book to read and once you post a review you get another. Try it yourself if you&#8217;re interested in reviewing books.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2012/04/mobile-design-pattern-gallery-by-theresa-neil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Multiple Markers to Google Maps from JSON</title>
		<link>http://www.svennerberg.com/2012/03/adding-multiple-markers-to-google-maps-from-json/</link>
		<comments>http://www.svennerberg.com/2012/03/adding-multiple-markers-to-google-maps-from-json/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 07:48:55 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Google Maps API 3]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3922</guid>
		<description><![CDATA[Recently I&#8217;ve been receiving several emails from readers of my book, Beginning Google Maps API 3, that has a problem adding information to multiple InfoWindows when loading markers dynamically via JSON data. In my book I have in fact described &#8230; <a href="http://www.svennerberg.com/2012/03/adding-multiple-markers-to-google-maps-from-json/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://media.svennerberg.com/2012/03/gmmlogo.gif" alt="" class="alignright" />Recently I&#8217;ve been receiving several emails from readers of my book, <a href="/bgma3/">Beginning Google Maps API 3</a>, that has a problem adding information to multiple InfoWindows when loading markers dynamically via JSON data.</p>
<p>In my book I have in fact described how to add multiple markers from JSON and how to attach unique InfoWindows to each of them. What I haven&#8217;t described is how to get the JSON-data to actually show up in the InfoWindows. This tutorial aims to describe how to do just that. </p>
<p><span id="more-3922"></span></p>
<h2>The JSON</h2>
<p>In this example I&#8217;m going to use the capitals of the Scandinavian countries: Stockholm, Oslo and Copenhagen. Each capital will be displayed on the map with a marker. When you click a marker an InfoWindow will popup with some brief information about the city.</p>
<p>The JSON data looks like this:</p>
<pre name="code" class="js">
var json = [
  {
    "title": "Stockholm",
    "lat": 59.3,
    "lng": 18.1,
    "description": "<strong>Stockholm</strong> is the capital and the largest city of Sweden and constitutes the most populated urban area in Scandinavia with a population of 2.1 million in the metropolitan area (2010)"
  },
  {
    "title": "Oslo",
    "lat": 59.9,
    "lng": 10.8,
    "description": "<strong>Oslo</strong> is a municipality, and the capital and most populous city of Norway with a metropolitan population of 1,442,318 (as of 2010)."
  },
  {
    "title": "Copenhagen",
    "lat": 55.7,
    "lng": 12.6,
    "description": "<strong>Copenhagen</strong> is the capital of Denmark and its most populous city, with a metropolitan population of 1,931,467 (as of 1 January 2012)."
  }
]
</pre>
<p>Note that the JSON data above contains the following information:</p>
<ul>
<li><strong>A Title in plain text</strong><br />We will use this information for a tooltip on the marker</li>
<li><strong>A Latitude</strong><br /> For the latitude portion of the position</li>
<li><strong>A Longitude</strong><br /> For the longitude portion of the position</li>
<li><strong>A Description</strong><br />The content that will be displayed in the InfoWindows. I&#8217;ve included some HTML in it to illustrate that you&#8217;re not restricted to just plain text.</li>
</ul>
<p class="note"><strong>Note:</strong> In this example I have the JSON data in the same js file as the code, but in a real-life scenario you would probably grab it from an external source such as a back-end server or a web service.</p>
<h2>Creating the map</h2>
<p>First of all we need to create a map. The map will be centered over Scandinavia so that both Stockholm, Oslo and Copenhagen are visible.</p>
<pre name="code" class="js">
// Creating a new map
var map = new google.maps.Map(document.getElementById("map"), {
  center: new google.maps.LatLng(57.9, 14.6),
  zoom: 6,
  mapTypeId: google.maps.MapTypeId.ROADMAP
});
</pre>
<p>If you feel unsure how this all works I recommend that you read <a href="/2009/06/google-maps-api-3-the-basics/">Google Maps API 3 – The basics</a>. It describes how to create a simple map.</p>
<h2>Adding Markers</h2>
<p>To create markers from the JSON-data we need to loop through it and extract the information for each marker.</p>
<pre name="code" class="js">
for (var i = 0, length = json.length; i < length; i++) {
  var data = json[i],
      latLng = new google.maps.LatLng(data.lat, data.lng); 

  // Creating a marker and putting it on the map
  var marker = new google.maps.Marker({
    position: latLng,
    map: map,
    title: data.title
  });
}
</pre>
<p>This will add markers to the map and they will all have their own unique title which will show up as a tooltip when you hover over them with the mouse.</p>
<h2>Adding InfoWindows</h2>
<p>Ok, so now we've created a map and added some markers from JSON data. So far it hasn't been that hard, the way of doing this is pretty straight-forward. But to attach the InfoWindows properly is a different story. It's now that it starts to get tricky.</p>
<p>First of all We're going to create a global <code>InfoWindow</code> that we will reuse for all markers. This needs to be created outside of the loop. So just above the loop in the code we insert:</p>
<pre name="code" class="js">
var infoWindow = new google.maps.InfoWindow();
</pre>
<p>This gives us an empty InfoWindow object that we can use on the map. </p>
<p>The next step is to attach a click event to each marker. In the code that executes we will fill the <code>InfoWindow</code> with the correct information and open it att the right location, pointing at the clicked marker. </p>
<p>At first glance it seems that you can do this the same way that you add markers:</p>
<pre name="code" class="js">
// Attaching a click event to the current marker
google.maps.event.addListener(marker, "click", function(e) {
  infoWindow.setContent(data.description);
  infoWindow.open(map, marker);
});
</pre>
<p>The problem with this approach is that when you're trying to add more than one <code>InfoWindow</code>, they will all have the same content as the one in the last iteration. To prevent this from happening we need to use something called a <strong>closure</strong>. </p>
<h3>Closures</h3>
<p>What a closure does is to persist the data in each iteration of the loop so that it's bound to that particular marker. </p>
<p>One way of doing this is by encapsulating the code inside an anonymous function that is instantly executed. You need to make sure to pass the information from the current iteration to the anonymous function. In our case <strong>we're going to pass the current marker and the current data</strong>.</p>
<p>This is kind of a confusing concept and a bit hard to explain, so lets instead look at some code.</p>
<h3>Implementing the closure</h3>
<pre name="code" class="js">
// Creating a closure to retain the correct data
//Note how I pass the current data in the loop into the closure (marker, data)
(function(marker, data) {

  // Attaching a click event to the current marker
  google.maps.event.addListener(marker, "click", function(e) {
    infoWindow.setContent(data.description);
    infoWindow.open(map, marker);
  });

})(marker, data);
</pre>
<p>By passing the data to the anonymous function we make sure that it will stay there. We're essentially creating 3 self contained objects (closures) from our 3 locations.</p>
<p>Now if we're try the code, it will work perfectly and each <code>InfoWindow</code> will display the right information.</p>
<p class="note"><strong>Tip:</strong> Nicholas Johnson explains how closures work in 5 easy bullet points in his short post, <a href="http://webofawesome.com/post/what-is-it-with-closure/" title="What is it with Closure? Javascript closure explained in 5 easy bullet points">What is it with Closure?</a></p>
<h2>Live Demo</h2>
<div class="wp-caption">
<a href="http://svennerberg.com/examples/multiple-markers-from-json/"><img src="http://media.svennerberg.com/2012/03/screenshot.png" alt=""  /></a>
<p><a href="http://svennerberg.com/examples/multiple-markers-from-json/">Check out the live demo</a></p>
</div>
<h2>Conclusion</h2>
<p>I hope that this example will clear out some confusion on this topic. Closures are a pretty confusing concept but once you understand how it works, it's something  you we'll easily be able to apply in your own code. Anyway, you should be able to grab the code from this example and use it as a boilerplate to tweak your own needs.</p>
<p>Happy Coding!</p>
<div class="book_push">
<img src="http://media.svennerberg.com/2009/09/bgma3-70.png" alt="" /></p>
<h3>My Google Maps book</h3>
<p>If you found this article useful you might be interested in my book <a href="/bgma3/" title="Read more about my book - Beginning Google Maps API 3"><strong>Beginning Google Maps API 3</strong></a>. It covers everything you need to know to create awesome maps on your web sites. <a href="http://www.amazon.com/gp/product/1430228024?ie=UTF8&#038;tag=inusabiwetrus-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1430228024" title="Buy Beginning Google Maps Applications from Amazon.com">Buy it on Amazon.com</a><img src="http://www.assoc-amazon.com/e/ir?t=inusabiwetrus-20&#038;l=as2&#038;o=1&#038;a=1430228024" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2012/03/adding-multiple-markers-to-google-maps-from-json/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Hello Meetod</title>
		<link>http://www.svennerberg.com/2012/03/hello-meetod/</link>
		<comments>http://www.svennerberg.com/2012/03/hello-meetod/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 21:24:58 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3837</guid>
		<description><![CDATA[As some of you might know, I left the life as an employee in September last year to pursue a new career as an independent consultant. Since then I&#8217;ve been busy establishing myself on the market. When I started out &#8230; <a href="http://www.svennerberg.com/2012/03/hello-meetod/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As some of you might know, I left the life as an employee in September last year to pursue a new career as an independent consultant. Since then I&#8217;ve been busy establishing myself on the market. </p>
<p><span id="more-3837"></span></p>
<p>When I started out I didn&#8217;t have any booked projects and was in fact a bit worried about how it would turn out. Luckily I&#8217;ve been fortunate enough to be engaged in several interesting projects that has really kick-started my new business. </p>
<h2>Say Hello to Meetod</h2>
<p>Until now I&#8217;ve been a sole proprietorship and have marketed myself under the name of this site, In usability we trust. But recently I&#8217;ve taken it a step further by registering a corporation with the name <strong>Meetod Sweden AB</strong>. </p>
<p>Meetod will have the same focus as I&#8217;ve had until now which is, <strong>Designing and Developing Top Notch Web Applications and Apps that work extremely well for the people that will actually use them</strong>.</p>
<p>In usability we trust will go back to being a blog and the sites for my business is found at <a href="http://meetod.se/" title="Meetod - Applications Designed for Humans">www.meetod.se</a> and <a href="http://meetod.com/" title="Meetod - Applications Designed for Humans">www.meetod.com</a>.</p>
<div id="attachment_3909" class="wp-caption alignnone" style="width: 402px"><a href="http://meetod.com"><img src="http://media.svennerberg.com/2012/03/meetod-com-screenshot-392x1024.png" alt="" /></a><p class="wp-caption-text">Meetod.com</p></div>
<h2>What I&#8217;ve been up to so far</h2>
<p>A lot has happened since last September that have enabled me to take this step. Here are some of the projects that I&#8217;ve been working on:</p>
<ul>
<li>Designing an Online Editor for <a href="http://bmobilized.com/">bMobilized</a> (still under production). </li>
<li>Creating a Map solution with both Google Maps and Bing Maps that&#8217;s a part of a product that <a href="http://www.positiontech.com/">PositionTech</a> offers to their customers.</li>
<li>Designing and Creating an iPhone/iPad App for <a href="http://www.el-info.se/">EL-Info</a> called <a href="http://itunes.apple.com/se/app/el-vis-q-a/id492215026?mt=8">EL-Vis Q&#038;A</a> (Available in the Scandinavian App Store)</li>
<li>Designing and developing an advanced Web Application aimed at electricians for <a href="http://www.el-info.se/">EL-Info</a> (still under production)</li>
<li>Leading the UX-design process for an iPad Poker Client for <a href="http://gtechg2.com/">GTECH G2 (Boss Media)</a> (still under production)</li>
</ul>
<p>Apart from that I&#8217;ve also been doing a few talks on UX-design and am currently holding a completely custom course in 10 parts on HTML and CSS for <a href="http://www.vismaspcs.se/">Visma Spcs</a>.</p>
<h2>Thank You!</h2>
<p>I&#8217;m really grateful to all of my awesome clients whom have entrusted me with these projects and enabled me to pursue my dream. With all of my heart, <strong>Thank You!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2012/03/hello-meetod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Little Book on CoffeeScript by Alex MacCaw</title>
		<link>http://www.svennerberg.com/2012/03/the-little-book-on-coffeescript-by-alex-maccaw/</link>
		<comments>http://www.svennerberg.com/2012/03/the-little-book-on-coffeescript-by-alex-maccaw/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 13:57:25 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3832</guid>
		<description><![CDATA[This book is a great introduction to the beautiful pseudo JavaScript language CoffeeScript. It&#8217;s written by Alex MacCaw that is also the author of JavaScript Web Applications, a book I reviewed a few month ago. So, what is CoffeeScript? CoffeeScript &#8230; <a href="http://www.svennerberg.com/2012/03/the-little-book-on-coffeescript-by-alex-maccaw/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.svennerberg.com/2012/03/the-little-book-on-coffeescript.png"><img src="http://media.svennerberg.com/2012/03/the-little-book-on-coffeescript-160.png" alt="" class="alignright" /></a>This book is a great introduction to the beautiful pseudo JavaScript language CoffeeScript. It&#8217;s written by <a href="http://alexmaccaw.com/">Alex MacCaw</a> that is also the author of <a href="/2011/10/javascript-web-applications-by-alex-maccaw/" title="JavaScript Web Applications by Alex MacCaw">JavaScript Web Applications</a>, a book I reviewed a few month ago.</p>
<p><span id="more-3832"></span></p>
<h2>So, what is CoffeeScript?</h2>
<p><a href="http://coffeescript.org/">CoffeeScript</a> is a programming language that compiles to regular JavaScript. What&#8217;s great about it is its concise syntax and the fact that it hides away some of JavaScript&#8217;s more ugly sides. It&#8217;s inspired by script languages such as Ruby and Python which both has a very terse syntax. </p>
<p>In short it&#8217;s a great way to efficiently write clear and maintainable code. </p>
<p>CoffeeScript has gained a lot of traction lately and has proven to be a more productive way to write JavaScript than to just write raw JavaScript. Ruby on Rails 3.1 for instance uses CoffeeScript by default. If you&#8217;re on the Microsoft .net platform, there&#8217;s several Extensions and NuGet packets available. You can also easily run your own complier whatever platform you&#8217;re on either via Node.js, Ruby Gem or JavaScript (There are probably even more ways).</p>
<h2>What about the book</h2>
<p>The book is short, only 60 pages, but manages to clearly explain how to use the language with well explained examples. Before reading this book I had not written any CoffeeScript code, but I was curious about it. It has kept coming up in lots of articles and tutorials lately plus the fact that the creator of CoffeeScript, <a href="https://twitter.com/jashkenas">Jeremy Ashkenas</a>, is also the creator of <a href="http://documentcloud.github.com/backbone/">Backbone.js</a> and <a href="http://documentcloud.github.com/underscore/">Underscore.js</a> which are two libraries that I use extensively in my projects. Reading this book has given me a nice introduction which have enabled me to quickly get started using it in a project. </p>
<p>The author, Alex MacCaw, has a clear writing style and explains the concepts through easy to follow examples that are thoroughly explained which makes the learning experience both enjoyable and efficient.</p>
<h2>My Verdict</h2>
<p>If you&#8217;re interested in getting started in CoffeeScript this book is a great and quick way to get you up and running fast. Since it&#8217;s only 60 pages long there&#8217;s really no reason not to. I have a hard time imagining a faster way to get going.</p>
<p><strong>The Little Book on CoffeeScript</strong> is Open Source and you can <a href="http://arcturo.github.com/library/coffeescript/" title="The Little Book on CoffeeScript on GitHub">read it online at GitHub</a>. If you prefer to read a the physical book or have it in e-book format you can buy a copy from <a href="http://www.amazon.com/gp/product/1449321054/ref=as_li_ss_tl?ie=UTF8&#038;tag=inusabiwetrus-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1449321054" title="Buy a copy of The Little Book on CoffeeScript from Amazon.com">Amazon.com</a><img src="http://www.assoc-amazon.com/e/ir?t=inusabiwetrus-20&#038;l=as2&#038;o=1&#038;a=1449321054" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> or from <a href="http://shop.oreilly.com/product/0636920024309.do">O&#8217;Reilly</a>.</p>
<h3>Book information</h3>
<dl class="book-info">
<dt>Title:</dt>
<dd>The Little Book on CoffeeScript</dd>
<dt>By:</dt>
<dd>Alex MacCaw</dd>
<dt>Publisher:</dt>
<dd>O&#8217;Reilly Media (January 31, 2012)</dd>
<dt>Pages:</dt>
<dd>60</dd>
<dt>ISBN:</dt>
<dd>1449321054 </dd>
<dt>ISBN-13</dt>
<dd>978-1449321055</dd>
</dl>
<p class="note">
<strong>Note:</strong> I wrote this review for <a href="http://oreilly.com/bloggers/">O’Reilly’s Blogger Review Program</a>. Their deal is pretty good: You get a free e-book to read and once you post a review you get another. Try it yourself if you&#8217;re interested in reviewing books.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2012/03/the-little-book-on-coffeescript-by-alex-maccaw/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My slides from World Usability Day</title>
		<link>http://www.svennerberg.com/2011/11/my-slides-from-world-usability-day/</link>
		<comments>http://www.svennerberg.com/2011/11/my-slides-from-world-usability-day/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 10:22:53 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[World Usability Day]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3749</guid>
		<description><![CDATA[Here&#8217;s my slides from my talk on World Usability Day. The event gathered around 90 people and was held at Visma in Växjö, Sweden. I&#8217;ve made the slides publicly available through SlideShare but please note that the Slides are in &#8230; <a href="http://www.svennerberg.com/2011/11/my-slides-from-world-usability-day/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://media.svennerberg.com/2011/10/wud-globe.png" alt="" class="alignright size-full wp-image-3685" />Here&#8217;s my slides from my talk on World Usability Day. The event gathered around 90 people and was held at Visma in Växjö, Sweden. I&#8217;ve made the slides publicly available through SlideShare but please note that the Slides are in Swedish.</p>
<p><span id="more-3749"></span></p>
<div style="width:425px" id="__ss_10134846"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/Svennerberg/design-fr-att-pverka" title="Design för att påverka" target="_blank">Design för att påverka</a></strong><iframe src="http://www.slideshare.net/slideshow/embed_code/10134846" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/Svennerberg" target="_blank">Gabriel Svennerberg</a></div>
</div>
<h2>Thank you</h2>
<p>Thanks to all who attended the event. I had a lot of fun giving the talk and it&#8217;s always nice when there&#8217;s a good crowd attending it. Also many thanks to my good friends Chris Jangelöv, Danne Nordell and Simon Winter who was also doing talks and helped organize the event.</p>
<h2>Watch the whole event</h2>
<p>The whole event was filmed and will be available shortly. I will update this article with a link to it as soon as I get it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/11/my-slides-from-world-usability-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watch my talk on Design for Influence online</title>
		<link>http://www.svennerberg.com/2011/11/watch-my-talk-on-design-for-influence-online/</link>
		<comments>http://www.svennerberg.com/2011/11/watch-my-talk-on-design-for-influence-online/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 08:10:00 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[World Usability Day]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3734</guid>
		<description><![CDATA[Today is World Usability Day and we celebrate that here in Växjö by having a lunch event where among other things, I will talk about Design for Influence. The event will start at 12pm and go on for about 1 &#8230; <a href="http://www.svennerberg.com/2011/11/watch-my-talk-on-design-for-influence-online/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://media.svennerberg.com/2011/10/wud-globe.png" alt="" class="alignright size-full wp-image-3685" />Today is <strong>World Usability Day</strong> and we celebrate that here in Växjö by having a lunch event where among other things, I will talk about<strong> Design for Influence</strong>. The event will start at 12pm and go on for about 1 hour. It will be streamed live and you&#8217;re more than welcome to join us.</p>
<p><span id="more-3734"></span></p>
<p>If you want to know a little bit more about what&#8217;s going to happen during the event, you can check out my previous post named <a href="/2011/10/world-usability-day-2011/">World Usability Day 2011</a>.</p>
<p class="note"><strong>Note:</strong> Sorry all you non Swedes, but the event is in Swedish.</p>
<h2>Watch the live event</h2>
<p>If you&#8217;re interested in watching the live event online here&#8217;s the details how:</p>
<ol>
<li>Go to https://visma.webex.com/visma-sv/j.php?ED=1145602&#038;UID=3701652&#038;PW=NNzQ2ZTg3OTFh&#038;RT=MTUjMTMw</li>
<li>Enter your name and email</li>
<li>If a password is required, enter <strong>cj</strong></li>
<li>Click &#8220;Delta&#8221;</li>
<li>Follow the on-screen instructions</li>
</ol>
<div class="call-to-action">
<a href="https://visma.webex.com/visma-sv/j.php?ED=1145602&#038;UID=3701652&#038;PW=NNzQ2ZTg3OTFh&#038;RT=MTUjMTMw" class="btn large primary">Join the session</a>
</div>
<p class="note"><strong>Note: </strong> I will update this post with information about how to watch the event afterwards as soon as I have the info.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/11/watch-my-talk-on-design-for-influence-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is your site mobile friendly?</title>
		<link>http://www.svennerberg.com/2011/11/is-your-site-mobile-friendly/</link>
		<comments>http://www.svennerberg.com/2011/11/is-your-site-mobile-friendly/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 20:05:47 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3709</guid>
		<description><![CDATA[Google has recently launched a new site to encourage Mobile Friendly Websites. It&#8217;s called GoMo and contains, among lots of useful information, also a test to see how mobile friendly your site is. I tested In usability we trust on &#8230; <a href="http://www.svennerberg.com/2011/11/is-your-site-mobile-friendly/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.svennerberg.com/2011/11/score.png"><img src="http://media.svennerberg.com/2011/11/score-160.png" alt="" class="alignright size-full wp-image-3713" /></a>Google has recently launched a new site to encourage Mobile Friendly Websites. It&#8217;s called <strong>GoMo</strong> and contains, among lots of useful information, also a test to see how mobile friendly your site is. I tested <strong>In usability we trust</strong> on it and I&#8217;m happy to report that <strong>it scored 4 out of 4 on the mobile-friendliness scale</strong>.</p>
<p><span id="more-3709"></span></p>
<h2>How big is the mobile web?</h2>
<p>The amount of web pages that are being accessed by mobile devices is increasing day by day. In fact traffic to mobile websites in 2010 grew by 600%, the year before that it grew by 300%. In the last quarter of 2010 it out-shipped the combined global market of laptop, desktop and notebook computers This happened 2 years earlier than analysts had calculated. So it seems that the mobile web is really exploding and at an accelerating speed. (Statistics from <a href="http://www.abookapart.com/products/mobile-first">Mobile First</a> by Luke Wroblewski)</p>
<div id="attachment_3711" class="wp-caption alignright" style="width: 255px"><a href="http://media.svennerberg.com/2011/11/report.jpg"><img src="http://media.svennerberg.com/2011/11/report-245x300.jpg" alt="" class="size-medium wp-image-3711 frame" /></a><p class="wp-caption-text">The test produces a 6 page pdf-report with your test result as well as personalized advice and best practices for creating mobile web sites.</p></div>
<h2>GoMo</h2>
<p>With the background of these numbers it&#8217;s not surprising that Google is encouraging companies and organizations to create mobile-friendly sites. After all, Google&#8217;s entire business model is dependent on that people can use the web effectively.</p>
<p>If you not convinced yet, here are some more statistics from the GoMo site. For example: </p>
<ul>
<li>&#8220;By 2013, more people will use there mobile phones than PCs to get online&#8221;</li>
<li>&#8220;Mobile Searches have grown by 4X since 2010&#8243;</li>
<li>&#8220;There will be one mobile device for every person on earth by 2010&#8243;</li>
</ul>
<p class="footnote">Source: <a href="http://www.howtogomo.com/en/#why-go-mo">GoMo &#8211; Reasons Mobile Matters</a></p>
<h2>Test your site</h2>
<p>I encourage you to <a href="http://www.howtogomo.com/en/#test-your-site" title="GoMoMeter">test your own site on GoMo</a>. Not the least for the fancy pdf report that you will get. You will also get personalized advice for your specific site as well as some best practices for building mobile websites.</p>
<h2>Need help?</h2>
<p>If you find yourself with a site that doesn&#8217;t score so well on the mobile-friendliness scale, don&#8217;t hesitate to <a href="/contact/">contact me</a> for a free quote. Maybe I can help you bring that score up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/11/is-your-site-mobile-friendly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World Usability Day 2011</title>
		<link>http://www.svennerberg.com/2011/10/world-usability-day-2011/</link>
		<comments>http://www.svennerberg.com/2011/10/world-usability-day-2011/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 21:56:59 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[World Usability Day]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3684</guid>
		<description><![CDATA[World Usability Day is on November 10 and me and a few other good people are giving a lunch seminar on this years theme, Education: Designing for Social Change. Here&#8217;s how it will go down: We will get together at &#8230; <a href="http://www.svennerberg.com/2011/10/world-usability-day-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://media.svennerberg.com/2011/10/wud-globe.png" alt="" class="alignright size-full wp-image-3685" />World Usability Day is on November 10 and me and a few other good people are giving a lunch seminar on this years theme, <strong>Education: Designing for Social Change</strong>. </p>
<p><span id="more-3684"></span></p>
<p>Here&#8217;s how it will go down: We will get together at Visma Spcs at 12.00. There will be a lunch-sandwich and a few short talks by me and my buddies Dan Nordell and Chris Jangelöv. The whole thing will last about an hour and will end with a short discussion.</p>
<h2>Come join us</h2>
<p>If you&#8217;re in the area you&#8217;re more than welcome to join us. It&#8217;s a free event, but you&#8217;ll have to <a href="http://wud2011.svennerberg.com/">sign up for it</a> so that we know how much food to supply. Please note, that the event will be in Swedish.</p>
<p>If you&#8217;re unable to be physically present at the event, it will be broadcasted so you can attend remotely. Be aware though that you&#8217;ll have to bring you own sandwiches. I don&#8217;t know the details about the broadcast yet but will post about it as soon as possible. </p>
<h2>Design for influence</h2>
<p>The talk I&#8217;m doing is titled: <strong>Design for influence</strong>. I will show examples on how to affect the way people behave through different design techniques. I&#8217;ve actually been fascinated by that since the last time I spoke at World Usability Day, that time on Design for Sustainability. So it will be interesting to take that talk one step further.</p>
<p>These events tend to be very casual and are a great opportunity to network with other people in the area. So don&#8217;t hesitate, in this case there actually is such a thing as a free lunch.</p>
<div class="call-to-action">
<a href="http://wud2011.svennerberg.com/" class="btn primary large">More info and sign up</a>
</div>
<p>You can also check out <a href="http://www.worldusabilityday.org/node/14191">our event at worldusabilityday.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/10/world-usability-day-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Johanna Wallentin, webday.se</title>
		<link>http://www.svennerberg.com/2011/10/johanna-wallentin-webday-se/</link>
		<comments>http://www.svennerberg.com/2011/10/johanna-wallentin-webday-se/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 09:43:54 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Testimonials]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3675</guid>
		<description><![CDATA[Extremely professional and knowledgeable in Web Development. Also, since Gabriel always delivers high quality on time, he&#8217;s the first partner we turn to when we need external resources for larger projects. – Johanna Wallentin, www.webday.se]]></description>
			<content:encoded><![CDATA[<blockquote><p>
Extremely professional and knowledgeable in Web Development. Also, since Gabriel always delivers high quality on time, he&#8217;s the first partner we turn to when we need external resources for larger projects.
</p></blockquote>
<p>– Johanna Wallentin, <a href="http://www.webday.se">www.webday.se</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/10/johanna-wallentin-webday-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Web Applications by Alex MacCaw</title>
		<link>http://www.svennerberg.com/2011/10/javascript-web-applications-by-alex-maccaw/</link>
		<comments>http://www.svennerberg.com/2011/10/javascript-web-applications-by-alex-maccaw/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 13:32:19 +0000</pubDate>
		<dc:creator>Gabriel Svennerberg</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web apps]]></category>

		<guid isPermaLink="false">http://www.svennerberg.com/?p=3655</guid>
		<description><![CDATA[JavaScript Web Applications is not a book for beginners. In fact, you need to have been doing a fair share of JavaScript development to benefit from it. But if you do, It&#8217;s indispensable! Because this is finally a book that&#8217;s &#8230; <a href="http://www.svennerberg.com/2011/10/javascript-web-applications-by-alex-maccaw/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.svennerberg.com/2011/10/jwa.jpg"><img src="http://media.svennerberg.com/2011/10/jwa-160.jpg" alt="" class="alignright size-full wp-image-3660" /></a><strong>JavaScript Web Applications</strong> is not a book for beginners. In fact, you need to have been doing a fair share of JavaScript development to benefit from it. But if you do, It&#8217;s indispensable! Because this is finally a book that&#8217;s showing how to structure your application in a way that keeps you sane as the application grows.</p>
<p><span id="more-3655"></span></p>
<p>The patterns that are shown in the book are all Model-View-Controller (MVC), the popular design pattern being used in a lot of back-end frameworks such as Ruby on Rails, ASP.NET MVC and CodeIgniter (PHP) to name a few. </p>
<p>The first part of the book introduces the different aspects of the MVC pattern. Then there&#8217;s a few chapters dealing with JavaScript templating, dependency management, some of the new HTML5 API&#8217;s and JavaScript deployment. In the last part of the book 3 different libraries for applying the MVC pattern to a project are introduced.</p>
<h2>Desktop-like applications</h2>
<p>Traditional web applications require a lot of requests to the server, but using MVC on the Frontend you can create One-Page-Applications with all the logic in the frontend. This might sound crazy at first, but after reading the book and trying it out for myself, I&#8217;m confident that this is a good approach for certain kinds of web applications. It&#8217;s actually more like programming Desktop Applications. </p>
<p>This approach gives you applications that responds immediately on user interaction. Because it doesn&#8217;t have to perform constant server requests, it is snappy and responsive. </p>
<h2>Not for all projects</h2>
<p>I want to be dead clear here. Im definitely not saying that this is the right approach for all web applications, because it&#8217;s not. For starters, using a JavaScript only approach means that not everybody can use it, for example people using screen readers or have JavaScript disabled. So for content intensive sites this is not the way to go. But for more advanced Web Applications and for mobile web apps aimed at smart phones, it&#8217;s certainly a viable option. </p>
<h2>JavaScript libraries</h2>
<p>As I mentioned before Alex presents a few libraries that will make it easier to create a MVC architecture in the last part of the book. He has actually created one of the libraries himself, <a href="http://spinejs.com/" title="Spine - Build Awesome JavaScript MVC Applications">Spine.js</a>. The other libraries are <a href="http://documentcloud.github.com/backbone/">Backbone.js</a> and <a href="http://javascriptmvc.com/">JavaScriptMVC</a>.</p>
<p>Although I&#8217;m sure that all theses libraries are good I myself was most compelled by Backbone.js which I&#8217;m currently using to build a mobile web app. I think it&#8217;s great in the way it makes the code so much more structured and easier to maintain. It essentially brings backend programming structure to the world of JavaScript.</p>
<h2>Conclusion</h2>
<p>If you have a few JavaScript projects under your belt and you feel that there must be better ways to organize and structure the code, this book is definitely for you. It will teach you how the MVC pattern works on the frontEnd and gives you the tools and knowledge to leverage your own applications.</p>
<h3>Bookinformation</h3>
<dl class="book-info">
<dt>Title:</dt>
<dd>JavaScript Web Applications</dd>
<dt>By:</dt>
<dd>Alex MacCaw</dd>
<dt>Publisher:</dt>
<dd>O&#8217;Reilly Media (August 30, 2011)</dd>
<dt>Pages:</dt>
<dd>280</dd>
<dt>ISBN:</dt>
<dd>144930351X</dd>
<dt>ISBN-13</dt>
<dd>978-1449303518</dd>
</dl>
<p><a href="http://www.amazon.com/gp/product/144930351X/ref=as_li_ss_tl?ie=UTF8&#038;tag=inusabiwetrus-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399373&#038;creativeASIN=144930351X">Buy JavaScript Web Applications from Amazon.com</a><img src="http://www.assoc-amazon.com/e/ir?t=inusabiwetrus-20&#038;l=as2&#038;o=1&#038;a=144930351X&#038;camp=217145&#038;creative=399373" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p class="note">
<strong>Note:</strong> I wrote this review for <a href="http://oreilly.com/bloggers/">O’Reilly’s Blogger Review Program</a>. Their deal is pretty good: You get a free e-book to read and once you post a review you get another. Try it yourself if you&#8217;re interested in reviewing books.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.svennerberg.com/2011/10/javascript-web-applications-by-alex-maccaw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

