Naked objects

Naked objects is an architectural pattern used in software engineering.



The naked objects pattern is defined by three principles:

1. All business logic should be encapsulated onto the domain objects. This principle is not unique to naked objects: it is just a strong commitment to encapsulation.

2. The user interface should be a direct representation of the domain objects, with all user actions consisting, explicitly, of creating or retrieving domain objects and/or invoking methods on those objects. This principle is also not unique to naked objects: it is just a specific interpretation of an object-oriented user interface (OOUI).

The original idea in the naked objects pattern arises from the combination of these two, to form the third principle:

3. The user interface should be created 100% automatically from the definition of the domain objects. This may be done using several different technologies, including source code generation; implementations of the naked objects pattern to date have favoured the technology of reflection.

The naked objects pattern was first described formally in Richard Pawson's PhD thesis[1] which includes a thorough investigation of various antecedents and inspirations for the pattern including, for example, the Morphic user interface.

Naked Objects is commonly contrasted with the model-view-controller pattern. However, the published version of Pawson's thesis (see References) contains a foreword by Trygve Reenskaug, who first formulated the model-view-controller pattern, suggesting that naked objects is closer to the original intent of model-view-controller than many of the subsequent interpretations and implementations.


Pawson's thesis claims four benefits for the pattern:

  • A faster development cycle, because there are fewer layers to develop. In a more conventional design, the developer must define and implement three or more separate layers: the domain object layer, the presentation layer, and the task or process scripts that connect the two. (If the naked objects pattern is combined with object-relational mapping or an object database, then it is possible to create all layers of the system from the domain object definitions alone; however, this does not form part of the naked objects pattern per se.) The thesis includes a case study comparing two different implementations of the same application: one based on a conventional '4-layer' implementation; the other using naked objects.
  • Greater agility, referring to the ease with which an application may be altered to accommodate future changes in business requirements. In part this arises from the reduction in the number of developed layers that must be kept in synchronisation. However the claim is also made that the enforced 1:1 correspondence between the user presentation and the domain model, forces higher-quality object modelling, which in turn improves the agility.
  • A more empowering style of user interface. This benefit is really attributable to the resulting object-oriented user interface (OOUI), rather than to naked objects per se, although the argument is made that naked objects makes it much easier to conceive and to implement an OOUI.
  • Easier requirements analysis. The argument here is that with the naked objects pattern, the domain objects form a common language between users and developers and that this common language facilitates the process of discussing requirements - because there are no other representations to discuss. Combined with the faster development cycle, it becomes possible to prototype functional applications in real time.


The auto-generated OOUI is potentially suitable for sovereign applications but not for transient applications.

Software frameworks

There are now several software frameworks that implement the naked objects pattern:

Practical experience

The Department of Social Protection (DSP) (formerly known as the Department for Social and Family Affairs) in Ireland has built a suite of enterprise applications using the naked objects pattern. As part of its Service Delivery Modernisation (SDM) programme, the DSP designed a new enterprise architecture both to meet its planned new business requirements and to provide greater agility over the longer term. The naked objects pattern forms a key element of the SDM architecture[2]. In November 2002, the DSP went live with a new application to replace its existing system for the administration of child benefit. This is believed to be the first operational application of the naked objects pattern, anywhere. The DSP's experience in building this first application, including the reactions of user to the radical user interface is documented extensively in Pawson's thesis.[1], and more recently in a presentation at QCon London 2011[3].

One of the more striking aspects of the DSP experience was the way that the Naked Objects technique permitted re-use very actively. Once a domain object, such as a Customer, had been defined for one 'application' it could be (has been) readily adapted with the minimum of tweaking and addition for use elsewhere. This suggests that the approach could become a favourite in government circles, where re-use is seen as a powerful technique for breaking down siloed systems. The UK 'Transformational Government' policy is particularly keen to see re-use become a standard requirement of new government systems, both consuming other governmental system components and making new ones available for others to use. This re-use is often seen in terms of services, but objects could be an equally powerful approach.

The DSP's initial 'Naked Object Architecture' was developed by an external contractor[4], but the architecture was subsequently redeveloped around the Naked Objects framework, which now forms the basis for future application development, as confirmed in the request for tenders for a four-year programme of further applications to be built using naked objects[5].


The naked objects pattern has attracted a fair amount of criticism since the first public demonstration of the idea at the OOPSLA 2001 conference under the banner of Intriguing Technologies. This criticism has typically focused on one of three main areas:

  • The applicability of object-oriented user interfaces [6].
  • The usability of generic user interfaces.

None of these criticisms is unique to naked objects, but the fact that naked objects combines all three ideas gives it a higher profile.

Relationship to other ideas

The naked objects pattern has relevance to several other disciplines and/or trends, including:

Object storage mechanisms
Object-relational mapping, object databases, and object persistence are all concerned with eliminating the need to write a conventional Data access layer underneath the domain objects. These patterns are complementary and potentially synergistic with the naked objects pattern, which is concerned with eliminating the need to write layers above the domain objects.
Agile software development
Naked objects is compatible with the trend towards agile development methodologies in many different ways, but especially to fine-grained iterative development. The DSFA experience (described above) was probably also the largest application of agile software development techniques within a public-sector organisation, worldwide[7].
Domain-driven design
Domain-driven design is the idea that an evolving domain (object) model should be used as a mechanism to help explore requirements rather than vice versa. The fact that a naked object system forces direct correspondence between the user interface and the domain model makes it easier to attempt domain-driven design, and makes the benefits more visible.[8]
Model-driven architecture (MDA)
Although naked objects does not conform to the strict definition of MDA, it shares many of the same goals. Dan Haywood has argued that naked objects is a more effective approach to achieving those goals[9].


  1. ^ a b Pawson, R., Naked Objects, Ph.D Thesis, 2004, Trinity College, Dublin, Ireland pdf version
  2. ^ Department of Social and Family Affairs - Guide to the Functions & Records of the Department, DSFA website - Freedom Of Information
  3. ^ Case Study: Large-scale Pure OO at the Irish Government QCon London 2011
  4. ^ Fujitsu, Case Study: The Department of Social and Family Affairs Fujitsu website
  5. ^ Department of Social & Family Affairs, The ongoing development of the Department's Service Delivery Modernisation programme, 2007, e-tenders website
  6. ^ Larry Constantine: The Emperor Has No Clothes: Naked Objects Meet the Interface
  7. ^ Pawson, R and Wade, V, Agile Development using Naked Objects, Extreme Programming and Agile Processes in Software Engineering 4th International Conference, XP 2003 Genova, Italy, Proceedings
  8. ^ Haywood, D., Domain-Driven Design using Naked Objects, 2009, Pragmatic Programmers
  9. ^ Haywood, D (2004) MDA: Nice idea, shame about the...

See also

Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Naked Objects — Vergleich herkömmliche Schichtenarchitektur (links) versus Schichtenarchitektur mit Naked Objects Naked Objects ist ein Architekturmuster aus dem Bereich der Softwaretechnik. Es definiert sich durch die folgenden drei Prinzipien: Die… …   Deutsch Wikipedia

  • Naked objects — Эту статью следует викифицировать. Пожалуйста, оформите её согласно правилам оформления статей …   Википедия

  • Naked Objects MVC — is a software framework that builds upon the Microsoft ASP.NET MVC Framework. As the name suggests, the framework synthesises two architectural patterns: naked objects and Model view controller (MVC). These two patterns have been considered as… …   Wikipedia

  • Naked Heart Foundation — Founder(s) Founded 2005 Location London, Great Britain Key people Natalia Vodianova: founder; Justin Portman: co founder; Amy Bramley: International Executive Dir …   Wikipedia

  • Naked Empire —   …   Wikipedia

  • Naked eye — For other uses, see Naked eye (disambiguation). Bare eye redirects here. For the bird genus, see Bare eye. The naked eye The naked eye is a figure of speech referring to human visual perception unaided by a magnifying or light collecting optical… …   Wikipedia

  • Naked Lunch — by William S. Burroughs (1959)    Naked Lunch is William S. Burroughs’s masterpiece and one of the most influential novels of the 20th century. It is also the most infamous novel to come out of the Beat Generation. In his dedication to Howl and… …   Encyclopedia of Beat Literature

  • Naked-eye planet — In astronomy, the naked eye planets are the five planets of our solar system that can be discerned with the naked eye without much difficulty. Hence, they were the only planets known to the ancients prior to the invention of the telescope. They… …   Wikipedia

  • naked eye — noun the eye unaided by any optical instrument that alters the power of vision or alters the apparent size or distance of objects it is not safe to look directly at the sun with the naked eye • Hypernyms: ↑eye, ↑oculus, ↑optic …   Useful english dictionary

  • Clothed female, naked male — Examples o …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.