Entries Tagged 'Architecture' ↓

Thoughts on creating a framework

Per-Erik Bergman

I have been developing frameworks for different applications mostly games for over 10 years. Over this time I have made some really bad decisions and wrong turns, fortunately I have learned and gained some knowledge that always made my next framework a bit better. Design patterns One of my first lessons was that I don’t [...]

Future Cocoa Operation

Fredrik Olsson

In Java you have for quite some time had the Future interface for encapsulating an asynchronous calculation. Cocoa has had the abstract NSOperation class to encapsulate asynchronous operations. NSOperation do not have any facilities for returning a result when done as the Future do, you are left to implement this on your own. Which I [...]

Tags: , , , , , , ,

Yet Another Akka Benchmark

Patrik Nordwall

Performance benchmark of Scala and Akka Actors.

Handling Lazy + Metadata instances in Managed Extensibility Framework (MEF)

Magnus Mårtensson

Have you ever wanted to dynamically choose from many potential implementations of some code? Would you like to have the power of metadata filtering and lazy instantiation of the selected implementation? Here is how to do just that using Managed Extensibility Framework (MEF) and also a neat trick to handle your implementation/metadata pairs that I [...]

Tags: , ,

Rewriting a Public Cocoa Touch API

Fredrik Olsson

Cocoa Touch added API for presenting a view controller in a popup bubble in iPhone OS 3.2, the responsible class is named UIPopoverController. One would guess that this new class is a subclass of UIViewController, just like UINavigationController is, but that is not the case. One would also guess that in functionality many ideas for [...]

Tags: , , , , , ,

Neo4j .NET Client over HTTP using REST and json

Magnus Mårtensson

Here it is; a Proof of Concept of the world’s first Neo4j .NET Client. In other words: Here follows a discussion on how to create a client library for communicating with a graph database over REST. UPDATE: There is now a live CodePlex project for the realization of this concept; A .NET Client Library for [...]

Tags: , , , ,

Would you like a Byte Order Mark to go with that?

Magnus Mårtensson

It is possible to encode a little bit of metadata at the beginning of your byte streams to let the stream itself carry information on how it has been encoded. This is known as a Byte Order Mark (BOM) and it is as far as we know completely optional. Some .NET Framework implementations add this [...]

Tags: ,

Effective and Infinite storage in the cloud session at TechDays 2010 Sweden

Magnus Mårtensson

The main points of our Effective and Infinite Storage in the Cloud session at TechDays 2010 in Sweden are listed below as well as links to all of our related material and the zip with our demos. The slides are here too but they are in Swedish only. Our session at TechDays 2010 gave an [...]

Tags: , , , ,

Contexts are the new objects

Rickard Öberg

When we went from procedural programming to object-oriented programming, by realizing that we could remove the “object pointer” as the first argument to a procedure, and instead went to a model where methods are invoked on objects with identity, it fundamentally transformed our ability to structure and reason about software. Now, with the introduction of the DCI paradigm, I think that a similar change is possible, by realizing that DCI contexts are to stateless services what objects were to procedures.

Tags: ,

Architectural Enforcement with Aid of AspectJ

Mattias Severson

After working some time within the software industry, you get a feeling for good software architecture. Or, to be more honest, you get a creeping feeling when the architecture is really bad. That is when the code is tangled like a Gordian knot. After some futile refactoring attempts, you consult the software architect at your [...]

Tags: ,

Learn to Stop Worrying and Love the Singleton

Fredrik Olsson

Enterprise applications and mobile applications have quite different requirements. Starting an enterprise application is just something you do once before it continue running for months or years. On the other side of the spectrum most mobile applications seldom runs for more than minutes, run by a bored users standing in line or riding the bus. [...]

Tags: , , , , ,

Adrenaline Junkies and Template Zombies

Anders Janmyr

Since I had plenty of time to read on my flights back and forth to OOPSLA, I managed to read through a few books. One of them was Adrenaline Junkies and Template Zombies by Tom DeMarco et al. Being the sceptic that I am, my attitude when starting to read this book was: “Yeah, I [...]

Tags: