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 Dec 28, 2009
Having caught with the recent advances in Microsoft’s C# 4, the Mono team is now playing with their own extensions to the language. The two features they are experimenting with are string interpolation and support for multiple return values.
String interpolation is essentially a shortcut for the String.Format syntax. Instead of explicitly calling that function with a string containing numeric placeholders, the string is constructed using expressions in the placeholders. For example,
var a = 'Hello {name} how are you?';
Note that in this example from Miguel de Icaza, the string is detonated by single quotes instead of double-quotes. Miguel is currently soliciting feedback on this feature from Python and Ruby users, as he expects them to be more familiar with any potential problems.
The second language extension is support for tuples, also known as multiple return values. Given a function that returns a tuple, his patch would allow the function to be called and the tuple unpacked in the same line.
Tuple<string, string, string, int, string> ParseUri (string url);
(user, password, host, port, path) = ParseUri (url);
Creating and returning a tuple would look just like the assignment syntax. Miguel is also considering extending this to support slicing arrays, enumerations, and older forms of tuple such as DictionaryEntry.
Automating Error Reporting for .NET Applications
RDBMS to NoSQL: Managing the Transition
Troubleshoot Java/.NET performance while getting full visibility in production
Visual Studio vNext: ALM features for Agile Planning, Team Collaboration
The real value of multiple return values comes from pattern matching, as it does in a language like Scala. I really want to be able to pattern match on the values returned, not just their types, so I can write expressive code like...
(true, response) = someFunctionThatMightFail()
Hopefully, this sort of thing is considered when introducing tuples to Mono.
Always wanted the multiple return value feature from c#, Anders Hejlsberg should take note of this and think of implementing it in c# 5.0
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.
2 comments
Watch Thread Reply