<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Why use HAML (and SASS)? I already know HTML.</title>
	<atom:link href="http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/</link>
	<description>bestselling author of Devil&#039;s Hand, a supernatural thriller; writer of fictions and web software</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:26:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Tom Wardrop</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-961</link>
		<dc:creator>Tom Wardrop</dc:creator>
		<pubDate>Sun, 29 Jan 2012 11:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-961</guid>
		<description>I&#039;ve been using ERB since I came to the Ruby world around mid-2010. I&#039;ve always been opposed to abstraction unless the benefits are significant, and the drawbacks are minimal.The biggest problem with abstraction is that it normally wastes the domain-specific knowledge you already have. A classic case is with many ORM&#039;s. I already know how to solve my problem in SQL (as does every other developer), why do I and other developers who may have to read and write this code, have to learn a new language to achieve the same result.

HAML certainly has it&#039;s benefits, and it&#039;s abstraction isn&#039;t that unfamiliar to those use to HTML and CSS. It&#039;s pretty quick to pick-up. My biggest problem however is the inevitable switching between HTML and HAML. Debugging something in the browser for example, I see the HTML. If I then want to bring up the source HAML file for that HTML, I need to do more mental mapping of what I&#039;ve seen in the browser, to the what I&#039;m seeing in my code editor. Another problem is that I often whip up my concepts and designs in plain HTML and CSS, before I even go near Ruby. It&#039;s always been a simple matter of copy and paste the HTML, and then substitute any dummy data with actual dynamic data (e.g ).

I fear that with HAML, the time I may save in writing HAML will be lost by the initial conversion from HTML to HAML. It is also another thing to learn for developers that wish to collaborate with you. It&#039;s for this reason I&#039;m not sold on HAML. I&#039;m going to stick with ERB for now I think.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using ERB since I came to the Ruby world around mid-2010. I&#8217;ve always been opposed to abstraction unless the benefits are significant, and the drawbacks are minimal.The biggest problem with abstraction is that it normally wastes the domain-specific knowledge you already have. A classic case is with many ORM&#8217;s. I already know how to solve my problem in SQL (as does every other developer), why do I and other developers who may have to read and write this code, have to learn a new language to achieve the same result.</p>
<p>HAML certainly has it&#8217;s benefits, and it&#8217;s abstraction isn&#8217;t that unfamiliar to those use to HTML and CSS. It&#8217;s pretty quick to pick-up. My biggest problem however is the inevitable switching between HTML and HAML. Debugging something in the browser for example, I see the HTML. If I then want to bring up the source HAML file for that HTML, I need to do more mental mapping of what I&#8217;ve seen in the browser, to the what I&#8217;m seeing in my code editor. Another problem is that I often whip up my concepts and designs in plain HTML and CSS, before I even go near Ruby. It&#8217;s always been a simple matter of copy and paste the HTML, and then substitute any dummy data with actual dynamic data (e.g ).</p>
<p>I fear that with HAML, the time I may save in writing HAML will be lost by the initial conversion from HTML to HAML. It is also another thing to learn for developers that wish to collaborate with you. It&#8217;s for this reason I&#8217;m not sold on HAML. I&#8217;m going to stick with ERB for now I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: copse</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-426</link>
		<dc:creator>copse</dc:creator>
		<pubDate>Thu, 23 Jun 2011 17:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-426</guid>
		<description>Not went through the whole post&#039;s comments, but hey… Forced-indentation › clean source code rendering.
Why should it remain messy ? IE6/7 feelings while reading in this article.</description>
		<content:encoded><![CDATA[<p>Not went through the whole post&#8217;s comments, but hey… Forced-indentation › clean source code rendering.<br />
Why should it remain messy ? IE6/7 feelings while reading in this article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe da Silveira</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-349</link>
		<dc:creator>Gabe da Silveira</dc:creator>
		<pubDate>Fri, 31 Dec 2010 21:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-349</guid>
		<description>Same here.  I just started using HAML/SASS for a new project.  I had resisted for a long time because I really had my workflow dialed in with HTML and I didn&#039;t feel HAML was a big enough win.

The catalyst in my case was switching to vim and not having a great set of HTML editing plugins yet.  With HAML, vanilla vi editing is terrifically efficient.  For SASS the wins are more obvious, but at the same time, modern CSS3 with its browser-specific attributes requirement compounds the value.</description>
		<content:encoded><![CDATA[<p>Same here.  I just started using HAML/SASS for a new project.  I had resisted for a long time because I really had my workflow dialed in with HTML and I didn&#8217;t feel HAML was a big enough win.</p>
<p>The catalyst in my case was switching to vim and not having a great set of HTML editing plugins yet.  With HAML, vanilla vi editing is terrifically efficient.  For SASS the wins are more obvious, but at the same time, modern CSS3 with its browser-specific attributes requirement compounds the value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. E. Patterson</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-330</link>
		<dc:creator>M. E. Patterson</dc:creator>
		<pubDate>Tue, 30 Nov 2010 04:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-330</guid>
		<description>Honestly, I&#039;ve not found it terribly fragile (not really even sure what you mean by that; how is it any more &#039;fragile&#039; than ERB or Erubis?), and I&#039;ve used Haml in several moderate-sized teams building enterprise software, and it was a breeze.  But if you&#039;re concerned about the need for perfect indentation and/or rendering speed, check out Slim.  I&#039;ve started moving lots of stuff to Slim and like it very much.  It&#039;s less strict than Haml in terms of indents and handles a lot of inlined alternate formats, when you need a block of Erb or Markdown or whatever.</description>
		<content:encoded><![CDATA[<p>Honestly, I&#8217;ve not found it terribly fragile (not really even sure what you mean by that; how is it any more &#8216;fragile&#8217; than ERB or Erubis?), and I&#8217;ve used Haml in several moderate-sized teams building enterprise software, and it was a breeze.  But if you&#8217;re concerned about the need for perfect indentation and/or rendering speed, check out Slim.  I&#8217;ve started moving lots of stuff to Slim and like it very much.  It&#8217;s less strict than Haml in terms of indents and handles a lot of inlined alternate formats, when you need a block of Erb or Markdown or whatever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-329</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 27 Nov 2010 09:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-329</guid>
		<description>++ 

If you&#039;ve ever used haml for a large project or with big template files, you&#039;ll discover that it is very fragile, not just because of indentation, though that&#039;s an issue, but because you&#039;re one level away from your templates, so that&#039;s another layer of abstraction to keep in everyone&#039;s head. For the same reason I avoid builder templates, because erb is far closer to the final output, and after a while the added abstraction of builder syntax just starts to get in the way. In addition, using haml and thus more ruby in templates just encourages you to put more code in the template, which is never a good idea. If your erb is full of garbage code, fix it - your templates should be mostly html, not code.

If you don&#039;t work with other people it&#039;s fine to use HAML, and good luck to you, but don&#039;t claim it&#039;s the one true way, as this really comes down to preference. Trying to convert a project which has several contributors and/or designers etc involved is a waste of everyone&#039;s time, unless everyone is agreed from the start that it&#039;s a great idea.</description>
		<content:encoded><![CDATA[<p>++ </p>
<p>If you&#8217;ve ever used haml for a large project or with big template files, you&#8217;ll discover that it is very fragile, not just because of indentation, though that&#8217;s an issue, but because you&#8217;re one level away from your templates, so that&#8217;s another layer of abstraction to keep in everyone&#8217;s head. For the same reason I avoid builder templates, because erb is far closer to the final output, and after a while the added abstraction of builder syntax just starts to get in the way. In addition, using haml and thus more ruby in templates just encourages you to put more code in the template, which is never a good idea. If your erb is full of garbage code, fix it &#8211; your templates should be mostly html, not code.</p>
<p>If you don&#8217;t work with other people it&#8217;s fine to use HAML, and good luck to you, but don&#8217;t claim it&#8217;s the one true way, as this really comes down to preference. Trying to convert a project which has several contributors and/or designers etc involved is a waste of everyone&#8217;s time, unless everyone is agreed from the start that it&#8217;s a great idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Thompson</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-327</link>
		<dc:creator>James Thompson</dc:creator>
		<pubDate>Sat, 06 Nov 2010 02:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-327</guid>
		<description>I want to echo this sentiment. I&#039;ve been very skeptical of HAML and SASS because of how familiar I am with XHTML &amp; CSS, particularly because I have worked deeply with an XML-based content management service and so I am also very well versed in XSLT. So, the markup &quot;noise&quot; never bothered me.

What&#039;s really won me over to trying out HAML &amp; SASS is the idea of cutting out the context shifting. Reducing the barrier between my markup structure and the styles for that markup is really attractive. Thanks for putting down your thoughts on these tools.</description>
		<content:encoded><![CDATA[<p>I want to echo this sentiment. I&#8217;ve been very skeptical of HAML and SASS because of how familiar I am with XHTML &amp; CSS, particularly because I have worked deeply with an XML-based content management service and so I am also very well versed in XSLT. So, the markup &#8220;noise&#8221; never bothered me.</p>
<p>What&#8217;s really won me over to trying out HAML &amp; SASS is the idea of cutting out the context shifting. Reducing the barrier between my markup structure and the styles for that markup is really attractive. Thanks for putting down your thoughts on these tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Johnson</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-261</link>
		<dc:creator>Nicholas Johnson</dc:creator>
		<pubDate>Fri, 06 Aug 2010 15:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-261</guid>
		<description>I&#039;ve been using html and xhtml for the past 15 years, It&#039;s second nature, so when I saw haml I just thought, I don&#039;t need a layer of abstraction on something so simple, there&#039;s no need. 

Having forced myself to give it a go for a couple of weeks though I now find myself hugely reluctant to go back. Its quicker to type, the semantic indentation that used to make me so cross now feels so obvious, it&#039;s easier to read, easier to isolate sections of code and move them about and the output is superb, perfect indentation that you don&#039;t get with ERB. 

You can also mix it with ERB so you don&#039;t have to do a whole project at once.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using html and xhtml for the past 15 years, It&#8217;s second nature, so when I saw haml I just thought, I don&#8217;t need a layer of abstraction on something so simple, there&#8217;s no need. </p>
<p>Having forced myself to give it a go for a couple of weeks though I now find myself hugely reluctant to go back. Its quicker to type, the semantic indentation that used to make me so cross now feels so obvious, it&#8217;s easier to read, easier to isolate sections of code and move them about and the output is superb, perfect indentation that you don&#8217;t get with ERB. </p>
<p>You can also mix it with ERB so you don&#8217;t have to do a whole project at once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haml/Sass 给你的代码洗洗澡吧 &#124; yakjuly&#39;s blog</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-260</link>
		<dc:creator>Haml/Sass 给你的代码洗洗澡吧 &#124; yakjuly&#39;s blog</dc:creator>
		<pubDate>Fri, 16 Jul 2010 04:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-260</guid>
		<description>[...] Why use HAML (and SASS)? I already know HTML. [...]</description>
		<content:encoded><![CDATA[<p>[...] Why use HAML (and SASS)? I already know HTML. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip P.</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-257</link>
		<dc:creator>Philip P.</dc:creator>
		<pubDate>Sat, 19 Jun 2010 13:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-257</guid>
		<description>@Liam McLellan, you state that the author of this post is &quot;completely missusing [sic] a clearly defined term.&quot; Ignoring your misspelling of misuse, and forgetting the negative impression it has made on your grasp of the English language, allow me to add some clarification relating to the use of &quot;cognitive dissonance&quot; in this post. I&#039;ll assume it was a typographical error committed in your haste to rectify what you perceive to be a gross contravention of the semantic code. @Sigi, the following may also be of interest to you.

Let me first acknowledge that I am very aware of the theory of &quot;Cognitive Dissonance&quot; in Psychology, and that I am also aware that without context I would assume such to refer to exactly that. However you fail to observe that &quot;Cognitive Dissonance&quot; has entered into the English language as &quot;cognitive dissonance&quot; purely as a result of the popularisation of this theory and has been current in this fashion only since the nineteen-forties.

However this taking on of a new meaning does not in anyway preclude M.E. Patterson for using the term in the way in which it would have been used before this theory was formalised and in the sense of the two words being used: cognitive, pertaining to cognition; and dissonance, pertaining to incongruity. As a programmer (with a background in linguistics), I at no point thought that he was referring to the theory in Psychology but took it to mean, in the sense that the author has since clarified, a discord in the mind resulting from two contradictory (in terms of mental processes arising from different implementation paradigms) approaches to describing what is essentially the same; the document structure.

To jump on his back for what you perceive to be an incorrect usage of this term betrays an ignorance of linguistic register, i.e. that some terms have different meanings in different contexts. To alert readers that this term is not confined to psychology alone functions in opposite fashion to the behaviour you say will occur, namely that reading this blog will not make anyone &quot;dumber&quot; by seeing the term used in this context, but rather, those coming from a knowledge of psychology, will in fact be alerted to the fact that these two words have a broader application than their narrow application within that field. This I would hope should make someone more intelligent, not less so. 

Shame on you; not for your ignorance, but for your zeal in propagating your ignorance to others.</description>
		<content:encoded><![CDATA[<p>@Liam McLellan, you state that the author of this post is &#8220;completely missusing [sic] a clearly defined term.&#8221; Ignoring your misspelling of misuse, and forgetting the negative impression it has made on your grasp of the English language, allow me to add some clarification relating to the use of &#8220;cognitive dissonance&#8221; in this post. I&#8217;ll assume it was a typographical error committed in your haste to rectify what you perceive to be a gross contravention of the semantic code. @Sigi, the following may also be of interest to you.</p>
<p>Let me first acknowledge that I am very aware of the theory of &#8220;Cognitive Dissonance&#8221; in Psychology, and that I am also aware that without context I would assume such to refer to exactly that. However you fail to observe that &#8220;Cognitive Dissonance&#8221; has entered into the English language as &#8220;cognitive dissonance&#8221; purely as a result of the popularisation of this theory and has been current in this fashion only since the nineteen-forties.</p>
<p>However this taking on of a new meaning does not in anyway preclude M.E. Patterson for using the term in the way in which it would have been used before this theory was formalised and in the sense of the two words being used: cognitive, pertaining to cognition; and dissonance, pertaining to incongruity. As a programmer (with a background in linguistics), I at no point thought that he was referring to the theory in Psychology but took it to mean, in the sense that the author has since clarified, a discord in the mind resulting from two contradictory (in terms of mental processes arising from different implementation paradigms) approaches to describing what is essentially the same; the document structure.</p>
<p>To jump on his back for what you perceive to be an incorrect usage of this term betrays an ignorance of linguistic register, i.e. that some terms have different meanings in different contexts. To alert readers that this term is not confined to psychology alone functions in opposite fashion to the behaviour you say will occur, namely that reading this blog will not make anyone &#8220;dumber&#8221; by seeing the term used in this context, but rather, those coming from a knowledge of psychology, will in fact be alerted to the fact that these two words have a broader application than their narrow application within that field. This I would hope should make someone more intelligent, not less so. </p>
<p>Shame on you; not for your ignorance, but for your zeal in propagating your ignorance to others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. E. Patterson</title>
		<link>http://mepatterson.net/2010/02/why-use-haml-and-sass-i-already-know-html/#comment-255</link>
		<dc:creator>M. E. Patterson</dc:creator>
		<pubDate>Tue, 15 Jun 2010 14:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=68#comment-255</guid>
		<description>The surprising &lt;em&gt;aggressiveness&lt;/em&gt; of your comment on a months-old blog post notwithstanding, I&#039;ll approve it and answer your question, since this raises a subject that is important to me:

I don&#039;t believe in blog post revisionism.  That is, what I posted is what I posted.  The commentor rightly took me to task for misusing a cognitive psychology term, and I accepted that criticism in the comments, albeit with a response that was a little tongue-in-cheek (really, guys, this is a programming blog… does anyone except me to be an expert on psychology?).  But I don&#039;t believe in going back and changing my original post text.  The post and the comments are inextricably linked.  Changing the post is tantamount to revising history to make oneself look smarter, and I hate blogs that do that.  I wrote what I wrote.  The comments thread annotates that.  Deal with it.</description>
		<content:encoded><![CDATA[<p>The surprising <em>aggressiveness</em> of your comment on a months-old blog post notwithstanding, I&#8217;ll approve it and answer your question, since this raises a subject that is important to me:</p>
<p>I don&#8217;t believe in blog post revisionism.  That is, what I posted is what I posted.  The commentor rightly took me to task for misusing a cognitive psychology term, and I accepted that criticism in the comments, albeit with a response that was a little tongue-in-cheek (really, guys, this is a programming blog… does anyone except me to be an expert on psychology?).  But I don&#8217;t believe in going back and changing my original post text.  The post and the comments are inextricably linked.  Changing the post is tantamount to revising history to make oneself look smarter, and I hate blogs that do that.  I wrote what I wrote.  The comments thread annotates that.  Deal with it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

