Feeds

Why simplicity starts with design

Four top tips

New hybrid storage solutions

I was talking with a fellow IT professional recently who was saying that you should "program simply" but "design with complexity". I do understand the point that he was trying to make - that is, during the design stage take into account the problems in your domain so that these have been worked out as much as possible before the coding starts.

In many ways this is sound advice as otherwise a solution may be proposed that is inappropriate, inefficient or impossible to implement. However, if this is taken to the extreme, then the design may take on the importance of the final deliverable in the minds of the designers. It may also become complex enough to be worthless!

Last time time I argued to "Keep it Simple Stupid", or KISS, with regard to software implementation. However, it is not just the software that needs to maintain its simplicity - it is also the design. That is not to say the design will be simplistic but rather that it should be as simple as it can be in order to fulfill its requirements.

This in itself sounds straight forward, but consider what I have said here: that the design should be "as simple as it can be in order to fulfill its requirements" - that is a slightly odd phrase. What I am trying to get at is that the design should be no more complex than is needed to help to understand how the software will need to be constructed.

This differs from the requirements of the software itself. Remember, a design is an abstraction of the software that will be written - it is not the software itself. At the end of the day, it should not be as complex as that software - it's a simplified representation of it.

Clear models in any Java-oriented design process, modeling is a key element. An overly complex model may actually be less useful than a simple model anyway. Why? Because a complex model, with a large number of classes, objects, relationships and use cases may actually obscure the meaning originally intended. Worse, the density of elements in the model may actually mean that developers get "model overload" and switch off.

If this happens, then the formal model may be forgotten and developers will work from their own interpretation of the requirements. This may result in the production of an implicit design, which is no more than a set of mental models.

So, how can simplicity in design be achieved? Here are some practices that I believe can help:

Don't try to test designs

As I have said above, a design is an abstraction of the software to be implemented. As such it is not possible to test a design to check its completeness, its suitability or to validate its functionality. So we should not attempt to do so. If we need to validate part of a design then prototypes can be built. If we need to explore some complex concept then a proof-of-concept implementation can be created. We should not pretend that a design is something that can ever be as all encompassing or complete as the resulting software. Instead the test should be: "Is it fit for purpose?" If it passes this test, then it has met its goals.

Use the simplest tools

Tools are another area in modeling that people get hung up on. Some modeling tools tend to promote the creation of large complex models - this may be to do with the modelers creating models for their own sake. However, the use of a dedicated, and isolated modeling tool tends to help promote this. Personally I am a big fan of tools such as Omondo - the Eclipse plug-in that can create models from Java source code and source code from Java models. I like such tools because they are lightweight, do not get in the way of the modeling process and tend to restrict the creation of very large, and potentially meaningless, models.

Use Patterns gently

Design patterns are good things, yes? Not always. Due to their very nature, if a design includes a number of interacting design patterns the end result may become, at best, complex and, at worse, opaque and potentially useless. However, I sometimes wonder whether some designers try and show how clever they are by producing complex designs that encompass numerous design patterns. As Scott Ambler has said: "Use design patterns gently!"

Design with others

Of course most designers do not start out with the aim of producing overly complex designs and models. Actually achieving simplicity in design is a much harder thing to succeed at, than to strive for. One way to keep things simple is by designing with others. In my experience this tends to help to things stay focussed, to ensure that the designs remain meaningful and that they are as clear as possible given the application. It is essentially the design equivalent of XP's LINK pair programming.

Summary

In conclusion, it is important to note that I am not advocating simple design, but rather the goal should be to aim for the simplest design that fulfils its purpose. Thus we should aim for simplicity in design just as we should in actual implementation.®

Secure remote control for conventional and virtual desktops

More from The Register

next story
'Windows 9' LEAK: Microsoft's playing catchup with Linux
Multiple desktops and live tiles in restored Start button star in new vids
Not appy with your Chromebook? Well now it can run Android apps
Google offers beta of tricky OS-inside-OS tech
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
Greater dev access to iOS 8 will put us AT RISK from HACKERS
Knocking holes in Apple's walled garden could backfire, says securo-chap
NHS grows a NoSQL backbone and rips out its Oracle Spine
Open source? In the government? Ha ha! What, wait ...?
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
prev story

Whitepapers

Secure remote control for conventional and virtual desktops
Balancing user privacy and privileged access, in accordance with compliance frameworks and legislation. Evaluating any potential remote control choice.
Saudi Petroleum chooses Tegile storage solution
A storage solution that addresses company growth and performance for business-critical applications of caseware archive and search along with other key operational systems.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.