<?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>AmberWeinberg.com &#187; validation</title> <atom:link href="http://www.amberweinberg.com/tag/validation/feed/" rel="self" type="application/rss+xml" /><link>http://www.amberweinberg.com</link> <description>Design, Development and Freelance Articles and Tutorials</description> <lastBuildDate>Mon, 06 Feb 2012 21:09:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Becoming A Better Developer For 2011</title><link>http://www.amberweinberg.com/becoming-a-better-developer-for-2011/</link> <comments>http://www.amberweinberg.com/becoming-a-better-developer-for-2011/#comments</comments> <pubDate>Mon, 27 Dec 2010 14:30:31 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[improvement]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[objective c]]></category> <category><![CDATA[personal stories]]></category> <category><![CDATA[strategy]]></category> <category><![CDATA[validation]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=3812</guid> <description><![CDATA[It&#8217;s time for the New Year to begin so we all know what that means &#8211; an excuse to learn and become something better than we already are1 For the holiday months, I&#8217;ve spent a ton of time learning, reading and trying out new coding techniques to find out what works best. Every site I [...]]]></description> <content:encoded><![CDATA[<p>It&#8217;s time for the New Year to begin so we all know what that means &#8211; an excuse to learn and become something better than we already are1 For the holiday months, I&#8217;ve spent a ton of time learning, reading and trying out new coding techniques to find out what works best. Every site I code, I always try to do something  a little bit different in order to constantly improve on what I&#8217;m doing.</p><p>Web technology is always evolving and it seems that every day there&#8217;s something new that&#8217;s come out. It&#8217;s enough to make a sane developer crazy &#8211; and unfortunately that means we can never take a rest from our world, or we risk being left behind. (Man that sounds like an awesome movie trailor&#8230;)</p><p>I&#8217;d love to share with you some of things I&#8217;ve been learning lately, as well as some new(or new to me) coding tricks.</p><h3>HTML/HTML5</h3><p>Frankly, I got so tired of hearing about HTML5, that I finally decided to try it. I now validate all of my sites in HTML5 and use all of the new shorten info in the head tag that comes along with it. However, I don&#8217;t use any of the hew HTML5 tags, as they require hacks to get them to work in Internet Explorer. We all know how I feel about hacks, and it&#8217;s isn&#8217;t good.</p><p>In order to help me learn and understand the updates to HTML, I&#8217;ve bought several books (and written reviews for you) on the subject:</p><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9yZXZpZXctb2YtaHRtbDUtZm9yLXdlYi1kZXNpZ25lcnMtYnktamVyZW15LWtlaXRoLw==">HTML5 For Web Developers</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9idWlsZGluZy1maW5kYWJsZS13ZWJzaXRlcy8=">Building Findable Websites</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS90aGUtc21hc2hpbmctYm9vay1yZXZpZXctYW5kLXdpbi1hLWNvcHkv">The Smashing Book</a></li><li>Hardboiled Web Design (bought but not read yet)</li></ul><p>Of course I have a TON of books on <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5nb29kcmVhZHMuY29tL3Jldmlldy9saXN0LzI4OTE2ODEtYW1iZXItd2VpbmJlcmc/c2hlbGY9dG8tcmVhZA==">my wishlist</a> for all of these categories!</p><h3>CSS/CSS3</h3><p>I&#8217;ve been using CSS3 for several months now and have been able to convince my clients to embrace the idea of progressive enhancement. CSS3 has sped up my coding noticeably, as I no longer have to take the time to slice and code up images for shadows, rounded corners and the like. Also, the new advanced selectors have made my code cleaner and more efficient. I think this is why I&#8217;m starting to enjoy mobile development more &#8211; because I don&#8217;t have to worry about IE at all and can pretty much use CSS3 to it&#8217;s fullest.</p><p>And the books I&#8217;ve read on the subject:</p><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9yZXZpZXctb2YtYWR2YW5jZWQtY3NzLWJ5LWpvc2VwaC1sZXdpcy8=">Advanced CSS</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9zbWFzaGluZy1jc3MtYnktZXJpYy1tZXllci8=">Smashing CSS</a></li><li>CSS3 for Web Designers (bought but not read yet)</li></ul><h3>Improvements To Coding</h3><p>All this book reading would be for nothing if I didn&#8217;t actually learn and implement any of it. In fact, I learned a ton and have made major revisions to the way I write CSS and a few to HTML as well.</p><p><strong>CSS</strong></p><p>I continue to prefer single line CSS, but I&#8217;ve now just started to put my declarations in alphabetical order. While I&#8217;m still getting used to this, it&#8217;s made it a lot easier to find what I&#8217;m looking for, especially on longer lines. I&#8217;ve also learned some nifty new selectors I never though to use before. The most helpful has been the use of:</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"> a <span style="color: #00AA00;">&gt;</span> d <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>Which selects only the top level child of the element. This select has been so incredibly useful, I can&#8217;t believe I never used it before.</p><p>I&#8217;ve also started using shorter selectors and not chaining them as much. This makes the file smaller and quicker to implement on loading.</p><p><strong>HTML</strong></p><p>Besides switch over to the HTML5 doctype and using the new &lt;head&gt; elements, there&#8217;s not much I&#8217;ve changed in my HTML. I have stopped using containers as much as possible, and instead have started centering the divs, and putting backgrounds on the &lt;html&gt; and &lt;body&gt; tags. This lends to much cleaner code.</p><p>To see examples of all of these, you&#8217;re welcome to download my <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9oaWppbmtzLWEtd29yZHByZXNzLWJhc2ljLWZyYW1ld29yay8=">Hijinks WordPress theme</a>, which is the exact same theme I use for all the WordPress sites I code.</p><h3>Other Languages/Platforms</h3><p>I&#8217;ve also been experiencing with other languages and CMS&#8217;s and here are some books on those topics as well:</p><p><strong>WordPress</strong></p><p>I actually didn&#8217;t start WordPress development until the very end of 2009, I can&#8217;t believe how far I&#8217;ve come in learning!</p><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9kaWdnaW5nLXdvcmRwcmVzcy1yZXZpZXctZ2l2ZWF3YXkv">Digging Into WordPress</a></li></ul><p><strong>Objective C</strong><br
/> I spent most of the spring, summer and beginning of the fall reading this book. I&#8217;m still no where near to making my own apps, but the foundation is there.</p><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9iZWdpbm5pbmctaXBob25lLTMtZGV2ZWxvcG1lbnQtZXhwbG9yaW5nLXRoZS1pcGhvbmUtc2RrLw==">Beginning iPhone3 Development</a></li></ul><p><strong>jQuery</strong><br
/> This book has allowed me to start writing my own jQuery from scratch. No longer do I have to haggle with plugins or ask the fiance to do it for me.</p><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9qcXVlcnktbm92aWNlLXRvLW5pbmphLw==">jQuery Novice to Ninja</a></li></ul><h3>What about you?</h3><p>What are some of the things you&#8217;ve learned this year in order to make yourself better for the next?</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3812" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/becoming-a-better-developer-for-2011/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Validation Is Still Relevant</title><link>http://www.amberweinberg.com/validation-is-still-relevent/</link> <comments>http://www.amberweinberg.com/validation-is-still-relevent/#comments</comments> <pubDate>Thu, 07 Oct 2010 14:30:44 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[iphone]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[rant]]></category> <category><![CDATA[validation]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=3528</guid> <description><![CDATA[I was listening to a Sitepoint podcast when they started talking about whether they still validate their HTML or not. This being my expertise, I quickly perked up my ears to listen to what the &#8220;experts&#8221; were saying. And I was disappointed. Perhaps the guys who take care of the podcast aren&#8217;t coders, or aren&#8217;t [...]]]></description> <content:encoded><![CDATA[<p>I was listening to a Sitepoint podcast when they started talking about whether they still validate their HTML or not. This being my expertise, I quickly perked up my ears to listen to what the &#8220;experts&#8221; were saying. And I was disappointed.</p><p>Perhaps the guys who take care of the podcast aren&#8217;t coders, or aren&#8217;t front-end developers, and if that&#8217;s the case, then I forgive them for their validation transgressions. I just hope they really aren&#8217;t front-end developers&#8230;</p><h3>What They Said</h3><p>The guys at Sitepoint admitted they no longer validate their sites, and none of their sites could pass basic validation. They believed that because large sites like Google and Facebook didn&#8217;t validate, why should they? They then commented that validation is no longer important today.</p><h3>Validation Is Important</h3><p>I&#8217;ve always believed that validation is important, especially since I decided to focus my career on front-end development. Surprisingly, this is a source of a lot of debate in the development world, which makes about as much sense to me as policemen disregarding their standard rules.</p><p>Validation is written by the W3C, which takes care of HTML and CSS standards. Validation rules are like guidelines, you don&#8217;t <em>have</em> to do it, but it&#8217;s something you should do.</p><p>Passing validation helps in several ways &#8211; it helps you rule out browser bugs, your code tends to be cleaner in nature, and you help push a browser standard that will make it easier to code for in the future. Think about it &#8211; if developers didn&#8217;t care about following standards, why would browsers? We&#8217;d probably end up back in the Netscape/Internet Explorer days where each browser went off in their own direction in how they rendered items. It would be like hacking and coding for each browser &#8211; and we&#8217;re trying to move away from hacks right? (Which is why I&#8217;m holding off on using HTML5).</p><p>Plus it holds your code to a higher standard and shows you care about quality. Designers don&#8217;t <em>have</em> to use grids or good typography to make a living, both those that do are often more successful. The same with developers. I&#8217;ve actually had clients go through each of my portfolio pieces to see if they validated.</p><h3>Validation Is More Important Than Ever</h3><p>Not only has validation always been important, but it&#8217;s now more important than ever. Even though it can&#8217;t directly affect your SEO, getting rid of extra divs (divitis &amp; semantics related to validation) allows the Google bot to make it through your code easier and ensures they capture all of your content.</p><p>With the proliferation of new kinds of browsers as well (think mobile, iPads &amp; netbooks), validation becomes even more important. I just finished coding a huge mobile site for Audible and encountered several bugs invisible to Firefox and even the desktop version of Safari. Upon glancing at the iPhone, however, you could see huge layout issues. The problem was mismatched tags and improper nesting. Had I not gone and validated the site, I could&#8217;ve been searching for the bug for forever.</p><h3>Resistence</h3><p>I&#8217;ve never understood why a lot of developers never took the extra step to validate their HTML. A lot of the complaints I get about validating, is that it takes <em>forever</em>. However, it should easily take you less than five minutes to validate your code if you learn proper syntax and rules. It&#8217;s easy.</p><p>Of course, there are always exceptions to the rule. When a client insists on a new browser window popup on link, and for some reason you&#8217;re unable to use JS for this, you&#8217;ll often find yourself using target=_blank and that&#8217;s ok every once in awhile, although you should try to deter the client from new browser windows due to user annoyance.</p><p>I will admit that I don&#8217;t bother validating my CSS. Before CSS3 I never really had any CSS validation errors, and if I did it was easy to tell by the messed up website. Now that I use a lot of CSS3 and vendor prefixes, I don&#8217;t even bother to look. But these aren&#8217;t improper syntaxes or hacks &#8211; they&#8217;re still valid code.</p><h3>Your Thoughts</h3><p>Do you validate your code? Why or why not?</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3528" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/validation-is-still-relevent/feed/</wfw:commentRss> <slash:comments>38</slash:comments> </item> <item><title>Building Findable Websites</title><link>http://www.amberweinberg.com/building-findable-websites/</link> <comments>http://www.amberweinberg.com/building-findable-websites/#comments</comments> <pubDate>Mon, 16 Aug 2010 14:30:41 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[marketing]]></category> <category><![CDATA[reviews]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[strategy]]></category> <category><![CDATA[validation]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=3315</guid> <description><![CDATA[Building Findable Websites by Arron Walter is one of the best books I&#8217;ve read on the subject of SEO, web standards and accessibility in the world of code. Aimed specifically to developers, Building Findable Websites is 264 pages based on several topics. This isn&#8217;t a regular SEO book, but teaches &#8220;findability&#8221; through good coding practices, including [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft size-full wp-image-3316" title="Web Standards SEO and Beyond" src="http://www.amberweinberg.com/wp-content/uploads/2010/08/Web-Standards-SEO-and-Beyond.gif" alt="" width="197" height="240" /><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWF6b24uY29tL2dwL3Byb2R1Y3QvMDMyMTUyNjI4Nz9pZT1VVEY4JmFtcDt0YWc9cG9ydG9mYW1iZXdlaS0yMCZhbXA7bGlua0NvZGU9YXMyJmFtcDtjYW1wPTE3ODkmYW1wO2NyZWF0aXZlPTM5MDk1NyZhbXA7Y3JlYXRpdmVBU0lOPTAzMjE1MjYyODc=">Building Findable Websites</a> by Arron Walter is one of the best books I&#8217;ve read on the subject of SEO, web standards and accessibility in the world of code.</p><p>Aimed specifically to developers, <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWF6b24uY29tL2dwL3Byb2R1Y3QvMDMyMTUyNjI4Nz9pZT1VVEY4JmFtcDt0YWc9cG9ydG9mYW1iZXdlaS0yMCZhbXA7bGlua0NvZGU9YXMyJmFtcDtjYW1wPTE3ODkmYW1wO2NyZWF0aXZlPTM5MDk1NyZhbXA7Y3JlYXRpdmVBU0lOPTAzMjE1MjYyODc=">Building Findable Websites</a> is 264 pages based on several topics. This isn&#8217;t a regular SEO book, but teaches &#8220;findability&#8221; through good coding practices, including best practices for Flash, Javascript and AJAX. It also includes basic SEO information on keywords in titles, alts and density.</p><p>I skipped over a few sections because it included basic information I already knew or beginners info on things like using Feedburner, but I still found a ton of relevant material to keep me interested.</p><p>The book has a ton of resources and code examples and even gives access to several bonus chapters on online.</p><p>You can find <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWF6b24uY29tL2dwL3Byb2R1Y3QvMDMyMTUyNjI4Nz9pZT1VVEY4JmFtcDt0YWc9cG9ydG9mYW1iZXdlaS0yMCZhbXA7bGlua0NvZGU9YXMyJmFtcDtjYW1wPTE3ODkmYW1wO2NyZWF0aXZlPTM5MDk1NyZhbXA7Y3JlYXRpdmVBU0lOPTAzMjE1MjYyODc=">Building Findable Websites</a> on Amazon for $30.</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3315" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/building-findable-websites/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Should You Document Your HTML?</title><link>http://www.amberweinberg.com/should-you-document-your-html/</link> <comments>http://www.amberweinberg.com/should-you-document-your-html/#comments</comments> <pubDate>Wed, 30 Jun 2010 16:03:22 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[improvement]]></category> <category><![CDATA[rant]]></category> <category><![CDATA[trends]]></category> <category><![CDATA[validation]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=3023</guid> <description><![CDATA[Anyone who knows anything about my development style knows I&#8217;m a huge stickler for clean, semantic code. It kills me when a client asks me to edit an existing site that&#8217;s filled with improper tabs, run-on coding, extra blank lines and divs name &#8220;div45673435534&#8243;. I&#8217;ve been so proud of the development community lately, because I&#8217;ve [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.amberweinberg.com/wp-content/uploads/2010/06/screenshot_015-590x117.jpg" alt="" title="screenshot_01" width="590" height="117" class="alignnone size-large wp-image-3026" /></p><p>Anyone who knows anything about my development style knows I&#8217;m a huge stickler for clean, semantic code. It kills me when a client asks me to edit an existing site that&#8217;s filled with improper tabs, run-on coding, extra blank lines and divs name &#8220;div45673435534&#8243;.</p><p>I&#8217;ve been so proud of the development community lately, because I&#8217;ve watched the importance of clean code in the past year or so become very, very important. As a matter of fact, clients are now becoming educated in this subject and hire developers based on the quality of their code.</p><p>So I&#8217;ve noticed several recent articles on structuring code, and since I&#8217;m always looking out for new ideas, I&#8217;ve perused as many as these articles as possible. However I&#8217;ve noticed one alarming tip that most of these articles offer up to developers &#8211; <strong>that you should comment your HTML extensively</strong>.</p><h3>I disagree that you should comment your HTML extensively &#8211; or even at all.</h3><p>Now, before you flame my comments let me explain why.</p><h3>What is the purpose of commenting code?</h3><p>Commenting code is meant to do a few things. One, it tells any future dev who needs to work on your site what something does. Two, it helps you find what you&#8217;re looking for.</p><p>In languages like PHP, Javascript, ASP and Objective C, commenting is very important because the files can go on for forever and it&#8217;s not always obvious as to what something does. <strong>HTML, however, is not and should not be built like this.</strong></p><p>Semantics comes into play a lot more in HTML than anything else. What your HTML code does should always be obvious, as HTML itself is very simple in nature and structure. Your divs should be named semantically, header for the header, footer for the footer. Your files should never be very long, thanks to the use of includes and repeating areas (like the header and footer).</p><p>Properly tabbing and spacing your code also gives it natural breaks that allow your eye to quickly find each section. Comments are not needed for this.</p><h3>Commenting The Close of Divs</h3><p>Open any HTML or WordPress template from Themeforest and what do you see? Closed div tags that are commented. Why do you need to label which div is being closed if you properly tab? Commenting this just makes for an annoying longer file. For example, what&#8217;s really the purpose of this:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;container&quot;&gt;
     &lt;div class=&quot;header&quot;&gt;
     &lt;/div&gt;&lt;!--header---&gt;
&lt;/div&gt;&lt;!---container---&gt;</pre></div></div><p>Is that really necessary? Also putting comments like this blocks the eye from naturally discerning the short closed div tags.</p><h3>Still with me?</h3><p>If you&#8217;re a developer who&#8217;s worth anything at all your HTML should naturally be readable. I could possible see the need for a comment or two if you&#8217;re doing something extra wacky that may not make sense. But really, who&#8217;s not going to understand what a header div is for?</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3023" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/should-you-document-your-html/feed/</wfw:commentRss> <slash:comments>40</slash:comments> </item> <item><title>10 Ways To Increase Traffic By Changing Your Code</title><link>http://www.amberweinberg.com/10-ways-to-increase-traffic-by-changing-your-code/</link> <comments>http://www.amberweinberg.com/10-ways-to-increase-traffic-by-changing-your-code/#comments</comments> <pubDate>Tue, 01 Dec 2009 15:29:40 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[business]]></category> <category><![CDATA[development]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[php]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[validation]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=722</guid> <description><![CDATA[Search engine optimization, or SEO, is a very complicated science. While no one knows exactly how Google ranks websites, we do have a lot of proven techniques. Good SEO depends on several factors in your website, but when you usually think of SEO, you probably think of dealing with content and inward links. But did [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignright size-medium wp-image-723" title="3573333256_5827198517_b" src="http://www.amberweinberg.com/blog/wp-content/uploads/2009/12/3573333256_5827198517_b-300x162.jpg" alt="3573333256_5827198517_b" width="300" height="162" />Search engine optimization, or SEO, is a very complicated science. While no one knows exactly how Google ranks websites, we do have a lot of proven techniques.</p><p>Good SEO depends on several factors in your website, but when you usually think of SEO, you probably think of dealing with content and inward links. But did you know that there are several ways to improve your traffic and SEO by changing your code? Increasing traffic and rankings in code depends on three factors.</p><p><a
title=\"FreelanceFolder\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2ZyZWVsYW5jZWZvbGRlci5jb20vMTAtd2F5cy10by1pbmNyZWFzZS10cmFmZmljLWJ5LWNoYW5naW5nLXlvdXItY29kZQ==" target=\"_blank\">Read the Rest of my Post on FreelanceFolder</a></p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=722" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/10-ways-to-increase-traffic-by-changing-your-code/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The 7 Habits of Miserably Failing Web Developers</title><link>http://www.amberweinberg.com/7-habits-of-miserably-failing-web-developers/</link> <comments>http://www.amberweinberg.com/7-habits-of-miserably-failing-web-developers/#comments</comments> <pubDate>Mon, 09 Nov 2009 18:31:52 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[php]]></category> <category><![CDATA[validation]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/blog/?p=511</guid> <description><![CDATA[OK bad Stephen Covey references aside, we developers can often fail into bad habits while slammed with coding that eventually stop us from reaching our full potential. While some habits can help us speed up our work, others (like stuffing my face with candy as I type&#8230;) can do harm to both our business and [...]]]></description> <content:encoded><![CDATA[<p>OK bad Stephen Covey references aside, we developers can often fail into bad habits while slammed with coding that eventually stop us from reaching our full potential. While some habits can help us speed up our work, others (like stuffing my face with candy as I type&#8230;) can do harm to both our business and personal life. Let&#8217;s put down the halloween candy and look at some of the bad habits you can develop in your coding life.<span
id="more-511"></span></p><h3 style="font-size: 1.17em;">Habit #1: Couch-Potato-ism</h3><div
id="attachment_517" class="wp-caption alignright" style="width: 310px"><img
class="size-medium wp-image-517" title="Couch Potato 2" src="http://www.amberweinberg.com/blog/wp-content/uploads/2009/11/Couch-Potato-2-300x180.gif" alt="Is this you?" width="300" height="180" /><p
class="wp-caption-text">Is this you?</p></div><p>We all love constant work and good downtimes. The only problem with both is that you can start developing a couch potato mentality. You either get into the habit of doing the same types of jobs day in and day out or you&#8217;re left with no work and staring at a blank computer screen. You&#8217;re not learning anything new. This is a good way to dumb yourself out of the field. You should be learning new ways of coding, tricks or even new languages every day.</p><p>I&#8217;ve heard a lot of people say to give your self &#8220;fake&#8221; client projects and practice that way. However, I don&#8217;t like to waste my time. Learning, per se,  is never a waste of time, but I&#8217;d rather learn AND make some fat cash. (Ok maybe a <em>little</em> cash&#8230;) It&#8217;s difficult for web developers to do this, because we can sell photographs or designs, and there aren&#8217;t any stock code snippets sites out there yet (anyone want to start one with me??), but I&#8217;ve found a few good ways to up your<em>insert-your-favorite-2-4-letter-web-language</em>-game.</p><ul><li><strong>WordPress/HTML/CMS templates</strong> &#8211; I&#8217;ve recently teamed up with a designer, and we just finished our first template (hoping it will be out by the time you read this). Although I spent FOUR times as much coding time as I would&#8217;ve a paid site, and it&#8217;s a possibility I&#8217;ll make little to no money off it, I easily quadrupled my knowledge of backend WordPress in a weekend. I don&#8217;t even do backend programming. This learning experience = way worth it.</li><li><strong>Books in other fields </strong>- I love reading. I&#8217;m a real geek all around. What better thing to do in my spare time than read a new book? While programming books are impossible to follow if you&#8217;re not sitting in front of a computer, web theory books are GOLD. I&#8217;ve been interested in doing some additional marketing for my site, which is why I picked up a copy of<a
title=\"Six Pixels of Separation\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWF6b24uY29tL2dwL3Byb2R1Y3QvMDQ0NjU0ODIzNT9pZT1VVEY4JmFtcDt0YWc9cG9ydG9mYW1iZXdlaS0yMCZhbXA7bGlua19jb2RlPWFzMyZhbXA7Y2FtcD0yMTExODkmYW1wO2NyZWF0aXZlPTM3MzQ4OSZhbXA7Y3JlYXRpdmVBU0lOPTA0NDY1NDgyMzU=" target=\"_blank\">Six Pixels of Separation</a> a few weeks ago. I might go back and pick up a copy of Seth Godin&#8217;s <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWF6b24uY29tL2dwL3Byb2R1Y3QvMTU5MTg0MjMzNj9pZT1VVEY4JmFtcDt0YWc9cG9ydG9mYW1iZXdlaS0yMCZhbXA7bGlua0NvZGU9YXMyJmFtcDtjYW1wPTE3ODkmYW1wO2NyZWF0aXZlPTM5MDk1NyZhbXA7Y3JlYXRpdmVBU0lOPTE1OTE4NDIzMzY=">Tribes: We Need You to Lead Us</a><img
style="margin: 0px !important; border: 0px none !important initial !important;" src="http://www.assoc-amazon.com/e/ir?t=portofambewei-20&amp;l=as2&amp;o=1&amp;a=1591842336" border="0" alt="" width="1" height="1" /> next.</li></ul><h3 style="font-size: 1.17em;">Habit #2: Keeping a coded bird&#8217;s nest</h3><p>My favorite thing in the world is opening a website that someone else has coding and going blind instantly. No really, it&#8217;s a pastime! Just as bad as designers who neither label or organize their layers in folders, developers need to be just as organized. Code inside of code inside of code needs to be properly indented.</p><p>Now imagine how much you&#8217;d have to spend if you were missing a closing div tag somewhere&#8230;.Just make sure your code is always indented and spaced well. Top level touches the side, next element gets one indent, the next another etc etc.</p><h3 style="font-size: 1.17em;">Habit #3: Stuck in 1993&#8230;and proud of it</h3><div
id="attachment_525" class="wp-caption alignright" style="width: 310px"><img
class="size-medium wp-image-525" title="weirdguy" src="http://www.amberweinberg.com/blog/wp-content/uploads/2009/11/weirdguy-300x300.jpg" alt="I bet this guy codes in tables..." width="300" height="300" /><p
class="wp-caption-text">I bet this guy codes in tables...</p></div><p>I still have developers (especilly .NET developers&#8230;) that argue with me about tables. No, not a dining table &#8211; but that archaic way of laying out a page using static sliced images, Photoshop &#8220;programming&#8221; and Dreamweaver&#8217;s design view. If you ever want to be a <em>real </em>developer, you need to start using CSS properly. Tables should ONLY be used for tabular data&#8230;and eating on.</p><ul><li><strong>True story -&gt; </strong>I&#8217;ve been making websites since middle school. My first website was a super cool site dedicated to my beloved Sailor Moon, beautifully laid out in frames and animated gifs (this was before image programs for me, so no slice tool!) Then along came Paint Shop Pro and it&#8217;s wonderful slice tool, hence the birth of Amber&#8217;ed Tables. I stopped making websites for a few years after I started college. I started one for my portfolio and guess what? Those few years that I&#8217;d been out of the web world, a little thing called CSS (See habit #1 above)&#8230;hence I was laughed out of a lot of web portfolio critique forums. I had to learn it like everyone else. (Yea yea, all you got out of this story was I was an anime dork, didn&#8217;t you?)</li></ul><p>Learned the correct way, CSS IS easier than using tables (both have the same application &#8220;theory&#8221; anyways, i.e. &lt;td&gt; versus &lt;div&gt;, and:  more powerful, quicker to download, easier to make browser friendly, easier to move stuff around, easier on my eyes when I have to fix it and just plain easier&#8230;and correct.</p><h3 style="font-size: 1.17em;">Habit #4: One big ol&#8217; image to rule them all</h3><p>Bad developers use the slice tool in Photoshop like there&#8217;s no tomorrow. This is a horrible practice because it makes the website both static and slow loading. Only graphical data (pictures) should be an image; and the only time text should be an image is if the font isn&#8217;t web friendly and the client insists on using it. Also, if the client decides to change something after you&#8217;ve finished coding (which happens 99.9% of the time) and everything is an image&#8230;well that&#8217;s going to be a huge PIA for you. It&#8217;s also bad for SEO because like flash, a search engine can&#8217;t read an image, and an alt tag is held in less esteem that real content. Let&#8217;s take a look at some tips to reduce images:</p><ul><li><strong>Repeating Bkgs</strong> &#8211; Unless the bkg is one big image, it&#8217;s probably a plain color, which you can use a regular hex for, or a repeating image (look at my bkg). For repeating images, take the SMALLEST snip of the bkg possible that still makes it repeat correctly. I believe my background is only 1px wide and tall.</li><li><strong>Buttons </strong>- If the bkg of the button can&#8217;t be rendered via CSS, it&#8217;s ok to use an image, however the text inside a button should be&#8230;text. I can&#8217;t tell you how many times I&#8217;ve had to change the text of a button!</li><li><strong>1px regular horizontal dividers</strong> should always be an hr tag instead of an image</li></ul><h3>Habit #5: Stickin it to the designer</h3><p><span
style="font-weight: normal; font-size: 13px;"> </span></p><div
id="attachment_530" class="wp-caption alignright" style="width: 250px"><img
class="size-full wp-image-530" title="mad_computer-guy" src="http://www.amberweinberg.com/blog/wp-content/uploads/2009/11/mad_computer-guy.jpeg" alt="Seriously-love your designer, ok?" width="240" height="260" /><p
class="wp-caption-text">Seriously-love your designer and code, ok?</p></div><p>Just because you&#8217;re a developer with zero sense of design, doesn&#8217;t mean you shouldn&#8217;t care about the design. When a client or designer hands you a PSD they expect the website to look EXACTLY like the PSD. It doesn&#8217;t count to just throw up some code with some of the design elements and call it a day. I&#8217;ve had a few clients come to me because their programmer just threw up the site &#8211; and it was completely off from the PSD (we&#8217;re talking 50-100s of pixels) and none of the fonts were even the correct size, style or color. That&#8217;s a good way to lose your clientele. While no website will be exactly pixel for pixel, it&#8217;s to your advantage to actually figure out how many pixels div #1 and div #2 are from each other. It&#8217;s equally as important to make sure your fonts and colors match the PSD.</p><h3 style="font-size: 1.17em;">Habit #6: Who cares about standards? I make the rules!</h3><p>You&#8217;ll probably get tired of hearing me say this&#8230;<strong>but validation and semantics are important!! </strong>(Notice the bold?) Why are they important? Do you struggle with browser compatibility? Do you have problems getting things laid out correctly? Do you have problems with code not functioning as you thought? Do you validate and use proper semantics? I bet not. While these things don&#8217;t always fix the site up perfect (I should tell you about the doozy of the site I coded this weekend) it gives you a HUGE headstart when trying to fix it in all browsers. When you don&#8217;t validate and something is messed up &#8211; you have to use all kinds of hacks and start at the code for long hours trying to figure out why something isn&#8217;t moving to the right; but if you&#8217;ve validated, you don&#8217;t have to worry about unclosed div tags, or something overflowing into something else. Plus it gives you a HUGE heads up in the community &#8211; I&#8217;ve recently seen a HUGE uplift in validation standards (thank god) and many agencies won&#8217;t hire you if you don&#8217;t validate.</p><h3 style="font-size: 1.17em;">Habit #7: Their code isn&#8217;t politically correct</h3><p>A great developer names their elements and images with things that make sense: header, nav, leftColumn, rightColumn, buttonHelp, navAbout etc etc. A horrible developer names their items stupid things that don&#8217;t make sense: button1, button1234, image36, fatcat etc etc. Tell me, where on the website is button 1,234? Wouldn&#8217;t it be more helpful if it were named buttonAboutLady or buttonAboutHelp? In a year, when a client comes back to you and wants to change button 1,234, are you going to remember which button that is? While you can always look at the source; it still takes an insane amount of time, especially when its a HUGE website (think a hospital website) to go through 1,000s of images to figure out which one you&#8217;re looking for. Ditto in the CSS. Here&#8217;s how I try to name my CSS elements and images:</p><ul><li><strong>What is it? </strong>A nav item? Button? Callout?</li><li><strong>Where is it? </strong>The homepage? About us? Blog?</li><li><strong>Description? </strong>If there&#8217;s more than one types of these I&#8217;ll also give it a description.</li></ul><p>I.E. An image on the about page of your cat may be called aboutCat, or a button of your cat on your blog may be called buttonCat or buttonBlogCat, depending on how complex your site gets. This helps later on, believe me.</p><p>A lot of these are easy bad habits to develop, or habits already developed by beginning developers. Work on these to become a better developer and I promise you&#8217;ll see an increase in the quality and amount of paid work.</p><p><strong>What are some of your bad habits?</strong></p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=511" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/7-habits-of-miserably-failing-web-developers/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/30 queries in 0.020 seconds using disk: basic
Object Caching 455/526 objects using disk: basic

Served from: www.amberweinberg.com @ 2012-02-07 16:36:47 -->
