# Saturday, 29 October 2011

In a post about two months back I worked with Adam Anderly to update the SimpleMembershipMvc3.Sample application to include resetting/forgotten passwords and emailing verification of registration. 

Adam updated his NuGet package to include this.  He also separated the email code into a service to make it better for testing.  Go Adam!

How to get it

If you are familiar with NuGet the command is:

Install-Package SimpleMembership.Mvc3.Sample

If you aren’t familiar with NuGet yet, you need to be.  It’s a great tool!

You can also get the code via GitHub.

Happy Coding!

Posted 10.29.2011  #    Comments [0]  | 
# Monday, 24 October 2011

There isn’t enough hours in the day to not to.

After 13+ years of employment with Coconino County I’ve decided to move on.  It’s been a really tough decision yet at the same time an easy one. 

Comfort

Leaving behind 13 years of effort is hard. 

Leaving behind team members, colleagues and friends I’ve made is hard

Leaving behind something that has become very comfortable and familiar is hard.

Passion

Following my desire to be more involved in the technical day to day leadership and doing is easy.  My heart lies with the coding craft.  I love to code and I love the process of becoming better at it every day. 

When I graduated from College I didn’t think much about code as a craft

From WikiPedia:

In English, to describe something as a craft is to describe it as lying somewhere between an art (which relies on talent) and a science (which relies on knowledge).

I think most colleges miss the first part of that.  It’s a shame as I believe this is a huge key to great programmers.  Perhaps it’s too much to ask of them?  After all many in the class are still just trying to understand a For loop or Big O notation.

What I do know is you can’t teach passion and this is key to the artistic side.  It’s all about internal motivation.  I’ve always enjoyed coding and always saw it as a way of expressing myself.  But I was lacking something and I didn’t know it.

Body Of All Possible Knowledge - courtesy of http://maxme.org/old_site/bodyknow.htm

My Awakening

About three years back I bought a license to Safari Books Online.  It cost more than what we were budgeting yearly for literature but I was staring at a bookshelf full of out of date books.  There had to be a better way.  With so many books at my fingertips I went from reading one or two books a year to seven or eight with a few more that I perused through and a slew of development blogs.

Clean Code

Clean Code, by Uncle Bob was perhaps the most influential in changing the way I thought about code.  Along with many more books and blogs I found that code could be so much more than just code.  It is my creative outlet to solving other people’s problems and it can be elegant and poetic.  Yes, I’m getting all gushy. The simple answer is that I care deeply about honing my code craft and we need more who think and feel this way in our trade. 

My Code Passion

  • I love making life easier for people. Building software for this purpose is a passion; it's not just a job. I am constantly looking for ways to better myself, my code, my team and my product.
  • I believe that deleting code is a beautiful thing.
  • I want to leave code in better shape every time I touch it.
  • I believe that well written code can be read like a story line.
  • I believe in constantly looking to improve one-self and those around them.
  • I believe that craftsmanship isn't just for wood working.

A New Journey

Passion - Courtesy of http://maxme.org/old_site/Passion.htmFollowing my passion, this week, I began a new journey with NAU (my alma mater) as a Senior Developer.  I will be responsible for setting the architectural direction and development of several applications around the advising process for Freshman and Sophomore students before they declare their major.  The group I support also helps them land jobs!  I’m very excited about it and look forward to bringing my skills to the table as well as continuing to hone my coding craft.

Need a little more help stoking your fire?  Read The Passionate Programmer

We need a few more passionate programmers.  Won’t you join us?

Happy Coding! :-)

Posted 10.24.2011  #    Comments [0]  | 
# Thursday, 15 September 2011

At Build MVC4 was announced and shortly thereafter it became available for everyone to play with.

How Do I Get It?

You can get it three ways:

What’s In It?

MVC4 comes with many great new features including an updated face lift of the design:

face_lift

Mobile rendering baked in:

Comparison

You can see the side by side comparison of the old MVC default template and the new.  The newer template is just cleaner and easier on the eyes.

If you need more mobile then use the Mobile Project Template that uses jQuery Mobile!

Superficial?

These changes are just superficial.  True, but they do have more features such as recipes and task support for asynchronous controllers.  You can also install MVC4 side by side with MVC3 without issue.

Upgrading MVC3 to MVC4

No Problem.  At least in my case.  I did it both ways as described in the ASP.Net MVC 4 release notes.

The recommended approach is to create a new MVC4 project and move your controllers, views, etc… into the new project which works but if you have a large project that would be a pain.

The other option is to do it all manually (as described in the release notes) or use nuget to install the MVC4 bits and make a few less manual changes.

After installing the MVC4 package in your application, you will want to make all of the manual edits as outlined in Upgrading an ASP.NET MVC 3 Project to ASP.NET MVC4 section of the release notes with the folowing exceptions:

  • You don’t need to do step 3.  The Nuget package takes care of this.
  • On step 7, I had to add a binding for Razor

    <dependentAssembly>
      <assemblyIdentity name="System.Web.WebPages.Razor"
           publicKeyToken="31bf3856ad364e35" />
      <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
    </dependentAssembly>

Should I Care?

Just the inclusion of mobile baked in is a big win and should be a good reason to watch MVC4 take shape over the next several months. 

I know this is early and I’m sure more features will make it’s way into MVC4.  At the pace that MVC has been maturing I am excited to see what’s next!

Happy Coding!

Posted 09.15.2011  #    Comments [0]  |