August 2007 - Posts

Codex Automation v0.2
Well, I've published a new version of the Codex Automation add-in . A part from correcting a few bugs that were preventing the add-in from always loading correctly, here is a list of the (few) new features: Settings - new dialog in the Visual Studio Tools Read More...
Posted 28 August 07 03:29 by hgr | 0 Comments   
Filed under , , ,
Codex Automation v0.1
On my spare time I've been working on a very small and simple add-in for Visual Studio 2005 (C#). This is basically a code automation tool for simplifying a few tasks that I find myself doing a lot of times. The source code is available in this page: Read More...
Posted 21 August 07 12:17 by hgr | 0 Comments   
Filed under , , ,
Cool Add-ins for Visual Studio 2005
I've been looking for Visual Studio add-ins to automate some of the repetitive tasks that programming in C# still requires. Here are a few that do provide interesting features. PInvoke.net This add-in from Red-gate let's search for Win32 unmanaged API Read More...
Posted 16 August 07 11:56 by hgr | 1 Comments   
Filed under , ,
Blackle or "Protecting the Planet"
Sérgio pointed me to this one: http://www.blackle.com/ This a black screen skin for Google that intends to save power just by not showing the Google white screen. Will Google adopt this idea? Share this post: email it! | bookmark it! | digg it! | reddit! Read More...
Posted 16 August 07 05:32 by hgr | 2 Comments   
Filed under
DSL Tools #5 - Implementing Custom Validations
Implementing custom validations in the DSL Tools for a specific domain model is simple and (to some extent) documented. On my sample model, I wanted to add the following validations: Ensure that a given domain property is specified. Ensure that some domain Read More...
Posted 16 August 07 10:39 by hgr | 2 Comments   
Filed under ,
DSL Tools #4 - Add and Change Rules
Extending the previous question about dynamical default values, there is a scenario on my domain model that requires a different approach to achieve the same kind of behavior. The domain model includes an embedding relation between 2 domain properties: Read More...
Posted 15 August 07 04:53 by hgr | 2 Comments   
Filed under ,
DSL Tools #3 - Dynamic Default Values for Domain Properties
The sample domain model I've been working with includes an abstract class called NamedElement. This is basically a construction that guarantees that all other significant domain classes will include a domain property called Name. I wanted each class the Read More...
Posted 15 August 07 03:36 by hgr | 3 Comments   
Filed under ,
DSL Tools #2 - Preventing Invalid Connections
Considering the model described in the previous post , I have a connector that allows the user to define the flow between FlowElements. From the domain model, you can see that any given FlowElement can connect to any other FlowElement (any number in fact). Read More...
Posted 14 August 07 10:14 by hgr | 2 Comments   
Filed under ,
DSL Tools #1 - Preventing Multiple Instances of one Domain Class
My first trick is quite interesting as it requires most of the actions you will ever do to extend the code generated from the domain model. Imagine that you have a domain model that includes this construction: Notice that the graph can have N elements Read More...
Posted 13 August 07 03:38 by hgr | 3 Comments   
Filed under ,
Experimenting with the DSL Tools
Last weekend I found some time to mess with the Microsoft DSL Tools to learn how this thing really works. I wanted to develop a new domain model from scratch and learn the so much mentioned tricks that you're required to implement in order to improve Read More...
Posted 13 August 07 03:36 by hgr | 0 Comments   
Filed under ,
Code Analysis @ Microsoft
Well, it turns out that Microsoft (Developer Division) itself isn't using all the code analysis (FxCop) rules that ship with VSTS: What rules do Microsoft have turned on internally? We, on the other hand, have started by enabling errors for all the available Read More...
Posted 10 August 07 03:18 by hgr | 0 Comments   
Filed under , ,