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 Jonathan Allen on Jun 15, 2009
C# added auto-implemented properties in version 3, but Visual Basic was unable to match them at that time. With the impending release of .NET 4.0, VB has caught up in this area, but with a distinctive twist. In C#, auto-implemented properties are written as such:
public string FirstName {get; set;}
Visual Basic requires the keyword Property, which means it doesn’t need the get/set pair to distinguish it from a field. Thus auto-implemented properties in VB are only one token away from a field.
Public Property FirstName As String
For both VB and C# the property is automatically backed a private field. In C# this member has an automatically generated name such as “<FirstName>k__BackingField”. Needless to say, this field isn’t accessible using normal C# syntax. Visual Basic is far less creative, it merely takes the property name and prepends an underscore. So if you property is named “FirstName”, there will be a matching private field called “_FirstName”.
Having direct access to the backing field should make more things possible. Logic says one should be able to do things like mark the property ReadOnly and set its value in the constructor. Alas, that is not an option.
C#, despite its seeming limitation, is actually more flexible. You can mark the setter as private or protected, effectively getting the same effect as having access to the backing field.
public string FirstName {get; private set;}
A limitation for both languages is that they still don’t have any facilities for immutable objects. If you want objects where the properties and fields are all read-only and set in constructors, you still have to write the same code you would write in .NET 1.0.
Automating Error Reporting for .NET Applications
Visual Studio vNext: ALM features for Agile Planning, Team Collaboration
Troubleshoot Java/.NET performance while getting full visibility in production
RDBMS to NoSQL: Managing the Transition
The WebSphere Liberty Profile for Developers: An Introduction
Because BinaryFormatter is (by default) a field-based serializer, it will get very upset switching from auto properties to regular fields (since the name matters). For a fuller discussion, see here
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.
1 comment
Watch Thread Reply