<?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>Bradley Holt &#187; HTML</title>
	<atom:link href="http://bradley-holt.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradley-holt.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Aug 2010 13:23:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend Framework Route Context Plugin</title>
		<link>http://bradley-holt.com/2010/01/zend-framework-route-context-plugin/</link>
		<comments>http://bradley-holt.com/2010/01/zend-framework-route-context-plugin/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:58:00 +0000</pubDate>
		<dc:creator>Bradley Holt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://bradley-holt.com/2010/01/zend-framework-route-context-plugin/</guid>
		<description><![CDATA[I want to share a simple, yet very useful, custom Zend Framework plugin that we use on almost all of our projects. The plugin (and associated code in the layout file) provides the Zend Framework route context as CSS classes on the body element. This allows us to change the design (using CSS) and/or behavior [...]]]></description>
			<content:encoded><![CDATA[<p>I want to share a simple, yet very useful, custom <a href="http://framework.zend.com/">Zend Framework</a> plugin that we use on almost all of our projects. The plugin (and associated code in the layout file) provides the Zend Framework route context as CSS classes on the <code>body</code> element. This allows us to change the design (using CSS) and/or behavior (using <a href="http://www.alistapart.com/articles/behavioralseparation">unobtrusive JavaScript</a>) on the page based on the Zend Framework route. For example if the module name was <code>default</code>, the controller name was <code>news</code>, and the action was <code>get</code> then the opening of the <code>body</code> element would like this:</p>
<pre><code>&lt;body class="default news get"&gt;</code></pre>
<p>There are some limitations. For example, you need to be careful not to overlap module, controller, or action names. If this is a problem for you then you could preface the class names (e.g. <code>module-default</code>, <code>controller-news</code>, <code>action-get</code>).</p>
<p>The <a href="http://gist.github.com/244249#file_route_context.php">RouteContext</a> plugin hooks into the <code>preDispatch</code> event and creates an array of route context strings. This example simply uses the module, controller, and action names as the route context. Often I&#8217;ll add other contextual strings to this array as needed. This array is then assigned to the view. The <a href="http://gist.github.com/244249#file_layout.phtml">layout</a> view script then simply implodes this array into the value of the <code>class</code> attribute using a space character as the glue.</p>
<p><script src="http://gist.github.com/244249.js?file=RouteContext.php"></script><script src="http://gist.github.com/244249.js?file=layout.phtml"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://bradley-holt.com/2010/01/zend-framework-route-context-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Design and Web Development</title>
		<link>http://bradley-holt.com/2010/01/web-design-and-web-development/</link>
		<comments>http://bradley-holt.com/2010/01/web-design-and-web-development/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 21:36:00 +0000</pubDate>
		<dc:creator>Bradley Holt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Mobile Computing]]></category>

		<guid isPermaLink="false">http://bradley-holt.com/2010/01/web-design-and-web-development/</guid>
		<description><![CDATA[Back in October, Jeffrey Zeldman tweeted something that I strongly agree with:
Real web designers write code. Always have, always will. #aea

This sparked many conversations including these two tweets from Chris Shiflett:
According to @zeldman, real web designers write code. (I think he means HTML and CSS, not PHP, Perl, and Python.) What do you think?

I’ve now [...]]]></description>
			<content:encoded><![CDATA[<p>Back in October, Jeffrey Zeldman <a href="http://twitter.com/zeldman/statuses/4818978868">tweeted</a> something that I strongly agree with:</p>
<blockquote><p>Real web designers write code. Always have, always will. <a href="http://twitter.com/search?q=%23aea">#aea</a></p>
</blockquote>
<p>This sparked many conversations including these <a href="http://twitter.com/shiflett/status/4819361797">two</a> <a href="http://twitter.com/shiflett/status/4820055234">tweets</a> from Chris Shiflett:</p>
<blockquote><p>According to @<a href="http://twitter.com/zeldman">zeldman</a>, real web designers write code. (I think he means HTML and CSS, not PHP, Perl, and Python.) What do you think?</p>
</blockquote>
<blockquote><p>I’ve now asked, separately, whether developers and designers should know HTML and CSS. In both cases, most think they should. Interesting.</p>
</blockquote>
<p>To which I <a href="http://twitter.com/BradleyHolt/status/4820141311">responded</a> (brackets added):</p>
<blockquote><p>@<a href="http://twitter.com/shiflett">shiflett</a> IMHO, the demarcation between web developers and web designers should be POSH [<a href="http://microformats.org/wiki/posh">Plain Old Semantic HTML</a>]. That&#8217;s what both need to know.</p>
</blockquote>
<p>I have a pretty strong opinion about this. You could say that I have the luxury of working with an <a href="http://foundline.com/people/jason-pelletier">excellent designer</a> who implements all of his own CSS—even tackling much of the JavaScript coding on websites we build. To be clear: he is a designer, not a developer—working in both print (which is more technical than you might think) and web.</p>
<p>The typical process is summarized well in Marco Tabini&#8217;s <a href="http://phpadvent.org/2009">PHP Advent 2009</a> post on <a href="http://phpadvent.org/2009/css-and-other-people-by-marco-tabini">CSS and Other People</a>:</p>
<blockquote><p>From a developer’s perspective, “design work” means having to deal with the often hated, sometimes impossible, and always challenging task of translating a designer’s <em>comp</em> into a combination of HTML and CSS that will render properly on browsers that are often at complete odds with one another.</p>
</blockquote>
<p>In my opinion, that process is broken. Why is it assumed that because HTML and CSS are &#8220;code&#8221; it should be a developer&#8217;s job to implement these? Any decent designer is already familiar with the concept of separating presentation and content with <a href="http://en.wikipedia.org/wiki/Style_sheet_%28desktop_publishing%29">style sheets</a> (which are supported in Adobe InDesign, QuarkXPress, and even PageMaker and Microsoft Word). Is learning HTML and CSS, both <a href="http://en.wikipedia.org/wiki/Declarative_programming">declarative languages</a>, considered too hard for designers?</p>
<p>Let&#8217;s take a look at comps and the dreaded &#8220;s&#8221; word—slicing. As Marco pointed out, trying to &#8220;slice&#8221; a comp into HTML and CSS is &#8220;sometimes impossible&#8221; and &#8220;always challenging.&#8221; If a designer is only providing a comp, and not the HTML and CSS, it is very likely that the designer does not have a solid understanding of things like <a href="http://en.wikipedia.org/wiki/Progressive_enhancement">progressive enhancement</a>, browser compatibility, and even what is possible on the web.</p>
<p>The use of a comp generally assumes that design is purely visual and that all representations of the web page should look exactly like the comp. How should the content be presented to screen readers, to mobile devices, and in print? Sure, you could provide comps for each of these scenarios but this is not scalable and you quickly risk violating the &#8220;<a href="http://www.w3.org/TR/mobile-bp/#OneWeb">One Web</a>&#8221; concept. Thinking of a web page through the lens of only one specific visual representation of that page is very limiting.</p>
<p>Do you agree that the typical process is broken? If so, what are the barriers to fixing this process? Do we need better trained web designers? Do organizations need to be educated on how to better structure their web teams? This problem will eventually self-correct. My prediction is that teams with web designers that know HTML and CSS will create better websites and web applications and be more successful than teams using the old process.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradley-holt.com/2010/01/web-design-and-web-development/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
