Knockout JS @ The San Francisco .NET Developers User Group

Last night I presented at the San Francisco .NET Developers User Group on Knockout JS with ASP.NET MVC4 and Web API. I had a great time there and I wanted to thank everyone for inviting me to speak to the group.

Here are my slides from the presentation.

Here is the Contact List application we built.(Please note that the demo expects SQL Server express to be running. If you want to use another version of SQL Server, then you just have to add a connection string in Web.Config that matches the name of the data context.)

You can find Knockout JS demos and examples here:
http://knockoutjsdemo.apphb.com/

The official Knockout JS website is here:
http://knockoutjs.com/

Additional Resources:
Knock Me Out – This is a great blog by one of the contributors to Knockout JS. Lots of material is covered.

Web API Serialization
Web API Paging and Filtering

sf-net

Advertisements

SoCal Team System Presentation

This past Tuesday, I had the opportunity to speak at another local user group, SoCal Team System. My talk was a hands on introduction to unit testing. We went over several code demos and built a simple asp.net mvc site using TDD best practice. Thanks to everyone that came out!

Here is the Slide Deck and all the Code Samples.

SoCal Code Camp Los Angeles 2011

This past weekended I spoke at the 4th annual LA Code Camp. I had an amazing time speaking, listening to some great presentations and interacting with lots of great people. Thanks to everyone that came to my talks!

I would really appreciate feed back on my presentations. So if you attended a talk, please visit my speakerrate page and rate me! 🙂

Here are the Slide Decks and Code Samples from my talks:

SLO .NET User Group Talk

Later today I’ll be speaking at the San Luis Obispo .NET User group. I’ll be presenting on Knockout JS, a powerful MVVM library for JavaScript. Knockout makes building interactive rich UI’s a lot of fun! I hope to see you there.

If you do attend, I ask that you please rate my talk so I know how I’m doing 🙂

Here are the slides and demos

Slides

Demo Source Code  – Play with the Demos Online

Here’s a few useful links about Knockout JS

Knockout Links

Learn Knockout Js – An excellent interactive tool for learning about Knockout JS

Knockout Me Out – A great blog about Knockout JS

SoCal Code Camp San Diego 2011

This past weekend I attended the SoCal Code Camp in San Diego and I had a blast. I gave 5 talks on mvc related topic and attended several great sessions. It was a fun experience and I truly enjoy going to Code Camp, it’s a great place to learn about new technologies and hang out with other fellow developers and friends.

Here are the slides and code samples from my talks:

So Cal Dot Net :: ASP.NET MVC3 Best practices

Thanks to everyone that attended my talk at So Cal Dot Net in Buena Park. I had an awesome time and it was a ton of fun.

Here are the files from the presentation:

LA C# – ASP.NET MVC 3 Best Practices

Thank you to everyone that attended my asp.net mvc 3 best practices talk at LA C# last night! I had a great time and I look forward to coming back and speaking to you guys about asp.net mvc.

Here are the files from the presentation:

I would also appreciate it if you could provide feedback on my talk via speaker rate. Thanks!

SoCal Code Camp Fullerton 2011

This weekend I attended and spoke at Code Camp Fullerton 2011. As always I had an amazing time. It’s always fun to meet and interact with other fellow developers. I went to a few really good sessions by some great presenters. I was also able to give a few talks myself on one of my favorite topics, ASP.NET MVC. Thanks to everyone that attended. I hope I was able to share my knowledge with you and if you have any further questions, feel free to contact me. I’m looking forward to Code Camp San Diego in a few months!

Here are the slides and code samples.

LA So Cal Code Camp

Last weekend I fortunate enough to attend SoCal Code Camp Los Angeles. It was an awesome event and lots of fun.Thanks to all who attended my presentations. I would appreciate any feedback you might have. Please leave comments at http://speakerrate.com/hattan

Here are the slides and code samples.

    • Getting Started with ASP.NET MVC
      Download the Powerpoint slides.
      Download the
      Sample Project
    • ASP.NET MVC 2 Best Practices
    • Download the Powerpoint slides.
      Download the ToDoList.Bad projectThis is an example of poorly created mvc application. Some of the problems with it:

      • Data Access Code (linq 2 sql in this case) is placed in the controller instead of a business layer.
      • Action method extracts value from Request.Form instead of action method input parameters.
      • Validation is in the controller and is repeated across multiple actions via copy paste.
      • Controller creates html as a string. (Violates the mvc pattern)
      • PRG (Post-Redirect-Get) pattern not used. After a post, a user clicking refresh can cause data to be modified again!
      • Code Duplication via copy paste. Violates DRY (don’t repeat yourself) principle.

      Download the ToDoList project
      Here’s the same project but built using a good separation of concerns and unit testing.

    • Download the Sample Project
      Download the Telerik Sample
      For instructions on setting up a new project with the Telerik extensions for mvc, see this post.

    • What’s New in ASP.NET MVC3
      Download the Powerpoint slides.
    • Download the Sample Project

San Diego Code Camp

Thanks to all who attended my presentations at the San Diego Code Camp.  Here are the slides and code samples. Sorry for the delay in posting these, the past week was extremely hectic at work! 🙂

    • What’s New in MVC 2
      Download the Powerpoint slides.
      Download the
      Sample Project
      Download the Asynchronous Controller Example
    • ASP.NET MVC 2 Best Practices 1
      Download the Powerpoint slides.
      Download the ToDoList.Bad projectThis is an example of poorly created mvc application. Some of the problems with it:

      • Data Access Code (linq 2 sql in this case) is placed in the controller instead of a business layer.
      • Action method extracts value from Request.Form instead of action method input parameters.
      • Validation is in the controller and is repeated across multiple actions via copy paste.
      • Controller creates html as a string. (Violates the mvc pattern)
      • PRG (Post-Redirect-Get) pattern not used. After a post, a user clicking refresh can cause data to be modified again!
      • Code Duplication via copy paste. Violates DRY (don’t repeat yourself) principle.

      Download the ToDoList project
      Here’s the same project but built using a good separation of concerns and unit testing.

      Download the ExcelService project
      I didn’t get a chance to demo this at code camp as we ran out of time. The Excel service library allows you to easily take an easting model collection and render a binary excel file.