Archive

Archive for March, 2010

CQRS : Command & Query Responsibility Segregation Pattern

March 31st, 2010

DDD has changed our modeling approaches. Eric Evans book has lead to a variety of innovative ideas such as DCI (Data Context Integration) and recently Erick Flemming introduced me to CQRS. I’ve spent the past few days running around the web consolidating a resource packet. Here are the links I’ve read and recommend:

 

Unshackle Your Domain

: Greg Young > InfoQ Link : Nice video but long (1 hour)

 

Clarified CQRS

: Udi Dahan’s righteous post on his blog here. Nice graphic.

CQRS

 

CQRS à la Greg Young

An even more detailed / concrete post by Mark Nijhof that can be found here http://elegantcode.com/2009/11/11/cqrs-la-greg-young/comment-page-1/#comments. He ahs great hand drawn diagrams (previewed below, but the code is the best part… real working example)

  > He has a working example of a banking application (winforms) here: http://github.com/MarkNijhof/Fohjin

> And a video on vimeo here: http://vimeo.com/7838858

Command and Query Responsibility Segregation (CQRS) - Division

 

Domain-Driven Design (the book)

Product Details

Don’t forget Eric Evans DDD book that you can find here:http://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215/ref=sr_1_1?ie=UTF8&s=books&qid=1270092554&sr=8-1

 

Other articles & frameworks

Sadly there are currently no .NET CQRS frameworks I could find. That said there are some Java. The front runner seems to be.

 

axonframework : CQRS Framework for Java

They have great documentation and a similar diagram as Mark (minus a command bus)

http://code.google.com/p/axonframework/

On InfoQ: http://www.infoq.com/articles/cqrs_with_axon_framework

image

 

 

EventSourcing & Snapshots

http://jonathan-oliver.blogspot.com/2009/03/event-sourcing-and-snapshots.html

Asynchronous Event Sourcing using Actors (SCALA)

Article : http://jonasboner.com/2009/02/12/event-sourcing-using-actors.html

alan.huffman .NET, Architecture, CQRS, DDD, Design & Features , ,

MIX 10 : Silverlight, silverlight, silverlight… Must see talks.

March 24th, 2010

Not all of the videos below are silverlight, but many are… Silverlight is going BIG TIME at MSFT. I’m onboard and all about it. (I just dumped my FLEX project)

alan.huffman .NET, Silverlight, Web Development , ,

Must know Visual Studio 2010 KeyBoard Short cuts & tricks

March 14th, 2010
Name Short Cut Result
Macro: [1] Ctrl+Shift+R
Ctrl+Shift+R
Ctrl+Shift+P
Record a new temporary macro
Stop recording macro
Play the recorded macro
Multiple Copy / Paste [1] Ctrl+Shift+V cycle through clipboard
Navigate to Prev/Next Cursor [1] Ctrl+- Previous Cursor Position / Next
Matching Brace [1] Ctrl+]
Ctrl+}
Navigate to previous brace
Opening Various Windows [1] Ctrl+Alt+O
Ctrl+Alt+K
Ctrl+Alt+L
Output Window
Task List
Solution Explorer
Bookmarks [1] Ctrl+K, Ctrl+K
Ctrl+K, Ctrl+N
Ctrl+K, Ctrl+P
Ctrl+K, Ctrl+L
Create/Remove Bookmark
Move to Next Bookmark
Move to previous
Clear all bookmarks
Commenting [1] Ctrl+K, Ctrl+C
Ctrl+K, Ctrl+U
Comment Block
Uncomment Block
Full-Screen Coding Window [2] Alt+Shift+Enter Hides all windows except for coding window
Toggle Outlining [2] Ctrl+M+M Expand / collapse a outline of code
Kill Line [2] Ctrl+L Kills (deletes) entire line
Code Snippets [2] Ctrl+K+S Access Code Snippets (if, region, etc..)
Fuzzy Navigate To [2] Ctrl+, Navigate To Search
Stop Debugging Shift+F5 Stop debugging
Find Usages Shift+F12 Find usages
Create Property type “PROP” + Tab + Tab Creates a new property

 

Sources:

[1] http://www.codeproject.com/KB/tips/VSnetIDETipsAndTricks.aspx

[2] http://www.itscodingtime.com/post/Visual-Studio-2010-Keyboard-Mouse-Shortcuts.aspx

alan.huffman Uncategorized

Dojo… Get It On! ( Learning Dojo ) – Cody Lindley

March 5th, 2010

http://www.sitepen.com/blog/2010/03/05/learning-dojo/

 

Check out this blog and get up to speed in a organized fashion.

 

Fantastic post!

alan.huffman Dojo, JavaScript, Web Development

Web Dev : Must haves for WCF 4.0 REST Services & ASP.NET MVC Rc2

March 1st, 2010

Do your self the favor of learning WCF even if you don’t use it – b/c MVC & WCF are using lots of the same components.

This blog series is amazing: http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx

> Especially (IMHO) this blog on ROUTES: (used in MVC & WCF 4.0) : http://blogs.msdn.com/endpoint/archive/2010/01/25/using-routes-to-compose-wcf-webhttp-services.aspx

 

Beyond that, if you are using ASP.NET MVC RC2… well you need a book, and Jeffrey Palermo has been writing one that you can help him edit on : GIT

> http://github.com/jeffreypalermo/mvc2inaction

 

Learn, Build, Reap.

alan.huffman Uncategorized