<?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>Behind Companies</title>
	<atom:link href="http://behindcompanies.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://behindcompanies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 24 May 2013 21:03:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title><![CDATA[The Tax of New]]></title>
		<link><![CDATA[http://pandodaily.com/2013/04/06/the-tax-of-new/]]></link>
		<comments>http://behindcompanies.com/2013/05/the-tax-of-new/#comments</comments>
		<pubDate>Fri, 24 May 2013 17:19:50 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2722</guid>
		<description><![CDATA[Julie Zhuo: The tax that comes with introducing any new feature into your product is high. I cannot stress this enough. Sure, maybe the new feature isn’t hard to build, maybe it only takes a couple days and a handful of people, maybe it can be shipped and delivered by next week. And maybe the [...]<a href="http://behindcompanies.com/2013/05/the-tax-of-new/" rel="bookmark" title="Permanent link to 'The Tax of New'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Julie Zhuo:</p>

<blockquote>
  <p>The tax that comes with introducing any new feature into your product is high. I cannot stress this enough. Sure, maybe the new feature isn’t hard to build, maybe it only takes a couple days and a handful of people, maybe it can be shipped and delivered by next week. And maybe the additional cognitive load for a user isn’t high — it’s just an extra icon here, after all, or an extra slot in a menu there. But once your new feature is out there, it’s out there. A real thing used by real people.</p>
</blockquote>

<p>Good guidance about adding new features into any product and some tips about how to manage it going out.</p>
<p><a href="http://behindcompanies.com/2013/05/the-tax-of-new/" rel="bookmark" title="Permanent link to 'The Tax of New'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/the-tax-of-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[Sponsor: Igloo (with Sandwich Videos!)]]></title>
		<link><![CDATA[http://syndicateads.net/s/ml]]></link>
		<comments>http://behindcompanies.com/2013/05/sponsor-igloo-with-sandwich-videos/#comments</comments>
		<pubDate>Fri, 24 May 2013 14:03:19 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[The Syndicate]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2721</guid>
		<description><![CDATA[Igloo has some funny new Sandwich videos to lighten your day (and maybe convince your boss and/or IT to upgrade your intranet to something more human). Check them out: Intranet Updates Versions (You can also get a free 30-day trial and bring back Cake Fridays here.) Sponsorship by The Syndicate. &#9642;<a href="http://behindcompanies.com/2013/05/sponsor-igloo-with-sandwich-videos/" rel="bookmark" title="Permanent link to 'Sponsor: Igloo (with Sandwich Videos!)'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Igloo has some funny new Sandwich videos to lighten your day (and maybe convince your boss and/or IT to upgrade your intranet to something more human). Check them out:</p>

<ul>
<li><a href="https://vimeo.com/64886237">Intranet</a></li>
<li><a href="https://vimeo.com/65391798">Updates</a></li>
<li><a href="https://vimeo.com/65272680">Versions</a></li>
</ul>

<p><a href="http://syndicateads.net/s/ml">(You can also get a free 30-day trial and bring back Cake Fridays here.)</a></p>

<p><a href="http://syndicateads.net/">Sponsorship by The Syndicate.</a></p>
<p><a href="http://behindcompanies.com/2013/05/sponsor-igloo-with-sandwich-videos/" rel="bookmark" title="Permanent link to 'Sponsor: Igloo (with Sandwich Videos!)'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/sponsor-igloo-with-sandwich-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[How to Sell a Vacuum]]></title>
		<link><![CDATA[https://medium.com/editors-picks/d988ce4520b2]]></link>
		<comments>http://behindcompanies.com/2013/05/how-to-sell-a-vacuum/#comments</comments>
		<pubDate>Fri, 24 May 2013 14:00:00 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2720</guid>
		<description><![CDATA[Chase Oliver: If you’re selling a vacuum, don’t start by pitching its bells and whistles. Instead, sell a clean home. It’s the reason people look to buy a vacuum in the first place. Once you’ve established that you understand — or better yet, sympathize with — your customers’ needs it becomes easier to justify each [...]<a href="http://behindcompanies.com/2013/05/how-to-sell-a-vacuum/" rel="bookmark" title="Permanent link to 'How to Sell a Vacuum'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Chase Oliver:</p>

<blockquote>
  <p>If you’re selling a vacuum, don’t start by pitching its bells and whistles. Instead, sell a clean home. It’s the reason people look to buy a vacuum in the first place. Once you’ve established that you understand — or better yet, sympathize with — your customers’ needs it becomes easier to justify each feature by tracing it back to the product’s intent.</p>
</blockquote>

<p>A good analogy for <a href="http://behindcompanies.com/2012/06/talk-notes-big-design-2012/">Jobs to be Done</a> &#8211; people don&#8217;t buy for features, they buy to solve a problem in their life.</p>
<p><a href="http://behindcompanies.com/2013/05/how-to-sell-a-vacuum/" rel="bookmark" title="Permanent link to 'How to Sell a Vacuum'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/how-to-sell-a-vacuum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[How to Present Designs]]></title>
		<link><![CDATA[https://medium.com/the-year-of-the-looking-glass/4a78c3ebca7b]]></link>
		<comments>http://behindcompanies.com/2013/05/how-to-present-designs/#comments</comments>
		<pubDate>Thu, 23 May 2013 17:46:22 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2717</guid>
		<description><![CDATA[Julie Zhuo: Do it well, and you might be Don Draper, with the power to leave the room breathless, unified behind a vision that stirs an emotion deep inside your gut. Do it poorly, and you might sentence a promising young idea to an untimely death or fail to gather useful feedback. Presenting designs is [...]<a href="http://behindcompanies.com/2013/05/how-to-present-designs/" rel="bookmark" title="Permanent link to 'How to Present Designs'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Julie Zhuo:</p>

<blockquote>
  <p>Do it well, and you might be Don Draper, with the power to leave the room breathless, unified behind a vision that stirs an emotion deep inside your gut. Do it poorly, and you might sentence a promising young idea to an untimely death or fail to gather useful feedback.</p>
</blockquote>

<p>Presenting designs is an art, and Julie gives some great points on how to do it well.</p>
<p><a href="http://behindcompanies.com/2013/05/how-to-present-designs/" rel="bookmark" title="Permanent link to 'How to Present Designs'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/how-to-present-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[Designing Blogs for Readers]]></title>
		<link><![CDATA[http://mattgemmell.com/2013/05/22/designing-blogs-for-readers/]]></link>
		<comments>http://behindcompanies.com/2013/05/designing-blogs-for-readers/#comments</comments>
		<pubDate>Wed, 22 May 2013 21:44:14 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2716</guid>
		<description><![CDATA[A pretty exhaustive list by Matt Gemmell on considerations as you design your personal blog. &#9642;<a href="http://behindcompanies.com/2013/05/designing-blogs-for-readers/" rel="bookmark" title="Permanent link to 'Designing Blogs for Readers'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>A pretty exhaustive list by Matt Gemmell on considerations as you design your personal blog.</p>
<p><a href="http://behindcompanies.com/2013/05/designing-blogs-for-readers/" rel="bookmark" title="Permanent link to 'Designing Blogs for Readers'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/designing-blogs-for-readers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[Apple Isn&#8217;t a Financial Mastermind, They Follow the Law]]></title>
		<link><![CDATA[https://medium.com/i-m-h-o/25dfaedbdfe9]]></link>
		<comments>http://behindcompanies.com/2013/05/apple-isnt-a-financial-mastermind-they-follow-the-law/#comments</comments>
		<pubDate>Tue, 21 May 2013 21:08:08 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2715</guid>
		<description><![CDATA[Brian Levin, criticizing Tim Cook&#8217;s &#8220;financial maneuvering&#8221; on Medium: I’m angry because Apple not only engages in the questionable practice of stashing its cash in offshore tax havens, it has become the greatest offender, avoiding US taxes on $74 billion over the past four years. There’s something fundamentally wrong when the wealthiest company in America [...]<a href="http://behindcompanies.com/2013/05/apple-isnt-a-financial-mastermind-they-follow-the-law/" rel="bookmark" title="Permanent link to 'Apple Isn&#8217;t a Financial Mastermind, They Follow the Law'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Brian Levin, criticizing Tim Cook&#8217;s &#8220;financial maneuvering&#8221; on Medium:</p>

<blockquote>
  <p>I’m angry because Apple not only engages in the questionable practice of stashing its cash in offshore tax havens, it has become the greatest offender, avoiding US taxes on $74 billion over the past four years. There’s something fundamentally wrong when the wealthiest company in America pays 12.6% in taxes, while my father’s small business, my grandfather’s store and the Korean Deli across the street pay a rate nearly three times higher. And it’s not just savvy accounting or a strategic maneuver—Apple’s tax avoidance has a profoundly damaging effect on our whole country.</p>
</blockquote>

<p>Earlier today, <a href="http://online.wsj.com/article/SB10001424127887323648304578496963468168822.html?mod=WSJ_hpp_LEFTTopStories">Tim Cook testified for a Senate Committee</a> in regards to this exact issue. If you were just to listen to the loudest voices, you&#8217;d think Apple had become a mafia style tax avoider that stashes money in a secret Cayman account to hide it from the government.</p>

<p>But Apple has done absolutely nothing illegal. Unlike Brian&#8217;s grandfather&#8217;s store and Korean Deli, Apple does business in dozens of countries. They pay taxes in each country they do business, so if an iPhone is sold in the US, they pay income taxes in the US. But if it&#8217;s sold in Russia, they&#8217;ll follow whatever the local tax practices are.</p>

<p>For some reason, the US Congress feels entitled to income taxes on business that was not done in the US in any way. An iPhone manufactured in China and sold in France had nothing to do with the United States, except for the time it took to design it. But income taxes aren&#8217;t based on time, they&#8217;re based on products sold.</p>

<p>I&#8217;m no tax expert, but that&#8217;s why Apple&#8217;s income tax rate looks so low. It&#8217;s dividing taxes paid by income earned everywhere, not just the US.</p>

<p>Apple hasn&#8217;t broken the law, and if you think people have called for Tim Cook to be fired because of the iPhone 5 or share prices, I can&#8217;t even imagine a CEO that would be giving money unnecessarily to the government. <em>That</em> would be irresponsible to shareholders.</p>

<p>If you don&#8217;t like Apple&#8217;s tax practices, talk to your local representative, but don&#8217;t get angry at Apple. They&#8217;re just playing the cards they&#8217;re dealt.</p>
<p><a href="http://behindcompanies.com/2013/05/apple-isnt-a-financial-mastermind-they-follow-the-law/" rel="bookmark" title="Permanent link to 'Apple Isn&#8217;t a Financial Mastermind, They Follow the Law'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/apple-isnt-a-financial-mastermind-they-follow-the-law/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[Give &#8216;Em an Inch…]]></title>
		<link><![CDATA[http://notes.unwieldy.net/post/50478689215/give-them-an-inch-and-they-take-773-074-040]]></link>
		<comments>http://behindcompanies.com/2013/05/give-em-an-inch/#comments</comments>
		<pubDate>Wed, 15 May 2013 17:41:58 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2714</guid>
		<description><![CDATA[Joshua Gross doing some math on Southwest Airlines: In early 2012, Southwest Airlines began reducing seat pitch—better known as legroom—in their 737s by a single inch, from 32” to 31”. This allowed them to add an additional six seats per flight. That means, every year that single inch earns them $773,074,040 of additional revenue. I guess every [...]<a href="http://behindcompanies.com/2013/05/give-em-an-inch/" rel="bookmark" title="Permanent link to 'Give &#8216;Em an Inch…'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Joshua Gross doing some math on Southwest Airlines:</p>

<blockquote>
  <p>In early 2012, Southwest Airlines began reducing seat pitch—better known as legroom—in their 737s by a single inch, from 32” to 31”. This allowed them to add an additional six seats per flight.</p>
  
  <p>That means, every year that single inch earns them $773,074,040 of additional revenue. I guess every little bit really does count.</p>
</blockquote>
<p><a href="http://behindcompanies.com/2013/05/give-em-an-inch/" rel="bookmark" title="Permanent link to 'Give &#8216;Em an Inch…'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/give-em-an-inch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[Sponsor: Mad Mimi Email Marketing]]></title>
		<link><![CDATA[http://syndicateads.net/s/lu]]></link>
		<comments>http://behindcompanies.com/2013/05/the-syndicate/#comments</comments>
		<pubDate>Wed, 15 May 2013 15:30:00 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[The Syndicate]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2712</guid>
		<description><![CDATA[Mad Mimi is a design-oriented email newsletter service founded in 2008. Developed to provide a mobile-app-like feel, and with a drag-and-drop email composer, Mad Mimi offers a simple, elegant user experience that helps customers create, send, and track beautiful html email campaigns. Mad Mimi also offers robust APIs, integrations, and add-on features. This makes it [...]<a href="http://behindcompanies.com/2013/05/the-syndicate/" rel="bookmark" title="Permanent link to 'Sponsor: Mad Mimi Email Marketing'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://syndicateads.net/s/lu">Mad Mimi</a> is a design-oriented email newsletter service founded in 2008. Developed to provide a mobile-app-like feel, and with a drag-and-drop email composer, Mad Mimi offers a simple, elegant user experience that helps customers create, send, and track beautiful html email campaigns.</p>

<p>Mad Mimi also offers robust APIs, integrations, and add-on features. This makes it a perfect fit for today’s visionaries, artists, and entrepreneurs, including great digital brands like Fancy and StumbleUpon, who use Mad Mimi to communicate with their customers.</p>

<p>Best yet, Mad Mimi is free for up to 2,500 contacts. We hope you’ll <a href="http://syndicateads.net/s/lu">give us a try</a> or <a href="mailto:support@madmimi.com">email us</a> with questions.</p>

<p><a href="http://syndicateads.net/">Sponsorship by The Syndicate.</a></p>
<p><a href="http://behindcompanies.com/2013/05/the-syndicate/" rel="bookmark" title="Permanent link to 'Sponsor: Mad Mimi Email Marketing'" class="glyph">&#9642;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/the-syndicate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title><![CDATA[The Job of LinkedIn]]></title>
		<link><![CDATA[http://ben-evans.com/benedictevans/2013/5/8/linkedin]]></link>
		<comments>http://behindcompanies.com/2013/05/the-job-of-linkedin/#comments</comments>
		<pubDate>Mon, 13 May 2013 14:31:41 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Linked List]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2708</guid>
		<description><![CDATA[Benedict Evans: LinkedIn fails to hit absolutely basic product features that should have been in there 5 years ago, both on mobile and desktop. Instead, the core features get buried under successive layers of mediocre non-core products, the latest being a flood of me-too news aggregation that&#8217;s creeping through the product like ivy, and none [...]<a href="http://behindcompanies.com/2013/05/the-job-of-linkedin/" rel="bookmark" title="Permanent link to 'The Job of LinkedIn'" class="glyph">&#9642;</a>
]]></description>
				<content:encoded><![CDATA[<p>Benedict Evans:</p>

<blockquote>
  <p>LinkedIn fails to hit absolutely basic product features that should have been in there 5 years ago, both on mobile and desktop. Instead, the core features get buried under successive layers of mediocre non-core products, the latest being a flood of me-too news aggregation that&#8217;s creeping through the product like ivy, and none of which can be properly configured, let alone turned off.</p>
</blockquote>

<p>Evans&#8217; criticisms of LinkedIn as a product are spot on. The problem is, the incentives are in the wrong direction. The company makes money off recruiters paying for premium accounts to contact you, not to help you find a job. I realized that switch when I stopped getting the &#8220;Upgrade to a premium account!&#8221; emails.</p>

<p>Ben Thompson <a href="http://stratechery.com/2013/what-linkedin-is-good-for/">elaborated on the jobs to be done of LinkedIn</a>:</p>

<blockquote>
  <p>LinkedIn is the poster child for value chains: the jobs you pay LinkedIn to do work very well, and the stuff you get for free doesn’t.</p>
</blockquote>

<p>His advice is very apt:</p>

<blockquote>
  <p>For too many years, I fell into the LinkedIn/resume trap, but after starting stratechery, I’ve received more offers for better positions with more interesting companies worth more money than I ever did on LinkedIn.</p>
</blockquote>

<p>I&#8217;ve found the same to be true. Writing this blog for several years now has led me to connect with more interesting people and gotten me more jobs than I&#8217;ve ever been offered from recruiters spamming me on LinkedIn. If you invest in doing a great job and owning your online presence, it says a lot more than just updating your LinkedIn resume every couple of years when you change a job.</p>

<p>I guarantee the quality of opportunities will be much better as well. Any company that is turning to recruitment firms is having it&#8217;s own issues attracting great talent. There&#8217;s probably a reason why they can&#8217;t hire on their own<sup><a href="http://behindcompanies.com/2013/05/the-job-of-linkedin/#footnote_0_2708" id="identifier_0_2708" class="footnote-link footnote-identifier-link" title="I will admit there are gold nuggets out there, but they are few and far between.">1</a></sup>. The best firms never post a job listing.</p>
<p><a href="http://behindcompanies.com/2013/05/the-job-of-linkedin/" rel="bookmark" title="Permanent link to 'The Job of LinkedIn'" class="glyph">&#9642;</a></p>
<ol class="footnotes"><li id="footnote_0_2708" class="footnote">I will admit there are gold nuggets out there, but they are few and far between.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/the-job-of-linkedin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#9642; Toward Maintainable Stylesheets using SASS</title>
		<link>http://behindcompanies.com/2013/05/toward-maintainable-stylesheets-using-sass/</link>
		<comments>http://behindcompanies.com/2013/05/toward-maintainable-stylesheets-using-sass/#comments</comments>
		<pubDate>Fri, 10 May 2013 13:52:45 +0000</pubDate>
		<dc:creator>marcelosomers</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://behindcompanies.com/?p=2703</guid>
		<description><![CDATA[CSS precompilers are all the rage these days. The basic idea is that you can build more maintainable stylesheets by taking concepts from programming like variables, mixins, and functions. A processor watches your source and builds CSS files based on changes in the directory. SASS is one of the two popular CSS precompilers (along with [...]]]></description>
				<content:encoded><![CDATA[<p>CSS precompilers are all the rage these days. The basic idea is that you can build more maintainable stylesheets by taking concepts from programming like variables, mixins, and functions. A processor watches your source and builds CSS files based on changes in the directory.</p>

<p><a href="http://sass-lang.com/">SASS</a> is one of the two popular CSS precompilers (along with <a href="http://lesscss.org/">LESS</a>). If you&#8217;re not already familiar with the language, it&#8217;ll be important to get familiar with what it&#8217;s capable of before this article. There are great guides on getting started at <a href="http://thesassway.com/beginner/getting-started-with-sass-and-compass">The SASS Way</a> and <a href="http://alistapart.com/article/getting-started-with-sass">A List Apart</a>.</p>

<p>After you&#8217;ve written (and come back to) code on projects, we start to see the 30,000 foot view of how SASS can help code maintainable. In this post, we will focus on a few rules regarding how to build more maintainable CSS through SASS.</p>

<h2>Project Structure in SASS</h2>

<p>Thinking about how we use SASS all starts with how we structure our projects. John W. Long at The SASS Way recently <a href="http://thesassway.com/beginner/how-to-structure-a-sass-project">profiled</a> a great way of doing this:</p>

<p><code>project/</code><br />
<code>..css</code><br />
<code>.....main.css</code><br />
<code>..stylesheets/</code><br />
<code>....modules/</code><br />
<code>......_mixins.scss</code><br />
<code>....partials/</code><br />
<code>......_layout.scss</code><br />
<code>....vendor/</code><br />
<code>......_bootstrap.scss</code><br />
<code>....main.scss</code></p>

<p>In the <code>project</code> directory, we&#8217;ll have two CSS related directories: <code>stylesheets</code> and <code>css</code>. The first will contain our working SASS files and the second our compiled CSS. Inside <code>stylesheets</code> will be three other directories:</p>

<ul>
<li><strong><code>/modules/</code></strong>: For SASS code that doesn&#8217;t actually output to our compiled CSS like mixins, partials, and variables</li>
<li><strong><code>/partials/</code></strong>: Where most of your CSS will be constructed. It&#8217;s a good idea to break your stylesheets into functional pieces. We&#8217;ll cover this in a discussion of SMACSS.</li>
<li><strong><code>/vendor/</code></strong>: Any CSS that is prepackaged should live in here. At Credera, we&#8217;re fans of <a href="http://getbootstrap.com/">Bootstrap</a>, and this is where we will put those stylesheets.</li>
</ul>

<p>The <code>main.scss</code> file will do the <code>@import</code> for all the files inside the three directories.</p>

<h2>Using Bootstrap in SASS</h2>

<p><a href="http://getbootstrap.com/">Bootstrap</a> is a fantastic framework on which to build many sites. The goal is not to keep the stock UI elements, but to extend them to match your visual style. Unfortunately, it&#8217;s not maintained natively in SASS, but John Long <a href="https://github.com/jlong/sass-twitter-bootstrap/tree/master/lib">maintains a port from LESS to SASS on Github</a>.</p>

<p>The best way to start is to download Long&#8217;s files and drop them into the vendor directory. The bootstrap.scss and responsive.scss should compile into their own .css files in the <code>css</code> directory.</p>

<p>If you&#8217;ve used Bootstrap previously, you&#8217;ll be well on your way to building your project at this point. However, don&#8217;t forget that SASS also means extra features on top of CSS. Luckily, Long has included some very useful files in his port that you should dig into further:</p>

<ul>
<li><strong><code>_variables.scss</code></strong>: Ever get frustrated that everything in Bootstrap is the default blue/black/white? Instead of setting those in a global partial file, make the changes in here. Want to get rid of all the blue links? Just update <code>$linkColor</code> and <code>$linkColorHover</code> and watch the changes across the whole site</li>
<li><strong><code>_mixins.scss</code></strong>: Also included are a set of mixins that can do a lot for you</li>
</ul>

<h2>SMACSS &amp; Object-Oriented CSS: The Real Secret to Maintainable CSS</h2>

<p>Any developer that has updated a user interface that written by someone else will understand the spaghetti code that becomes a fight for preference rules to properly style elements. In CSS, it&#8217;s too easy to break the first rule of development &#8211; don&#8217;t repeat yourself, but SASS can help that.</p>

<p>Our workflow starts with Jonathan Snook&#8217;s book, <a href="http://smacss.com/book/"><em>Scalable and Modular Architecture for CSS</em></a> or SMACSS (pronounced Smacks) for short. The important chapters are available for free on his site. The key rules are included in chapters 2-9.</p>

<p>What&#8217;s important to understand are the five categories of CSS rules:</p>

<ol>
<li>Base Rules</li>
<li>Layout Rules</li>
<li>Module (or style) Rules</li>
<li>State Rules</li>
<li>Theme Rules</li>
</ol>

<p>Understanding these categorizations helps define a new workflow for writing front-end code. Each level builds on top of the last and we should write our front-end code in this order.</p>

<p>As we walk through this example, <a href="https://github.com/marcelosomers/bootstrap-sass-project-template">the source files are available on Github</a> to follow along.</p>

<p>I like to start with a <code>_layout.scss</code> file in my <code>partials</code> directory and focus on getting things where they need to be on the page, regardless of how they look.</p>

<p>We&#8217;ll start with an example Photoshop comp (Fig 1):</p>

<p><img src="http://behindcompanies.com/wp-content/uploads/2013/05/example_comp.jpg" alt="Example comp" title="example_comp.jpg" border="0" /><br /><em><small>Fig 1 &#8211; Our example Photoshop comp</em></small></p>

<p>The first step is to build a layout that applies no visual style (Fig 2). The goal is to get things where they need to be on the page without worrying about backgrounds, drop shadows, and colors.</p>

<p><img src="http://behindcompanies.com/wp-content/uploads/2013/05/structure_only.jpg" alt="Structure only" title="structure_only.jpg" border="0" /><br /><em><small>Fig 2 &#8211; Step 1 of building our CSS, applying our layout</em></small></p>

<p>This helps us to achieve the first rule of <a href="http://coding.smashingmagazine.com/2011/12/12/an-introduction-to-object-oriented-css-oocss/">Object-Oriented CSS</a>, which is separating structure from skin. By having a set of structure/layout rules, we can reuse those across the entire site without repeating the style declarations like margins and easily update them later.</p>

<p>Next, we add our skin styles as separate classes, focusing on making everything pixel perfect. A div might have multiple classes applied to it: <code>&lt;div class="layout style1 state1"&gt;</code>. Just keep in mind the principle of not repeating yourself.I If a visual style gets used in multiple places, consider the following: 1) making it a single reusable style or 2) applying it as a mixin. The goal is to change it once and have it update everywhere.</p>

<h2>Naming Classes for Maintainability</h2>

<p>Naming your classes is always a big debate. One rule to keep in mind for long-term maintainability is to name your classes based on what they do, not what they are. For example, instead of naming an alert <code>.message-red</code>, name it <code>.message-alert</code>. That way when your visual design changes and it goes from red to orange, your class names continue to make sense.</p>

<h2>Wrapping Up</h2>

<p>Creating precompilers for CSS was a brilliant move. By shifting the compatibility to the developer tools rather than the browser, provides new features for CSS that lead to more maintainable code and we can use it in 100% of projects today. No IE6 style compatibility issues here.</p>

<p>I&#8217;ve posted a <a href="https://github.com/marcelosomers/bootstrap-sass-project-template">sample project template on Github</a> that incorporates Long’s SASS Bootstrap template and Compass, and can serve as a base for any new project.</p>

<p>SASS allows us to be more granular and organized with our CSS, but still compile it out to something optimized for file size. We just have to keep a few simple rules in mind as we move forward.</p>

<p>If you’ve had experience building maintainable sites in SASS and have any comments, please share those with us below.</p>
]]></content:encoded>
			<wfw:commentRss>http://behindcompanies.com/2013/05/toward-maintainable-stylesheets-using-sass/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
