<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>weedygarden.net</title>
	
	<link>http://www.weedygarden.net</link>
	<description>The random ramblings of a web developer.</description>
	<pubDate>Mon, 17 Nov 2008 02:18:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Weedygarden" type="application/rss+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>What’s your css style?</title>
		<link>http://www.weedygarden.net/2008/11/16/whats-your-css-style/</link>
		<comments>http://www.weedygarden.net/2008/11/16/whats-your-css-style/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 02:16:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.weedygarden.net/?p=24</guid>
		<description><![CDATA[Let&#8217;s talk for a moment about style. More specifically, CSS style. Every web developer I&#8217;ve met has had a personal way they write their style declarations. And typically if you have five developers in the room, you&#8217;ll have five distinct styles. It&#8217;s probably safe to say these styles are developed early on in a developers [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s talk for a moment about style. More specifically, CSS style. Every web developer I&#8217;ve met has had a personal way they write their style declarations. And typically if you have five developers in the room, you&#8217;ll have five distinct styles. It&#8217;s probably safe to say these styles are developed early on in a developers career and tend to change ever so slightly as time goes on to suit individual preference. I know that I had basically the same style for the first seven years of my CSS using web career (I&#8217;m talking post table/font= days).</p>
<p>About a year and a half ago, however, <a href="/2007/07/17/enter-the-monkey-wrench/">I switched jobs</a> and found myself dealing with the CSS of others that was quite different from my own. They went on about how nice their style was and how in time I would come around. After all, they all eventually adapted to the same style. I was fairly adamant at the time that, no, I was pretty set in my style ways and didn&#8217;t see myself switching any time soon. It only took a couple of months.</p>
<p>My style at the time was a declaration with each property on its own line.</p>
<pre><code class="css">
body {
  margin:0;
  padding:0;
}
</code></pre>
<p>The style of the new shop was to use single line styles as follows:</p>
<pre><code class="css">
body {margin:0; padding:0;}
</code></pre>
<p>Since the time I switched over, I&#8217;ve grown to love this format. My initial argument against it was I felt it was harder to read and find the individual declaration I was looking for. But if you follow a simple set of rules, it&#8217;s actually very easy to scan a large css file and find what you&#8217;re looking for.</p>
<p>Out of curiosity, I checked out the CSS of some bloggers I read to see what styles they use.</p>
<p>The closest I could find to my old style was <a href="http://boagworld.com">Paul Boag</a>. Here&#8217;s a sample:</p>
<pre><code class="css">
body {
  background:#d6e59b url(../images/background.jpg);
  padding:2em 0;
}

#content {
  width:600px;
  padding:0 20px 0 30px;
}
</code></pre>
<p>Very similar to that style is Dan Cederholm of <a href="http://simplebits.com">simplebits.com</a></p>
<pre><code class="css">
body {
  margin: 0;
  padding: 0;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Helvetica, Arial, sans-serif;
  font-size: 62.5%;
  color: #474a51;
  background: #f4f4ed;
  }
a:link, a:visited {
  color: #317b9e;
  text-decoration: none;
  }
</code></pre>
<p>You can see two differences here. The closing brace is tabbed in with the declarations, and he puts a space between the declaration and the values, as Boag does not.</p>
<p>Now we&#8217;ll get into some developers using single line declarations. First off is <a href="http://meyerweb.com/">Eric Meyer</a>. You&#8217;ll notice he does &#8216;mostly&#8217; single line. The body declaration is broken over a couple of lines. If you scan through the css at meyerweb, you&#8217;ll see several instances of that treatment. Eric also does the space between the declaration and the value.</p>
<pre><code class="css">
* {font-size: 100%; padding: 0; margin: 0;}
body {font: 0.84em/1.333 Arial, sans-serif; margin: 0; padding: 0;
  color: #202020; background: #FFF;
  min-width: 40em; margin: 0 auto;}
h1 {font-size: 2em; margin: 2em 0 0.5em; padding: 0.25em 0;}
h2 {font-size: 1.5em; margin: 2em 0 0.33em; padding: 0.25em 0;}
</code></pre>
<p>Next up is <a href="http://www.alistapart.com/">A List Apart</a> and Dan Rubin from <a href="http://superflousbanter.org">superflousbanter.org</a>. Both use primarily single line styles. The differences you&#8217;ll notice are A List Apart puts spaces between pretty much everything.</p>
<pre><code class="css">
* {margin: 0; padding: 0;}
body {font: 0.8125em Verdana, sans-serif; line-height: 1; color: #333; background: #FFF;}
html body a:hover {color: #000; background-color: #F4F2E4;
  border-bottom: 1px solid #9A8E51;}
h2 {font: 1.5em Georgia, "Times New Roman", serif; letter-spacing: 1px;}
h3 {font: bold 1em Verdana, Arial, sans-serif; letter-spacing: 2px;
  text-transform: uppercase;}
</code></pre>
<p>Dan Rubin on the other hand uses no spaces except for the right before and after the braces.</p>
<pre><code class="css">
body { background-color:#210D00;font-family:helvetica,arial,sans-serif;font-size:small;text-align:center;min-width:1000px;margin:0; }
#content { float:left;background:url(../i/bg_content_top.gif) no-repeat;width:618px;margin:58px 0 0 37px;padding:16px 0 0; }
#content2 { background:url(../i/bg_content_bottom.gif) no-repeat bottom;padding:0 0 16px; }
#content3 { background:#fff url(../i/bg_content_middle.gif) repeat-y;padding:3px 60px 1px; }
</code></pre>
<p>Finally, we come to <a href="http://orderedlist.com/">Ordered List</a>. This style is almost exactly like the what I use. This is because the two members of OL are both former lead developers of my department.</p>
<pre><code class="css">
.wrapper            {float:left; display:inline; width:940px;}
.primary            {float:left; display:inline; width:630px; border-left:320px solid transparent; margin:0 0 0 10px;}
div#post_info h4    {color:#C0BA8D; font-size:116%; margin:0 0 15px;}
</code></pre>
<p>I realize that some people style a certain way due to the editor used when cutting the site. For instance, I use <a href="http://www.panic.com/coda/">Coda</a> to code HTML/CSS. When it auto-completes a style, it will put a space between the colon and the value. I find this very annoying. Especially since editors such as <a href="http://macrabbit.com/cssedit/">CSSEdit</a> (also in my Dock) has had a preference for default spacing for years. Hopefully their upcoming all-in-one editor, <a href="http://macrabbit.com/espresso/">Espresso</a>, will have that as well (the current beta does not).</p>
<p>One final note. This site was styled prior to my metamorphasis with a lot of WordPress styles rolling over, so yes, it&#8217;s in the old style, and probably will be for quite some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weedygarden.net/2008/11/16/whats-your-css-style/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The iWeb, iMail, iGame and occasionally iPhone</title>
		<link>http://www.weedygarden.net/2008/10/25/the-iweb-imail-igame-and-occasionally-iphone/</link>
		<comments>http://www.weedygarden.net/2008/10/25/the-iweb-imail-igame-and-occasionally-iphone/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 16:00:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.weedygarden.net/?p=22</guid>
		<description><![CDATA[I wanted to get in on the iPhone action as soon as v1 came around, but due to budget constraints, that just wasn&#8217;t possible. Shortly after the release of the 3G model, a number of stars aligned and I picked up an 8gig 3G. This has turned out to be one my best tech purchases [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to get in on the iPhone action as soon as v1 came around, but due to budget constraints, that just wasn&#8217;t possible. Shortly after the release of the 3G model, a number of stars aligned and I picked up an 8gig 3G. This has turned out to be one my best tech purchases ever. There were several times this summer where the Google map feature helpfully guided myself and others to an elusive destination, and caught Kodak moments when I didn’t have my camera with me.</p>
<p>My only problem with the thing is its name. The irony of the label “iPhone” struck me the other day as I was watching the news with the wife and an iPhone commercial came on. More accurately, I should say I was listening to the news. I was technically reading news feeds and catching up on email. It got me thinking about how much time I spent on this device doing various activities. I’m thinking it breaks down as follows:</p>
<p>Reading news feeds - 70%<br />
Email - 10%<br />
Games - 15%<br />
Other – 4%<br />
Phone - 1%</p>
<p>That one percent may be a little high. It might be that I simply subscribe to too many feeds. All I know is that this handy little device is seriously cutting down on the amount of time I spend sitting at my desk in the evenings. That alone is a wonderful thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weedygarden.net/2008/10/25/the-iweb-imail-igame-and-occasionally-iphone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails reference for PHP programmers</title>
		<link>http://www.weedygarden.net/2008/04/16/rails-reference-for-php-programmers/</link>
		<comments>http://www.weedygarden.net/2008/04/16/rails-reference-for-php-programmers/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 11:50:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.weedygarden.net/?p=20</guid>
		<description><![CDATA[Back when I first started with Rails, I noticed there were a lot of times I just needed to know the Ruby/Rails equivalent of some PHP function. It started me thinking that it would be great to have a resource similar to PHP.net where you could just append the function name to the end of [...]]]></description>
			<content:encoded><![CDATA[<p>Back when I first started with Rails, I noticed there were a lot of times I just needed to know the Ruby/Rails equivalent of some PHP function. It started me thinking that it would be great to have a resource similar to PHP.net where you could just append the function name to the end of a url, and get some relevant Ruby/Rails examples. Well, <a title="Rails for PHP Developers" href="http://railsforphp.com/reference/">somebody beat me to it</a>.</p>
<p>The folks over at <a title="Rails for PHP Developers" href="http://railsforphp.com">Rails for PHP Developers</a> have a pretty good start on content, especially for Array, String and Filesystem functions. The feature I was planning on, which I am not seeing their site, is a way for the community to contribute. Even if it were heavily moderated, I think it would be a boon for the site to flesh out its reference much more quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weedygarden.net/2008/04/16/rails-reference-for-php-programmers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Sound of Freelance…</title>
		<link>http://www.weedygarden.net/2008/03/20/the-sound-of-freelance/</link>
		<comments>http://www.weedygarden.net/2008/03/20/the-sound-of-freelance/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 02:16:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.weedygarden.net/2008/03/20/the-sound-of-freelance/</guid>
		<description><![CDATA[&#8230;is silence.
I had the best of intentions. I wanted to give you words. Words to make you laugh. Words to make you cry. Words to excite, enlighten and inspire.
So what happened?
Code. Code happened. I&#8217;m up to my eyeballs in freelance work. Many of you know first hand how busy things can get when you work [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;is silence.</p>
<p>I had the best of intentions. I wanted to give you words. Words to make you laugh. Words to make you cry. Words to excite, enlighten and inspire.</p>
<p>So what happened?</p>
<p>Code. Code happened. I&#8217;m up to my eyeballs in freelance work. Many of you know first hand how busy things can get when you work full-time, and also take side jobs. There may be relief soon. My previous employer is finally beefing up his stable of monkey&#8217;s. These monkey&#8217;s will soon take over the work I&#8217;ve been handling since I left the outfit last July. This will hopefully free up some evening time so I can finally write some decent articles. I&#8217;m making a list, checking it twice, and will begin authoring soon.</p>
<p>Stay tuned. I plan on doing some small articles soon, as well as a book review.</p>
<p>Maybe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weedygarden.net/2008/03/20/the-sound-of-freelance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Leopard Dock Spacers</title>
		<link>http://www.weedygarden.net/2007/11/18/leopard-dock-spacers/</link>
		<comments>http://www.weedygarden.net/2007/11/18/leopard-dock-spacers/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 22:02:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.weedygarden.net/2007/11/18/leopard-dock-spacers/</guid>
		<description><![CDATA[Digital Media Minute has a great bit of terminal magic that allows you to create invisible spacers in the Leopard dock. You can create as many as you like, drag them around, or if you created too many, drag them off.
Only added mine 10 minutes ago and I&#8217;m already quite fond.
]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/wpfiles/dock-spacers.png" alt="Default menu bar" class="alignleft" /><a href="http://www.digitalmediaminute.com/article/2680/add-spacers-to-the-leopard-dock">Digital Media Minute</a> has a great bit of terminal magic that allows you to create invisible spacers in the Leopard dock. You can create as many as you like, drag them around, or if you created too many, drag them off.</p>
<p>Only added mine 10 minutes ago and I&#8217;m already quite fond.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weedygarden.net/2007/11/18/leopard-dock-spacers/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
