<?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>Shane Prendergast</title>
	<atom:link href="http://www.shaneprendergast.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shaneprendergast.co.uk</link>
	<description>Web Designer &#38; Developer</description>
	<lastBuildDate>Fri, 17 May 2013 12:15:20 +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>Ems and borders</title>
		<link>http://www.shaneprendergast.co.uk/css/ems-and-borders/</link>
		<comments>http://www.shaneprendergast.co.uk/css/ems-and-borders/#comments</comments>
		<pubDate>Wed, 15 May 2013 18:51:07 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Learning]]></category>

		<guid isPermaLink="false">http://www.shaneprendergast.co.uk/?p=657</guid>
		<description><![CDATA[I&#8217;ve recently moved over to using ems instead of px&#8217;s now. It&#8217;s quite a lot to take in and it hasn&#8217;t been a simple transition. In fact I&#8217;m still a bit confused about something. Borders. So ems. I&#8217;m not going &#8230;]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve recently moved over to using ems instead of px&#8217;s now. It&#8217;s quite a lot to take in and it hasn&#8217;t been a simple transition. In fact I&#8217;m still a bit confused about something. Borders.</p>
<p>So ems. I&#8217;m not going to go into what ems are, if you don&#8217;t know then have a read of <a title="Ems" href="http://css-tricks.com/why-ems/" target="_blank">this fantastic article</a> by Chris Coyier. My base font size is standard (16px) and I use <a title="PX to ems" href="http://pxtoem.com/" target="_blank">this calculator</a> for px to em conversions. (All my calculations in this article are based on a 16px base font size)</p>
<p>So my media queries used to look like (separate CSS docs, mobile first approach):</p>
<pre>href="style.css" media="screen"
href="assets/css/min-30.css" media="only screen and (min-width: 480px)"
href="assets/css/min-48.css" media="only screen and (min-width: 768px)"
href="assets/css/desktop.css" media="only screen and (min-width: 1170px)"</pre>
<p>This has now been swapped for: -</p>
<pre>href="style.css" media="screen"
href="assets/css/min-30.css" media="only screen and (min-width: 30em)"
href="assets/css/min-48.css" media="only screen and (min-width: 48em)"
href="assets/css/desktop.css" media="only screen and (min-width: 73.125em)"</pre>
<p>Pretty straightforward conversions but as I delve a little deeper into my CSS it does get more complicated. What about borders, box-shadows and border radius etc.</p>
<p>Say if I wanted all the content on my site to be at 75% rather than 100% I simply change my body font size to 0.75em (75%) and all the units are modified accordingly because of this one change. For larger divs and containers this isn&#8217;t a problem. But what about a 0.063em (1px) border? By reducing the base font size we have actually made this border smaller than a pixel after its recalculation.</p>
<p>I&#8217;ve done some testing on <a title="Trent Walton" href="http://trentwalton.com/" target="_blank">Trent Walton&#8217;s</a> website who has used ems for his borders. If I take his default font size to 75% on Firefox it still displays fine (below left). But on webknit no border appears at all (below right)!</p>
<p><img class="aligncenter size-full wp-image-673" alt="trent-walton" src="http://www.shaneprendergast.co.uk/wp-content/uploads/2013/05/trent-walton.jpg" width="1241" height="390" /></a></p>
<p>Obviously this is quite an extreme example, and if you&#8217;re not going to decrease your default font size (as Trent probably isn&#8217;t) then there aren&#8217;t going to be any problems. But is this a case of overdoing it on relative units?</p>
<p>I&#8217;m not entirely sure of the solution here but I think I&#8217;m going to stick with using pxs for smaller things such as borders purely because I know it works. It&#8217;s certainly the safe choice. I guess the only way to find out the best way is to try and test different methods.</p>
<h2>Oh and other thing</h2>
<p>On my <a title="base" href="http://base.webknit.co.uk/" target="_blank">Base template</a> I use % widths when the media queries kick in. If I&#8217;m using % widths with px borders I&#8217;m never going to get exact sizes. This is where changing the <a title="Box model" href="http://css-tricks.com/box-sizing/" target="_blank">box model </a>comes in handy (width + padding + border = actual visible/rendered width of box).</p>
<p>Any comments don&#8217;t hasitate to comment below or hit me up on twitter <a title="Twitter webknit" href="https://twitter.com/WebKnit" target="_blank">@webknit</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/css/ems-and-borders/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Function</title>
		<link>http://www.shaneprendergast.co.uk/html/function/</link>
		<comments>http://www.shaneprendergast.co.uk/html/function/#comments</comments>
		<pubDate>Tue, 14 May 2013 20:50:10 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JS/jQuery]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.shaneprendergast.co.uk/?p=652</guid>
		<description><![CDATA[I&#8217;m half decent at HTML/CSS these days. It&#8217;s taken me a year of practice but I&#8217;m confident enough with my front-end skills now to focus on something else. I have recently started a new job at McCann and I&#8217;m now &#8230;]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m half decent at HTML/CSS these days. It&#8217;s taken me a year of practice but I&#8217;m confident enough with my front-end skills now to focus on something else.</p>
<p>I have recently started a new job at <a title="McCann Manchester" href="http://www.mccannmanchester.com/" target="_blank">McCann</a> and I&#8217;m now employed as Junior developer. At my last job I was just a &#8220;front-end dev&#8221;, and I rarely touched anything other than HTML/CSS. So in other words I&#8217;m moving over to be a &#8220;back-end&#8221; boy too. I know bits and bobs of JS, PHP, AJAX etc but not enough as I should do.</p>
<p>I&#8217;ve started reading <a title="JS and jQuery the missing manual" href="http://www.amazon.co.uk/dp/1449399029/?tag=hydra0b-21&amp;hvadid=9557943789&amp;ref=asc_df_1449399029" target="_blank">a book on JS and jQuery</a> (which I would highly recommend) and I&#8217;ve learnt some cool stuff already. I find it&#8217;s easy to read books but I don&#8217;t learn anything until I&#8217;ve built/coded something (hence the reason I have too many sites). You get tasks to do in the book but there&#8217;s not much point following the tasks as you&#8217;re not using much initiative or putting stuff into practice.</p>
<p>So I&#8217;ve made a new site. It&#8217;s called <a title="Function" href="http://function.webknit.co.uk/" target="_blank">Function</a> and it&#8217;s going to feature a collection of programming projects that will be built by yours truly. I&#8217;m starting on JS/jQuery and when I&#8217;m decent at that I will be moving onto some other languages.<br />
The initial projects are pretty simple. We have <a title="Rock, Paper and Scissors" href="http://function.webknit.co.uk/projects/Rock-Paper-Scissors/index.html" target="_blank">Rock, Paper and Scissors</a> and <a title="Lotto" href="http://function.webknit.co.uk/projects/lotto/index.html" target="_blank">Lotto</a>, an app which picks random lottery numbers.</p>
<p>All the code will be added to my <a title="Github" href="https://github.com/webknit/" target="_blank">Githib</a> so that anyone can make use of it. There has also been talk of some &#8220;guest&#8221; features, where some other devs feature their work on the site. So if anyone&#8217;s interested shoot me a mail/tweet/pigeon.</p>
<p>You can view the list site here &#8211; <a title="Function" href="http://function.webknit.co.uk/" target="_blank">www.function.webknit.co.uk</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/html/function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling when JS is disabled</title>
		<link>http://www.shaneprendergast.co.uk/css/styling-when-js-is-disabled/</link>
		<comments>http://www.shaneprendergast.co.uk/css/styling-when-js-is-disabled/#comments</comments>
		<pubDate>Sun, 12 May 2013 13:18:08 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.shaneprendergast.co.uk/?p=640</guid>
		<description><![CDATA[I&#8217;ve learnt something this week that I&#8217;m going to briefly write about. It&#8217;s basically about how I would style something that has to function both with and without JS functionality. A shout out to Colin from McCann who helped me &#8230;]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve learnt something this week that I&#8217;m going to briefly write about. It&#8217;s basically about how I would style something that has to function both with and without JS functionality. A shout out to <a title="Colin Rotherham" href="http://colinr.com/" target="_blank">Colin</a> from McCann who helped me with this.</p>
<p>I used to add a class to something like this&#8230;</p>
<pre>html class="no-js"
body class="no-js"</pre>
<p>Then I would simply remove the class when it reads the Javascript/jQuery</p>
<pre>$('html').removeClass('no-js');

$('body').removeClass('no-js');</pre>
<p>There are a couple of reasons as to why I am now against this approach.</p>
<ul>
<li>Javascript should be loaded in the footer of a page, so all the CSS is read first (including the no-js styles) and then the class removed once the browser reads the JS. The could cause the page to &#8216;flicker&#8217; between the two sets of styles. Something we really need to avoid.</li>
<li>After learning to code <a title="Mobile First" href="http://www.shaneprendergast.co.uk/css/mobile-first/" target="_blank">mobile first</a>. It is only right that I should embrace a progressive enhancement approach for JS too. In other words my no-js styles come as standard and my &#8216;advanced&#8217; JS styles come after. (Only the advanced styles are declared, no-js won&#8217;t exist)</li>
<li>We should use JS as opposed to jQuery as we would have to load the library in first.</li>
<li>We should apply the advanced class to the HTML tag as it is the first element that is rendered.</li>
</ul>
<p>So now my HTML tag doesn&#8217;t include a no-js, or advanced class. It is simply.</p>
<pre>html lang="en"</pre>
<p>The I use the following code snippet to add an &#8216;advanced&#8217; class onto my html element if JS is enabled.</p>
<pre>document.documentElement.className = 'advanced';</pre>
<p>And style something like this.</p>
<pre>.movingElement {display: block;}

/* The following is hidden initially then uses JS to add move functionality */
.advanced .movingElement {display: none;}</pre>
<p>The are loads of other ways this can be done including using <a title="Modernizer" href="http://modernizr.com/" target="_blank">modernizr,</a> but this is the approach I am now using. It has been added to my <a title="Base" href="http://base.webknit.co.uk/" target="_blank">Base</a> template if you want to check a working example out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/css/styling-when-js-is-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sprites</title>
		<link>http://www.shaneprendergast.co.uk/css/sprites/</link>
		<comments>http://www.shaneprendergast.co.uk/css/sprites/#comments</comments>
		<pubDate>Wed, 01 May 2013 20:30:57 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.shaneprendergast.co.uk/?p=632</guid>
		<description><![CDATA[This week I have been working with CSS sprites and I must admit I don&#8217;t posses much knowledge on the best practices or even how they should be used. For those of you who don&#8217;t know what I&#8217;m talking about &#8230;]]></description>
				<content:encoded><![CDATA[<p>This week I have been working with CSS sprites and I must admit I don&#8217;t posses much knowledge on the best practices or even how they should be used.</p>
<p>For those of you who don&#8217;t know what I&#8217;m talking about &#8211; a sprite is basically multiple graphics compiled into one image. So a common use is where a button has an &#8220;on&#8221; and &#8220;off&#8221; effect. Both these effects can be within in the same image (sprite) and the background position can change on hover. Sprites can contain multiple images, so you could include buttons, graphics and just about anything you want, just simply move the background position to show each one.</p>
<p>Every time anything (including images) is loaded in the browser it triggers a HTTP request to collect it. The more requests a web page makes the slower it will be. Because these requests need to be kept to a minimum it makes sense to load one large sprite sheet full of images as opposed to loading multiple individual files.</p>
<p>I have found some very useful tools which assist with spriting (A term I made up):-</p>
<ul>
<li><a title="Sprite cow" href="http://www.spritecow.com/" target="_blank">Sprite cow</a> is awesome. You basically upload an image and select it in the browser and it tells you the exact size and location of the image on the sprite sheet.</li>
<li><a title="Sprite pad" href="http://wearekiss.com/spritepad" target="_blank">Sprite Pad</a>, this is cool. You drop the images into the site and then download the sprite image and also a CSS document with all the CSS on it.</li>
</ul>
<p>There are probably a load of other tools which I don&#8217;t know about. Another thing that was mentioned to me was <a title="Compass" href="http://compass-style.org/help/tutorials/spriting/" target="_blank">Compass</a> which has some nice sprite features built in. I need to give that a try.</p>
<h2>The bigger picture</h2>
<p>I have a tendency to look at the bigger picture with things these days and this subject was no different. How big can you go? How many sprite sheets should you have? What do you put on each? How are they organised?</p>
<p>On smaller websites it doesn&#8217;t really matter. You can just add all the images to one sprite and code it up. But what about larger sites with lots of images. Well firstly I think the sprite sheets need to be organised properly, so buttons, icons, round corners could be one. Images and photos another, banners another. It obviously depends on your project but if something needs to be modified or located it&#8217;s essential you know where to find it.</p>
<p>The biggest question is how big should you go. A reliable source at work advised me that some mobile devices won&#8217;t load sprites bigger than a certain size. Not only this but remember the browser has to download the whole spite before it displays any of them. This is something that needs to be taken into consideration. Especially bearing in mind the new &#8220;retina ready&#8221; (2x) images.</p>
<p>Although it was hard to find some bulletproof information I did find out the following:-</p>
<ul>
<li>The limit on the older iTouches, Original iPhone and iPhone3G is a max image size of 1024&#215;1024</li>
<li>Later iPhone 3GS, iPhone 4, third-generation iPod touch, and the iPad support a max image size of 2048&#215;2048</li>
<li>iPad2/3 and iPhone 4s supports 4096&#215;4096 as far as I know.</li>
</ul>
<p>You can read the full specs for apple products <a title="Apple prodcut sizes" href="http://docs.unity3d.com/Documentation/Manual/iphone-Hardware.html" target="_blank">here</a>. I&#8217;m not going to bother looking for android spec as they will no doubt be similar. I&#8217;m not too fussed about the early phone models these days. I won&#8217;t cater for them unless I need to at work. But I won&#8217;t be going over that 2048px X 2048px figure for all future sprite projects. Nice fact to know.</p>
<h2>How you make them</h2>
<p>How would you make the sprites? Would you do them right from the start or drop them all into one document after you have finished coding and use one of the tools I mentioned? You could do either, and I suppose it&#8217;s a matter of preference.</p>
<p>I personally would make the sprites as I code up a new design and insert the background-positions as I go along. I would have the PNG sprite file open from my img folder and keep re-saving it and adding the CSS.</p>
<h2>Drawbacks</h2>
<p>Are there any disadvantages to using sprites?</p>
<p>The biggest pain is updating the graphics. Imagine a small arrow icon on a sprite sheet. You have to locate it first and then cut it out, swap it for the new image and reposition the image with the CSS. You need to make sure you don&#8217;t cut any of the other sprites out, I have messed up a few times cutting shadows or transparent layers which are difficult to see on a PNG file. I would highly recommended always saving your sprite file as a PSD with all the layers (native files). It&#8217;s much easier to manage and swap images.</p>
<h2>Conclusion</h2>
<p>For the majority of sites with a small amount of traffic it probably doesn&#8217;t matter. Or at least you think it doesn&#8217;t matter.</p>
<p>I think it&#8217;s important to do things correctly regardless of whether they matter or not. Take my sites for example. I&#8217;m getting around a 1000 hits a day now on my four websites and because they were badly coded in the first place the loading was slow, and I&#8217;m wasting unnecessary data and peoples time (something I&#8217;m working on fixing).</p>
<p>So yeah speed and performance of websites is a big thing these days, reduce your HTTP requests where possible and supply the correct size images, you will be a better web dev for doing it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/css/sprites/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Base-LESS</title>
		<link>http://www.shaneprendergast.co.uk/css/base-less/</link>
		<comments>http://www.shaneprendergast.co.uk/css/base-less/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 19:21:31 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WebKnit]]></category>

		<guid isPermaLink="false">http://www.shaneprendergast.co.uk/?p=613</guid>
		<description><![CDATA[After some careful debate I have decided to drop LESS from Base, my front-end template. The main reasons are:- I never use it. Most people who do use Base either use SASS or standard CSS. Now that I am familiar &#8230;]]></description>
				<content:encoded><![CDATA[<p>After some careful debate I have decided to drop LESS from <a title="Base" href="http://base.webknit.co.uk/" target="_blank">Base</a>, my front-end template. The main reasons are:-</p>
<ul>
<li>I never use it.</li>
<li>Most people who do use Base either use SASS or standard CSS.</li>
<li>Now that I am familiar both I want to focus my attention on one CSS extension.</li>
<li>SASS is better in my opinion.</li>
</ul>
<p>So firstly I want to say sorry to anyone that has been using my template with LESS. The standard CSS will always be present so no need to worry about that. But the LESS, well, it&#8217;s gone. <img src='http://www.shaneprendergast.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>It want to start thinking about my code in a modular way from the very beginning to ensure larger projects are much cleaner and well structured and smaller/simpler projects can easily be stripped down. To help me achieve this I have added several SASS @import modules. I don&#8217;t want to go over-board with this and my main aim (as always) is to create a nice base that can be expanded, but at the same time is adequate to start with.</p>
<p>All my CSS is still based around the _style.scss file. Here&#8217;s a little bit of code to show you how these imports work. The modules are simply imported into my _style.scss file. If any of these modules aren&#8217;t needed then they can simply be deleted. If more are require then stick some more in. It&#8217;s pretty easy to see the benefits.</p>
<pre>/*********************************************
- 3.0 -  SASS
*********************************************/

/* - 3.1. - Colours, Backgrounds, Gradients
------------------------------------------ */

@import "imports/colours-gradients";

/* - 3.2. - Mixins
------------------------------------------ */

@import "imports/mixins";</pre>
<h2>Modules</h2>
<p>So what modules have I included? Have a read below.</p>
<p><strong>Base-elements</strong> &#8211; Headers, lists, blockquotes, paragraphs, img<br />
<strong>Colours-gradients</strong> &#8211; List of site colours, gradients<br />
<strong>Font-face</strong> &#8211; Includes @font face code<br />
<strong>Forms</strong> &#8211; Form styles<br />
<strong>Links</strong> &#8211; Hyperlinks, buttons, header links<br />
<strong>Mixins</strong> &#8211; Includes all SASS mixins</p>
<p>I use <a title="Codekit" href="http://incident57.com/codekit/" target="_blank">Codekit</a> to compile my SASS code, each time I save one of these import files it automatically sticks the code into the _style.scss file.</p>
<p>My initial thoughs and maybe yours are that this approach is overkill. Too many folders and file names, surely it&#8217;s easier to just have it in one file? For smaller projects I would agree yes, but imagine a huge project with 10k lines of code, creating separate modules will make things much neater and convenient.</p>
<p>Another benefit would be the fact that styles can be reused very easily across a range of stylesheets for a project or even on other projects.</p>
<h3>Thoughts</h3>
<p>I don&#8217;t expect this transition to be problem free. No doubt I will run into issues along the way but trial and error is most defiantly the best way to learn. One issue that springs to mind is the use of nesting in these modules. It will need to be kept to an absolute minimal to ensure the styles can be reused anywhere.</p>
<p>Base has had a complete new re-design. Much simpler and easy to manage, it also looks decent! You can view base online <a title="Base" href="http://base.webknit.co.uk/" target="_blank">here</a> and on Github <a title="Github" href="https://github.com/webknit/Base" target="_blank">here</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/css/base-less/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another redesign</title>
		<link>http://www.shaneprendergast.co.uk/me/another-redesign/</link>
		<comments>http://www.shaneprendergast.co.uk/me/another-redesign/#comments</comments>
		<pubDate>Mon, 15 Apr 2013 07:44:06 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://localhost/shaneprendergast-wordpress/?p=602</guid>
		<description><![CDATA[Well here it is. Yet another personal blog re-design. This must be about my 12th one since I started university three years ago (No exaggeration). Change is a good thing though, and I must admit this latest portfolio is light &#8230;]]></description>
				<content:encoded><![CDATA[<p>Well here it is. Yet another personal blog re-design. This must be about my 12th one since I started university three years ago (No exaggeration). Change is a good thing though, and I must admit this latest portfolio is light years ahead of almost all of them in terms of both design and code.</p>
<p>This new site should be fully responsive and is built with the amazing <a title="WordPress" href="http://wordpress.org/" target="_blank">WordPress CMS</a>. As always, I have gone for a very minimal look with maximum use of white-space. My fonts are being served by typekit and they are <a title="minion pro" href="https://typekit.com/fonts/minion-pro" target="_blank">Minion Pro,</a> <a title="Museo Sans" href="https://typekit.com/fonts/museo-sans" target="_blank">Museo Sans</a> and <a title="coquette" href="https://typekit.com/fonts/coquette" target="_blank">Coquette</a>. I have made this site with HTML5 and CSS3 (<a title="SASS" href="http://sass-lang.com/" target="_blank">SASS</a>).</p>
<p>I couldn&#8217;t be bothered to wait until I had made sure this site worked across all browsers so if you find a bug let me know. It&#8217;s a work in progress.</p>
<p>I really want to start reading, writing and ultimately learning more, hence the reason I have made this new blog.</p>
<p>Here&#8217;s a few things I have on my to-do list.</p>
<ul>
<li>Get to grips with JS and build some kind of app</li>
<li>Get all of my code onto <a title="Github" href="https://github.com/webknit/" target="_blank">Github</a></li>
<li>Re-design of <a title="Base" href="http://base.webknit.co.uk/" target="_blank">Base</a></li>
<li>Go to the <a title=".net awards" href="http://www.thenetawards.com/" target="_blank">.net awards</a> ceremony after my nomination for <a title="WebKnit" href="http://webknit.co.uk/" target="_blank">best online portfolio</a>.</li>
</ul>
<p>Cheers for reading and I promise to update this again soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/me/another-redesign/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Inis Meain</title>
		<link>http://www.shaneprendergast.co.uk/me/inis-meain/</link>
		<comments>http://www.shaneprendergast.co.uk/me/inis-meain/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 18:46:36 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://shaneprendergast.co.uk/?p=516</guid>
		<description><![CDATA[Last weekend I went away to visit the very remote Aran Island, Inis Meain. Myself and my lifelong friend Robert (armed with a camera) set off on the long journey from Liverpool to Cork on the plane, picked up a &#8230;]]></description>
				<content:encoded><![CDATA[<p>Last weekend I went away to visit the very remote <a title="Aran Island" href="http://en.wikipedia.org/wiki/Aran_Islands" target="_blank">Aran Island</a>, <a title="Inis Meain" href="http://en.wikipedia.org/wiki/Inishmaan" target="_blank">Inis Meain</a>. Myself and my lifelong friend Robert (armed with a camera) set off on the long journey from Liverpool to Cork on the plane, picked up a brand spanking golf and booted it up the motorway to Galway (130mile) where we ended out on the ale until 3am celebrating a <a title="Warrington-Huddersfield" href="http://www.bbc.co.uk/sport/0/rugby-league/21846846" target="_blank">emphatic Warrington win</a> Irish style.</p>
<p><img class="aligncenter size-full wp-image-523" alt="car" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/car.jpg" width="1000" height="1000" /></a>The Island is only accessible by boat or plane. Naturally we went for the most exciting and expensive option with the plane. The plane was an 8 seater and it was terrifying. It was the smallest plane I had ever been on and the wind was atrocious. We landed on the island and there is certainly no public transport or taxis there! We walked up to the <a href="http://www.ostaninismeain.com/" target="_blank">hotel</a> to be greeted by the lovely hotel owners, found out some information and then set off to take a look around.</p>
<p><img alt="photo" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/photo.jpg" width="1000" height="1000" /></a></p>
<p>Our preferred method of transport on the island was a push rod. Complete with suspension, mud guards and a bell. It was an absolute pleasure to ride.</p>
<p><img class="aligncenter size-full wp-image-524" alt="bike" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/bike.jpg" width="1000" height="1000" /></a></p>
<p>We set out on our tour of the island and took some fantastic photos. The island is incredibly remote (150 people) and the terrain is very bumpy and consists mainly of limestone. Houses are scattered about the island, some still have thatched roofs whereas others are more modern. The island has one hotel, one shop and a pub. They live incredibly basically and it was fascinating to see their world in comparison to mine. The focus of their lives is on verbal communication, most of which is done in Gaelic. They don’t really have any money so materialistic goods are very rare. Some families had chickens, cows or pigs and they would also grow their own vegetables.</p>
<p><img alt="photo1" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/photo11.jpg" width="1000" height="1000" /></a></p>
<p>After delving a bit deeper into the islanders I found that many of the residents were in fact on the dole (much to the uproar of the mainland people). It’s a tricky situation, they are Ireland citizens and need to be accounted for but there is absolutely now way they are able to obtain employment. There is nothing on the island besides a clothing factory, airstrip, boat docks, the pub and a small shop.</p>
<p>The boat to the mainline costs around $20 return, drops at a remote Galway location and takes over an hour. No job is really viable unless it paid decent money. The islanders are just happy to get by taking the money and living peacefully and simply on the island. Some have been innovative and taken advantage of the little tourism they experience by hiring bikes which was nice to see.</p>
<p>Anyway we finished the photographs for the day around 2-30pm, absolutely freezing and headed back to the hotel where we were greeted by a roaring fire. We got straight on the ale, and made friends with some other American visitors and had a great chat with the hotel owners and some other locals. 5 pints and a little nap later we headed straight up to the local boozer and plonked ourselves in the cosy little bar which had around a dozen islanders inside. The inhabitants seemed to be very reserved and cautious towards us initially but we soon won them around. Amazingly at 11pm 60 young Irish students came from nowhere and entered the pub (they were on the island for 2 weeks learning Gaelic) we had a fantastic night and eventually walked home in the pitch black around 3am.</p>
<p><img class="aligncenter size-full wp-image-525" alt="pub" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/pub.jpg" width="1000" height="1000" /></a></p>
<p>The next day we went to see the rest of the island and stumbled across some famous landmark where <a href="http://en.wikipedia.org/wiki/John_Millington_Synge" target="_blank">John Millington Synge</a>, a famous Irish playwright used to sit and write his scripts. We said our goodbyes and made our way back to Galway, then Cork and finally Liverpool again.</p>
<p><img class="aligncenter size-full wp-image-526" alt="pho" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/pho.jpg" width="1000" height="1000" /></a></p>
<p>Back in Liverpool we headed to a £25, dive of a holiday-inn near Runcorn, logged onto our internet and the next day we went to see old Trafford, had Frankie and Bennys for dinner and then Rob got the train home (notice anything dissimilar?).</p>
<p>I appreciate the way the Islanders live their lives and admire the way in which verbal communication is fundamental to their lives, something that has changed beyond recognition in the UK since I was a small boy. However I am more than happy to be back on my Macbook pro, watching sky and writing this blog post on the Internet. It was a great three days but I’m too accustomed to my life in the UK to think any other existence would be better.</p>
<p>&nbsp;</p>
<p>Thanks for reading. Take a look at some more of my Instgram shots below!</p>
<p><img alt="photo1" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/photo1.jpg" width="1000" height="1000" /></a></p>
<p><img class="aligncenter size-full wp-image-529" alt="photo2" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/photo21.jpg" width="1000" height="1000" /></a> <img class="aligncenter size-full wp-image-530" alt="photo3" src="http://shaneprendergast.co.uk/wp-content/uploads/2013/03/photo3.jpg" width="1000" height="1000" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/me/inis-meain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First year employed</title>
		<link>http://www.shaneprendergast.co.uk/me/first-year-employed/</link>
		<comments>http://www.shaneprendergast.co.uk/me/first-year-employed/#comments</comments>
		<pubDate>Wed, 13 Mar 2013 23:05:03 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://shaneprendergast.co.uk/?p=504</guid>
		<description><![CDATA[&#160; It’s been a year since I managed to obtain my first graduate job. I was writing down what has happened to me nad my skills since then and I&#8217;ve whipped it into a messy blog post. I’m half decent &#8230;]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>It’s been a year since I managed to obtain my first graduate job. I was writing down what has happened to me nad my skills since then and I&#8217;ve whipped it into a messy blog post. I’m half decent now but by no means an expert. Hopefully any web designer can relate to some of the stuff I mention here.</p>
<p>This time last year I was pretty shit if I’m honest. I wasn’t the smartest person in the class and I probably didn’t have the best skills. But what I did have was a passion and dedication for web design. I lost count of the amount of sites I made and I was always trying something new and reading books.</p>
<p>Oh and I was employed about 12 weeks before I graduated from university (2 day week) if you&#8217;re wondering.</p>
<h3>How I learnt</h3>
<p>My favored way of learning web design was to pick a website I liked from an inspiration website and try to replicate it. The results were often shocking and barely resembled the original, however I used to enjoy comparing them and evaluating why mine looks crap. Looking back now I can say it was generally a mixture of poor typography, layout and content in addition to a general lack of detail.</p>
<p>When I left university my coding skills were very, very basic. I knew how to make stuff but half of the code I wrote was very unpractical and just really messy. I remember I used to duplicate CSS styles over and over rather than just giving them all the same class.</p>
<p>In addition to my lack of skills, other major issues during the transition from university to a real workplace included:-</p>
<ul>
<li>Some things I hadn’t really experienced before such as SVN,  Terminal commands, local site setups, hosts, IP addresses.</li>
<li>Timekeeping was very difficult. It was tough to say how long something WOULD or even SHOULD take you.</li>
<li>Becoming part of the team was tough. Knowing how account managers operate. Knowing how designers make their sites. And knowing how to pass work onto other developers.</li>
</ul>
<p>&nbsp;</p>
<h3>Importance of the workplace</h3>
<p>In reality there are loads new of skills that can only really be absorbed through work experience. Just looking at some of the senior members of staff and seeing how they operate, code and communicate is a massive learning experience in itself.</p>
<p>I would say that I have learnt about 50-60% more in the workplace than I did at university. It’s ok knowing the basics at university but putting them into practice is an entirely different thing altogether. I used to become incredibly nervous during some early projects to the point where I couldn’t sleep. Am I doing this right? How should I code this? When you barely know anyone in the workplace asking a question is a nightmare. I would ask the most ridiculous questions sometimes. But it’s all part of the learning experience. Everyone that you ask would have been in the same position at some point so never worry about asking questions as long as you are actually taking the information in.</p>
<p>&nbsp;</p>
<p>One of the biggest things I have learnt to do is relax and think about things before getting worked up or making a decision. The amount of times I was given a task or bug and all I could think was “SHIT How am I going to do this”. Once I start panicking I am never going to make rational decisions. I’ve now learnt to take a step back and analyse the situation. And while you’re in the situation there is always someone you can rely on. Google. He’s become my best friend!</p>
<h3>When things go right</h3>
<p>As you get better you start to feel really good. There is no better feeling than creating your first site from scratch and seeing it go through to live. It’s ace. As my skills improved so too did my status in my workplace and my relationship with my workmates. About three months in I started to feel relatively comfortable each time I was allocated a task.</p>
<p>Once I starting working my passion for web design seemed to escalate quickly.  I became obsessed with reading books and knowing everything I could. I was making at least a website a week. I was coding/reading/designing day and night and I’m lucky because I love it.</p>
<h3>Obtaining employment</h3>
<p>The best thing I ever did was to focus on my online presence. In my latest job my new boss told me that he didn’t even look at my CV, and why should he? He doesn’t care what grade I got or what modules I sat. He wants to inspect my code browse my websites and resize his browser. I made a few websites and they were innovative, half decent and looked ok. I’m still amazed that some graduates don’t even have their own websites when they apply for jobs. That to me is just unbelievable.</p>
<p>I’ve come a long way since I left university but I’ve still got so much more to learn. The good thing about the web community is that most people are eager to help you and give advice. The amount of tutorials, inspiration and blog posts I see everyday is unreal.  I have lost count of the amount of times I wanted to re-design all my websites because I have learnt something new.</p>
<h3>My aim</h3>
<p>My personal aim is to be a very competent front-end developer in three years time. I want my work to be seen as first-class and to be trusted with any project. I feel it’s very important to keep on learning and reading as technologies constantly evolve and things change very quickly. Luckily I’m now at a fantastic workplace and surrounded by some very talented folk who are always happy to help me.</p>
<p>I’m hoping my passion for Web Design is going to stick around for a while yet because I’m really enjoying web design and everything it entails.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/me/first-year-employed/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>.Net Nominee</title>
		<link>http://www.shaneprendergast.co.uk/me/495/</link>
		<comments>http://www.shaneprendergast.co.uk/me/495/#comments</comments>
		<pubDate>Wed, 06 Mar 2013 19:59:45 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Award]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WebKnit]]></category>

		<guid isPermaLink="false">http://shaneprendergast.co.uk/?p=495</guid>
		<description><![CDATA[I am incredibly proud to announce the fact that I am a nominee for the .Net awards 2013 in the category of “Best online portfolio”. You can read a little interview thing here. (Bit gutted I kept my answers so &#8230;]]></description>
				<content:encoded><![CDATA[<p>I am incredibly proud to announce the fact that I am a nominee for the .Net awards 2013 in the category of “Best online portfolio”. You can read a little interview thing <a title=".net awards" href="http://www.netmagazine.com/features/net-awards-2013-best-online-portfolio" target="_blank">here</a>. (Bit gutted I kept my answers so brief).</p>
<p>For anyone who doesn’t know .net is the world’s best-selling magazine for web designers and developers and it is basically awesome to be associated with it.</p>
<p>You can check the site out <a title=".net awards" href="http://www.thenetawards.com/" target="_blank">here</a>. Don’t forget to vote for me.</p>
<p>My website is <a title="WebKnit" href="http://www.webknit.co.uk/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/me/495/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile first</title>
		<link>http://www.shaneprendergast.co.uk/css/mobile-first/</link>
		<comments>http://www.shaneprendergast.co.uk/css/mobile-first/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 21:47:21 +0000</pubDate>
		<dc:creator>shaneprendergast</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Learning]]></category>

		<guid isPermaLink="false">http://shaneprendergast.co.uk/?p=483</guid>
		<description><![CDATA[I can’t believe it has finally clicked. People have been telling me “mobile first” is the way to go with RWD (Responsive web design). I must admit I completely ignored them but now I think I understand it. I’m going &#8230;]]></description>
				<content:encoded><![CDATA[<p>I can’t believe it has finally clicked. People have been telling me “mobile first” is the way to go with RWD (Responsive web design). I must admit I completely ignored them but now I think I understand it. I’m going to try to explain it here.</p>
<p>&nbsp;</p>
<p>Firstly it’s important to say that although I am normally right, I may not be right here. It&#8217;s a matter of personal preference. Everyone has different ways of doing things. I will, however, try and give a fair summary of Mobile first with both pros and cons for you to make your own decision.</p>
<p>&nbsp;</p>
<p>Traditionally every web designer has approached the desktop side of any project first, of course they have, desktop is prehistoric whereas mobile is new born baby in comparison. Once mobile came onto the scene it was thought logical/practical to make desktop first and then work DOWN to mobile.</p>
<p>&nbsp;</p>
<p>Over the past few years this Mobile First approach has taken the industry by storm and although I have heard everyone ranting on about it I couldn’t for the life of me understand what on earth they were talking about. Where is the logic of making the mobile version first? Even just thinking of it now, I think I may have gone insane just taking about this approach, but the main reason for this post is so that I can read it when I get confused and reassure myself I’ve made a logical choice.</p>
<p>&nbsp;</p>
<p>Firstly the mobile market is HUGE. I think everyone knows that. I’m not going to go into the facts and figures of this, just stand where lots of people are and look around. You will see mobiles, <em>lots of them</em>.</p>
<p>&nbsp;</p>
<h2>Graceful Degradation vs. Progressive Enhancement</h2>
<p>Yes this old chestnut.</p>
<p><strong>Graceful degradation</strong> means to create and serve the best experience possible and and then account for each possible degradation and ensure that site remains functional throughout. As regards mobile web design this means that the full website would include everything and then content would be removed etc as the viewport gets smaller and the system simpler (For example a flash video could be removed on mobile and replaced with an image).</p>
<p><strong>Progressive enhancement</strong> is a little different. This means you put your best stuff forward on mobile to the best of its ability and then as the viewport gets wider the site is <em>enhanced</em> for larger platforms with fewer constraints.</p>
<p>I can write what those two mean off by heart after having to learn them at university but I still don’t really understand the difference (Who cares as long as the client is happy with everything?).</p>
<p><strong>Graceful degradation</strong> means that I will make my desktop version amazing, making use of all that screen size and technology and then cut bits out and change things to get it looking right on mobile. The mobile version will just be “something you did after the main bit”. It may sometimes look great but chances are that it will just feel more like an afterthought rather than a polished site.</p>
<p>With <strong>progressive enhancement</strong> I get my mobile version looking spanking and then I continue to improve my website on desktop. I’m not hiding anything and I’m not watering anything down, I’m just deciding how to enhance it and make it more robust.</p>
<p>There is a little bit more to it though. If we design for desktop first then we are making images, text and videos for the desktop version. What usually happens is things are hidden from the mobile view. There are two problems with this. Firstly why on earth are you hiding something that you want people to see? And secondly the content will get downloaded whether it&#8217;s hidden or not resulting in longer loading times for something the user won&#8217;t even see.</p>
<p>Design for mobile first, get it looking smart and loading fast and then load any other stuff you require after. Simple.</p>
<p>&nbsp;</p>
<p>First of all your stylesheets should be separate. Imagine the example below being one massive stylesheet and you are loading on a 768px screen . Its going to load the whole page when you only really want half.</p>
<pre>@media only screen and (min-width: 320px) {

LOADS OF CSS

}

@media only screen and (min-width: 768px) {

LOADS OF CSS

}</pre>
<p>&nbsp;</p>
<p>Do I have to say why this is crap? Get them split up and defined in your &lt;head&gt; like below.</p>
<p>&nbsp;</p>
<pre>&lt;link rel="stylesheet" href="320.css" media="only screen and (min-width: 320px)"&gt;

&lt;link rel="stylesheet" href=" 768.css" media="only screen and (min-width: 768px)"&gt;</pre>
<p>&nbsp;</p>
<p>Going mobile first isn’t easy. It’s difficult and takes time to learn, but so did learning to code and that was worth it yeah? I’m fairly confident that the benefits of coding mobile first outweigh the challenges.</p>
<p>Most responsive websites I see have max-width media queries setting elements to display:block, float:none, max-width:100%, etc&#8230; as the viewport gets narrower.</p>
<p>For most elements developers are applying the above styles to; divs, headers, footers and sections. These are the default styles for these elements. So by starting mobile first, you never have to write these styles. You only have to apply styles to the elements that need to change from their default style as the viewport gets wider. With this approach, your code will be smaller overall and therefore, faster.</p>
<p>The important thing to remember is that you base CSS styles are for <strong>MOBILE</strong>. That is the one thing I couldn’t get my head around. Your mobile styles go in the base.css files as do all your default styles. You then add extra styles as the viewport gets <strong>BIGGER</strong>.</p>
<h3>Cons</h3>
<p>The biggest problem that is apparent to me is how to design for mobile first. That seems much more difficult than coding mobile first! But I don’t know too much about that as I’ve not tried and I tend to design on screen!</p>
<p>After writing all that I am honestly struggling to think of reasons why I shouldn’t do it this way? Yeah, it’s hard, it wasn’t fun changing my process but now that I understand I’m better off. RWD gives me more options not less. I should be embracing my mobile users not just thinking of what they will see after I’ve done my desktop.</p>
<p>It is, however, very frustrating starting with a smaller screen and fewer resources and is probably the main reason why some people won’t get involved.</p>
<p>I think the reasons for mobile first speak for themselves. The cons seem to be more personal. But what have you got to lose by trying it (besides from the fact its standard procedure for most decent RWDers). If you’re a bit worried about learning new skills and trying new methods then you probably aren’t a good web designer anyway.</p>
<p>I’ve updated my <a title="Base" href="http://base.webknit.co.uk/" target="_blank">Base template</a> and made it mobile first. Get it downloaded and have a look. Once it clicks you will never look back.</p>
<p>Honest.</p>
<p>Thanks for <a title="Colin Rotherhame twitter" href="https://twitter.com/colinrotherham" target="_blank">Colin Rotherham</a> for helping me see the light and assisting me with my queries on Base.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shaneprendergast.co.uk/css/mobile-first/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
