ÖreDev Day 2 - ASP.NET MVC with Scott Allen

Now we’re getting into the “real stuff” or rather IT-related stuff.

I am now attending a session with Scott Allen, who is a great guy by the way, on ASP.NET MVC. As readers of this blog know I love this framework already since it got me back on understanding web development again.

OK - since Scott is dropping god nuggets as he speak, I thought that I put it here as we go, in no particular order;

  • When you create the “URL template” for routing you can specify anything you want. For example {controller}/{action}/{category}/{locale} would fill the category and local with anything passed to the URL or null if not set.
  • Learn and use MVC Contrib
  • MVC Contrib. Set the project-file-setting MvcBuildViews to get compilation errors for errors in the views. This slows builds down so don’t use it when not needed.
  • ...
Read More

ÖreDev Day 1 - Accomplishing more by doing less

I am at my first conference since 2000. My good times flies, then it was .NET launch and I was very envious of the people getting to try it out since I was stuck in a never ending VB6 Com+ assignment. Well, here we are - 2009 and ÖreDev.

The first day for me was spent with a single session that took the whole day. I didn’t know to much about it and simple went to it since the title was so alluring - Accomplishing more by doing less, with Marc Lesser (taken name?). Who can miss out on such a offering.

Well, as expected I guess, the content wasn’t so much on thing to do, that would only have added to the burden of things to do. But rather it was about doing less of some thing, namely:

  • Fear - here we talked a lot...
Read More

Agile Coaching Resources

I recently discovered an excellent resource for agile coaches: AgileCoach.net. Although the homepage may seem modest, it contains a wealth of valuable and engaging content. Some highlights include:

I’m looking forward to exploring these resources further—they’re sure to be a great addition to my agile coaching toolkit.

Read More

Private Source Control Repository with Integration in Visual Studio for Free

I was recently searching for a solution to a Source Control problem—specifically, setting up a system quickly and efficiently.

Thanks to a tip from Magnus, I discovered UnFuddle, a hosting service that not only provides source control but also offers additional features like dashboards, bug tracking, and calendars. The best part? For very small teams, it’s free! For slightly larger teams, it’s nearly free at $9/month.

While UnFuddle covers a lot of bases, I needed a seamless integration with Visual Studio 2008. Enter AnkhSVN, a Subversion client for Visual Studio. (I promise I’m not saying that out loud… I hope.) It’s a widely-used tool with a good reputation.

With UnFuddle and AnkhSVN, I now have a fully-fledged, well-integrated source control repository at no cost.

Free solutions are always a win, aren’t they?

Read More

How to Press F9-F12 in a Parallels Desktop Windows Image

As a developer, I often rely on a variety of keyboard shortcuts and function keys. For instance, I use CTRL+R, T to run all tests in a Visual Studio solution and CTRL+SHIFT+F11 to step out of a function while debugging. These shortcuts are second nature to me.

However, when working with a Parallels Desktop Windows image on a Mac, I encountered some challenges with accessing the F9-F12 keys. By default, Mac’s command key takes precedence over function keys, which can be inconvenient for developers.

Here’s how you can use the F9-F12 keys in Parallels Desktop on a Mac:

  1. For Function Keys F9-F12: Press [COMMAND] + [FN] + F9 (or F10, F11, F12 as needed).

    This combination works for me on my MacBook Pro, whereas the standard methods described in Parallels support documentation didn’t quite work.

  2. Favorite Shortcut: One of...

Read More

DDD and Naked Objects

I recently discovered something intriguing and wanted to share it along with some useful links.

My initial encounter with Domain-Driven Design (DDD) was through a presentation by Jimmy Nilsson at Elevate. His talk had a profound impact on me, particularly his point that the database should be a consequence of the domain model, not the other way around.

This got me thinking: wouldn’t it be beneficial if the GUI were also a reflection of the domain model, rather than being developed separately?

Enter DDD with Naked Objects. Naked Objects is an architectural pattern where the GUI is generated directly from the domain model, either automatically or on-the-fly.

Some might argue that Naked Objects isn’t suitable for production environments. However, as discussed on the Swedish DDD list on Google (my translation):

A story is considered done when there is an implementation of the Domain...

Read More

Sharp Architecture Presentations

I came across a fantastic presentation on the S#arp Architecture framework, delivered by Billy McCafferty, the creator of the framework.

The presentation is so compelling that it makes you want to dive right into coding with it. While it may feel a bit “rough” around the edges, I suspect we’ll see significant improvements in the developer experience in the near future.

Additionally, tomorrow Håkan Alexander will be presenting the framework at Elevate. It will be interesting to see how the Avegean community responds. I’m optimistic about a big success!

Read More

Delete-key in Parallels Desktop

OK – this might well be one of the shortest thing I’ve written but it’s soo annoying.

If you want to do DELETE (hitting the Delete-key) in the Windows OS running in Parallels, go [fn]-[<-] (function and backspace) on your Mac Keyboard.

Ahh – so nice to get that out of my system.

Read More

ASPxPivotGrid – A Mighty Web Control

This might be one of the most impressive web controls I’ve ever used.

The application we’re developing includes a feature that lets users manipulate columns and rows, similar to Excel’s PivotTable functionality. When I first saw this (considering the application was built with older ASP technologies), I was a bit apprehensive as it looked quite complex.

However, I was introduced to the ASPxPivotGrid by DevExpress, and it turned out to be fantastic. This control replicates Excel’s pivot functionality almost perfectly with minimal coding. It also supports exporting to PDF, Excel, HTML, CSV, and more.

Here’s a basic example of how to use the Pivot Grid programmatically, rather than configuring it at design time:

// In .Designer.cs... var ds = HämtaData(SQL1); // Returns some data from the database ASPxPivotGrid1.DataSource =...
      
Read More