Cloud Foundry: Design and Architecture
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Abel Avram on Feb 10, 2009
ASP.NET MVC is using T4 (Text Template Transformation Toolkit) to generate the code behind the scenes when a Controller or a View is added to a project. T4 is a fully customizable text generator based on templates.
One of the ASP.NET MVC features announced by Scott Guthrie is using T4 for code generation. The code is generated by the T4 engine from a text template. That means anyone can create or edit such a template having complete control over the resulting code.
A T4 template looks very similar to any other Web Form combining plain text blocks with control logic. Abhishek Mishra gave a detailed example of editing one.
There is no intellisense support in Visual Studio for editing T4 templates, but Clarius Consulting offers a T4 Editor Community Edition integrated with VS and providing syntax highlighting. They also have a Pro version offering true intellisense support and T4 Code Generator edition supporting custom T4 hosts (WSSF, ASP.NET MVC), Server Explorer integration, Drag & Drop XML and XSD files, Friendly DB API to inspect metadata, and others.
T4 can be used to automate the generation of text files of any type and purpose. Scott Hanselman gave such an example by using a template for generating LINQ to SQL code. Scott recommends using T4 for any repetitive text generation task, not just .NET related: “If you're doing something twice or more, manually, in your company, generate it.”
InfoQ provides a technical introduction to T4 including links to MSDN documentation and useful posts.
Automating Error Reporting for .NET Applications
Visual Studio vNext: ALM features for Agile Planning, Team Collaboration
Using ALM to Drive Business/IT Alignment
Branching & Merging Efficiently: A Guide to Using Process-Based Promotional Patterns
In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
Andrew Watson talks about the work of the OMG, where CORBA is alive and well (hint: in your car), UML and UML Profiles vs. custom Modeling languages, DDS and other middleware, and much more.
Sohil Shah discusses creating iPhone and Android enterprise mobile applications based on cloud services using the open source platform OpenMobster.
Paul Sanford presents the transformations supported by data throughout its life cycle, and how that can be better done with Splunk, an engine for monitoring and analyzing machine-generated data.
A common “best practice” for unit tests is to only write a one assertion in each test. I intend to question this advice by showing that multiple assertions per test are both necessary and beneficial.
John Rauser presents the architectural and technological evolution of Amazon retail websites starting with 1994 and ending with adopting Amazon Web Services.
Michael Stal discusses system architecture quality, how to avoid architectural erosion, how to deal with refactoring, and design principles for architecture evolution.
Every developer has had to integrate with another system, API or component. Tis article provides strategies to handle the change and for he separating system boundaries.
No comments
Watch Thread Reply