Monday, January 14, 2008

Repository Based Code

Last week I listened to the first episode of the_stack[trace] about Image Based Development. This is a new podcast with excellent technical content. Today I read a new pattern from Martin Fowler's Wiki, Repository Based Code. Maybe I'm wrong, but I think these two patterns are synonymous.


Windows Power Shell is definately an environment that lends itself to this style of development. Lisp has a dribble function that tells the shell to spit out all commands to a file. Power Shell has the Get-History commandlet which can be used the same way.


This one liner will dump all commands that set a variable into a script called foo.ps1.



get-history -count $MaximumHistoryCount where-object { $_.CommandLine -like "$*=*" } > ~/foo.ps1

0 comments:

About Me

Recent Posts

Interesting Posts

My Delicious Links