Blog Posts from April 2005 (page 1 of 2)

QOTD : Michael Lehman

I was talking about modeling with Michael Lehman today when he mentioned the “cult of the arcane” – people who specialize in typically older technologies that are not widely understood who use this general lack of knowledge for job security. I thought it was funny.

Puget Sound IASA Meeting Tomorrow

FYI, I’m presenting at the monthly meeting of the International Association of Software Architects Puget Sound chapter Wed night (4/27). I’ll be talking about DSLs and Software Factories, including a hands-on look at the tool. If you’re in the Redmond area, the meeting is on the Microsoft campus in Building 43, Room 1560 – the Jefferson Room.

Introducing the Guidance Automation Toolkit

We had a good crowd for today’s webcast – including my dad as it turns out. The session was on packaging design and architecture guidance for Visual Studio. In the session, Tom and Wojtek announced the newest p&p deliverable – the Guidance Automation Toolkit. Frankly, I’m very excited about this project so it was very cool that I got to guest host today’s webcast.

The on-demand version of the webcast will be up soon, and there is no other info available on GAT as of yet, so let me summarize the purpose of GAT. Everyone is very familiar with the template solutions, projects and items that are in Visual Studio today. You select New Project from the menu and you get a choice selecting between things like Class Library, Windows App and Web App. Within one of these application, you get some contextual guidance – if you create a windows app, you get item template choices like Add Windows Form and Add Windows User Control but not Add Web Form or Add Web Service. GAT takes this templating capability to the next level while also making it much easier to develop the contextual guidance.

In the demo we saw today, Wojtek executed a solution template for a distributed application – similar to ones that come in the enterprise templates feature of VS today. However, the solution template Wojtek demoed has the ability to create the contextual features described above. For example, the solution template created an empty project for the data access layer. From that empty project, you could invoke a project template to create the data access layer. The reason it’s important to separate out the step of creating the solution from creating the DAL is that you can ask further questions at this time. For example, you could collect info about what database the DAL connects to. You might even want multiple DALs – one for each DB you’re speaking to OK, maybe that’s not the best architectural model, but bear with me. The point is that it becomes very difficult to ask all those questions during the initial solution creation step. Breaking it out into separate steps makes it much easier for the developer to tailor the solution as he goes along.

In addition to having contextual templates that can be executed, GAT projects also have the concept of recipes that can be attached to any node the the solution explorer tree (folders, files, etc). These recipes can gather information from the user in a wizard and then carry out a set of arbitrary actions. In the demo, Wojtek created an entity object within his created DAL project. In the wizard, he pointed it to a table in a database. The recipe then retrieved the schema of the table, executed a template that read that schema, and placed the resulting file into the project. What’s really cool is that you can create files that themselves have recipes attached to them. So you could have one recipe that created a baseline entity class from the schema – simply writing out fields and properties for the columns in the table. The create entity class could then have additional recipes attached to it to do things like create insert/update/delete methods or to create finder methods. Of course, often times you want to create multiple finder methods, so you’d want to be able to run that recipe multiple times. Note, recipes can do all sorts of actions – anything that can be automated in VS – so you’re not limited to simply creating new files. The create finder method example would need to modify an existing file. You could also delete or move around files as you needed to. It’s quite powerful.

Of course, all this power is useless if it isn’t easy to leverage. GAT provides a strong guidance package authoring environment in addition to the guidance usage experience described above. It has several default recipe actions for common scenarios (execute template, add file to solution, etc) plus you can build your own. We didn’t get into it in the demos today, but send us feedback and we’ll see about scheduling further webcasts to get more info. Additionally, the GAT will be available in a few weeks so I encourage you to get it and play with it when it ships.

As I said, I’m very excited about this toolkit. It’s another small step towards Software Factories. Still have a long way to go, but it’s awesome to see tangible progress.

BTW, there will be both a GAT breakout and hands-on lab at TechEd. We didn’t publish the titles yet since the project hadn’t been announced. The breakout is being presented by Daniel Cazzulino who has been working on the GAT for some time now. He’s also written the GAT hands-on lab. Watch Daniel and Tom’s blogs for more breaking news on GAT.

Major congrats to Tom, Wojtek and Daniel and everyone else involved on GAT. I can’t wait to get my hands on it and start playing around.

Update: Looks like the on-demand version of the GAT webcast is live.

Another Update: I fixed the on-demand link and removed the live link (since the event’s over, what’s the point of linking to the live webcast site?)

DMD 2 DD – Thanks Modelisoft!

Anyone who’s played with the DSL toolkit knows that it’s a 50/50 experience. Building the domain model means using a pretty straight forward designer (itself a DSL). Building a desinger means groveling around in a really ugly XML file. I hear that the designer design experience is going to get better in later builds, but for now it’s all hand coding. If you work thru the DSL Toolkit tutorial, you spend a lot of time finding and replacing names of domain model elements in the designer definition file. But now, Modelisoft has a utility called DMD2DD (i.e. Domain Model Definition to Designer Defintion) that automates all of that nasty find and replace / hand coding. Once you build your DMD, you run their tool and it automatically adds reasonable defaults to the DD for new domain model elements and removes designer elements from the DD for domain model elements that have been removed. The DMD2DD tutorial is much more straightforward than the DSL walkthru, since you don’t do all that hand editing.

Haven’t tried it yet, but if works anywhere near as well as the tutorial makes it look I’m going to keep a sharp eye on Modelisoft. From their homepage, it looks like their primary business is generating and reverse engineering .NET code from/for Rational Rose. I wonder what they’re doing w/ the DSL Toolkit?

System Definition Model SDK

Thanks to Pedro Silva, I now know about the DSL Tools forum on MSDN. There are also forums for VSTESA, MSF and VSTS Workshop. Plus, you can subscribe to RSS feeds of all these forums.

Speaking of the VSTS Workshops, the 3rd workshop (after DSL Tools and MSF Agile) just launched for the System Definition Model SDK. System Definition Model – or SDM – is the underlying model that powers the VSTESA modeling tools formerly known as WhiteHorse. VSTESA models 2 of SDM 4 levels – the Application Designer, the Logical Datacenter Designer as well as the Deployment Designer which essentially models the transformation between the two. These models map directly two the Application and Application Host layers of the SDM. Currently, we don’t have modeling tools for the Network/OS and Hardware layers of SDM.

Barry Gervin recently complained that the Logical Datacenter Designer sucked because you can’t model a web and database server deployed to the same physical machine. But in the context of SDM’s layers, you model the deployment of multiple application hosts to a single OS instance one layer lower than we currently have modeling tools for. Alex Torone, PM for VSTESA (and presenter for ARC310 – the drilldown on the Logical Datacenter Designer) penned an extensive comment in response to Barry’s complaints where he explains why SDM is factored the way it is and confirms that they are working on modelers for the other DSM layers “in future releases”.

Anyway, back to the SDM SDK. What’s cool about this is that while we ship some models “in the box” – primarily for our own stuff (SQL, IIS, WS03, etc) – there’s no reason you couldn’t model any system with SDM (Oracle, BEA, Linux, Z/OS, etc). The SDM SDK download is tools, samples and docs for building your own models and extending the modeling tools in VSTESA. (Note, the actual SDM SDK is a part of the VS05 SDK – i.e. what used to be called the VSIP SDK).

I wonder how long it is before the community models some of Microsoft’s major competitors in SDM?