<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Snowing Code</title>
    <description>Personal notes on software development.</description>
    <link>http://nieve.heroku.com/</link>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SnowingCode" /><feedburner:info uri="snowingcode" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>Progressive enhancement for JQuery templates with ASP.NET MVC</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/t7-J2YRTsEQ/27</link>
      <description>&lt;p&gt;
It's been some time now that I'v been looking at backbone.js, playing with the framework
and trying to discover its capacities. One of the most important resources in this learning
process is the line of posts Derick Bailey has been writing about backbone.
One of the recent topics Derick was discussing was &lt;a href="http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/"&gt;
using jquery templates for rendering backbone views&lt;/a&gt;, while 
&lt;a href="http://lostechies.com/derickbailey/2011/09/26/seo-and-accessibility-with-html5-pushstate-part-2-progressive-enhancement-with-backbone-js/"&gt;
prioritising accessibility and progressive enhancement&lt;/a&gt;.
In a nut shell, Derick was suggesting using partials for rendering jquery templates,
which will then allow us to load them as fixtures in our jasmine tests.
The o...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/t7-J2YRTsEQ" height="1" width="1"/&gt;</description>
      <pubDate>Sun, 16 Oct 2011 14:12:13 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/27</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/27</feedburner:origLink></item>
    <item>
      <title>Jasmine Testing Jquery Templates in ASP.NET MVC</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/sVSW3mLc8XA/26</link>
      <description>&lt;p&gt;
a few weeks ago Derick Bailey posted about &lt;a href="http://lostechies.com/derickbailey/2011/09/06/test-driving-backbone-views-with-jquery-templates-the-jasmine-gem-and-jasmine-jquery/"&gt;
using jasmine-jquery fixtures to test 
your view templates rendering methods&lt;/a&gt;. While his post focused on the ruby echosystem, 
using sinatra, he did mention this should be fairly straight forward to achieve in other 
web environments, such as asp.net mvc. 
Since I was and still am working on a backbone example project in asp.net mvc, 
and am using jquery templates in some of my views render methods, I wanted to give this a go.
&lt;/p&gt;
&lt;p&gt;
At first I thought I will have to specify as my fixture base path my asp.net localhost 
templates url, which made me think this might end up in a cross-origin ajax request 
made by the Jasmine jquery add on. Thankfully that was far from the truth; 
it tu...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/sVSW3mLc8XA" height="1" width="1"/&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:51:31 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/26</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/26</feedburner:origLink></item>
    <item>
      <title>Backbone and Knockout- a tale of two frameworks</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/xuvbE1s-KNE/25</link>
      <description>&lt;p&gt;
Recently there's been a lot of talk on knockout.js and backbone.js, two frameworks
that provide us with apis of "a clean, extensible foundation 
on which to build sophisticated UIs without getting lost in a tangle of 
event handlers" (as the &lt;a href="http://knockoutjs.com/"&gt;knockout.js homepage&lt;/a&gt; states).
While a lot of people are saying the two are trying to solve two different problems,
it is still rather common to hear both mentioned in the same sentence, and there's
a good reason for it I think.
Now rather than discussing the difference between the two, I'd like to jump straight into
the code and provide my point of view on the subject, but before I do I must say:
these ideas, even though I had mulling over them for some time now, I'm not too sure
to what extent am I on the spot with them and I would truly appreciate any feedback,
critique, questions etc'...
&lt;/p&gt;
...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/xuvbE1s-KNE" height="1" width="1"/&gt;</description>
      <pubDate>Sat, 17 Sep 2011 13:42:51 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/25</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/25</feedburner:origLink></item>
    <item>
      <title>Progressive .NET 2011</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/jqQmEEN0eEk/24</link>
      <description>&lt;p&gt;
A week ago I won a ticket for &lt;a href="http://skillsmatter.com/event/ajax-ria/progressive-dot-net-tutorials-2011"&gt;Skills Matter Progressive .NET Tutorials 2011&lt;/a&gt;, 
which got me extremely thrilled and all getting psyched up! So what is Progressive .NET and why am I so looking forward to it? 
Progressive .NET is a 3-days tutorials course spanning various themes of a .NET developer 
professional life split into 2 streams of parallel sessions, focusing mainly on our community, open source software and some more 
advanced notions of development.&lt;br/&gt;
Some of the tutorials on offer this year are a couple of sessions on BDD, Gherkin 
and Specflow, Package management, front end development &amp; javascript TDD, Load testing, 
Continuous delivery, RESTful WCF, C#5 Async methods and Nancy &amp; Simple.Data.
&lt;/p&gt;
&lt;p&gt;
Now, not so long ago I have started to act as a team leader at work and s...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/jqQmEEN0eEk" height="1" width="1"/&gt;</description>
      <pubDate>Mon, 15 Aug 2011 16:57:45 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/24</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/24</feedburner:origLink></item>
    <item>
      <title>Sinatra Eye for the .NET Guy</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/8jpGpVL-R58/23</link>
      <description>&lt;div&gt;
&lt;p&gt;So writing this blog using Sinatra has been a brilliant experience up until now. 
The main reason to start hacking around and porting my blog from wordpress to here 
was obviously education- but not just for education on itself. 
I think the main lesson was the knowledge I've acquired to make an educated decision 
in the future, when the opportunity will come up, to use a ruby rack-based framework 
to build a website. I can honestly say now that next time I'm being asked 
to build a web site whose major functionality would be to display information- 
static or without far too much complex presentation logic- 
Sinatra would be my first choice. 
The reason for making such a decision would be without a doubt the ruby ecosystem- 
the wonderful choice of ruby gems out there, 
the amount of documentation one can find on the web 
and the brilliant community that'll be alwa...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/8jpGpVL-R58" height="1" width="1"/&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:49:30 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/23</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/23</feedburner:origLink></item>
    <item>
      <title>Git Tutorial for Beginners</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/vT1vVaqYaho/22</link>
      <description>&lt;div&gt;
&lt;p&gt;
A few weeks ago I've been asked to come up with a rather simple git tutorial for beginners, 
something that could introduce developers to the most basic day to day functions you'd use.
So after I've finished it, I took the time to adapt the tutorials to the 'wider public', 
so that as many people could use it and so it would be ready the blog. 
Hope this will help others to get to know git.
&lt;/p&gt;
&lt;h5&gt;1. Initializing a git repository &amp; committing changes locally:&lt;/h5&gt;
&lt;div&gt;right click on your chosen directory =&gt;
Git Bash :&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;git init&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Add content to your directory and then&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;git add -A (stages all changes, ready for commit)&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;git commit -m 'initial commit' (-m for the message)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
(First commit, git would set your user name &amp; email according to your LN email/username)
&lt;br...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/vT1vVaqYaho" height="1" width="1"/&gt;</description>
      <pubDate>Sun, 13 Mar 2011 11:06:33 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/22</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/22</feedburner:origLink></item>
    <item>
      <title>Functional DI and breaking language boundaries
</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/dc8Uc5TwilM/14</link>
      <description>&lt;script type="text/javascript" src="http://s0.wp.com/wp-content/plugins/adverts/adsense.js?m=1279909293g&amp;amp;1"&gt;&lt;/script&gt;&lt;p&gt;Today I received a priceless lesson on design, testability, Ioc and the way the boundaries of the development language we know may shape our thinking.  It all started with a post by Derick Bailey on design and testability which lit a lively and truly interesting discussion. Derick was basically asking why people tend to demonise TypeMock even though it bares strong similarities to ruby mocking frameworks which are usually hailed by the same people, giving an example of how we tend to abstract dependencies in c# through interfaces, like so:&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt; public class Foo
{
private doSomething;

public Foo(IDoSomething doSomething)
{
this.doSomething = doSomething;
}

public void Bar()
{
doSomething.DoSomething();
}
}&lt;/pre&gt;
&lt;p&gt;It appe...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/dc8Uc5TwilM" height="1" width="1"/&gt;</description>
      <pubDate>Wed, 15 Sep 2010 23:24:55 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/14</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/14</feedburner:origLink></item>
    <item>
      <title>What can TDD do for your SRP?
</title>
      <link>http://feedproxy.google.com/~r/SnowingCode/~3/L6CtCfTlZYU/13</link>
      <description>&lt;script type="text/javascript" src="http://s0.wp.com/wp-content/plugins/adverts/adsense.js?m=1263012762g&amp;amp;1"&gt;&lt;/script&gt;&lt;p&gt;A while ago I had the opportunity to do an MVC pagination kata, which proved to be a real educational and inspirational experience.&lt;/p&gt;
&lt;p&gt;One of the bits I had written was a class that created the pagination part as an html string, Pager.ToString(), using a StringBuilder it went through a chain of condition and added some parts accordingly. for example I created a page number link for certain condition, or added the first, previous, next and last page links. These became methods inside my Pager class, so that my ToString() method won’t get too big. For example:&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt;private void GetPageLink(int page)
 {
 string url = _linkProvider.GetCurrentLinkWithPageQuery(page);
_builder.Append("&amp;lt;a class=\"pageLink\" href=\"" + url + "\" &amp;gt;" ...&lt;img src="http://feeds.feedburner.com/~r/SnowingCode/~4/L6CtCfTlZYU" height="1" width="1"/&gt;</description>
      <pubDate>Fri, 04 Jun 2010 21:03:55 -0700</pubDate>
      <guid isPermaLink="false">http://nieve.heroku.com/post/13</guid>
    <feedburner:origLink>http://nieve.heroku.com/post/13</feedburner:origLink></item>
  </channel>
</rss>

