Edwin EderleMonday July 21st, 2008
Prototypes beat concepts
Prototypes beat Concepts!
The “concepts” posting reminds me of a question that I have asked myself for quite some time: Why doesn’t the software industry believe in prototypes? A new car model is initially built in plasticine. Later hand-crafted prototypes costing millions are produced before serial production starts. I have seen wooden mock-ups of Airbus fuselage sections. But the software industry produces rough concepts, detailed concepts, data models, and. specifications. Then they spend months programming according to the specification sheets. It’s easy to outsource this task – even to India. I am not surprised that the outcome is often unusable.
It’s not necessary to go as far as suggested in the FSC posting, (allowing a complete unsuccessful attempt), although this sounds perfectly sensible and pretty tempting. I like the idea of building a prototype using tools (such as Excel and Access), that allow faster more economical programming. Of course this prototype will lack some important functionality (Multi-user capability, security, processing of mass-data, speed, …), but the wooden model of Airbus doesn’t fly either. The prototype can be used to develop, test and refine algorithms, user-interfaces, workflows, reports, etc. and the costs of making mistakes or having to redesign some part would be much less. Often when reading specification sheets the end user cannot imagine how the final product will “feel”.
The prototype can then serve as a “live” specification, but not as anything else. And this is the main criticism, which I hear quite often: “This is a pure throw-away product; its development costs are wasted money”! But if a 30.000 Euro throwaway prototype improves a 700.000 Euro software project by 10%, it has paid off economically.
E2E
Dr. Frank SchützMonday July 7th, 2008
What’s the use of – concepts?
With this contribution I would like to start a series of essays addressing (and thereby putting question marks behind) routines that – for whatever reasons – have become matters of course in everyday life.
Today, let me talk about “concepts”.
I find it remarkable what efforts are regularly made in the service of “concepts”, although, for instance in the IT world, everybody by now agrees that the time for drawing up a concept comprises between 50% and 100% of the actual implementation. (Which, by the way, is not only true for the IT world: Let me just remind you of the money spent on concepts and studies in the field of building projects).
Before going any further, let me define what I mean if I use the term “concept” in this essay.
First and foremost, a concept is a document in which the author writes down certain requirements for future adaptation. Mostly, the persons who are later supposed to apply the concept are not those who have created it. For the time being, let these initial comments suffice.
Assuming that these documents are just as costly as the actual implementation, please allow me to ask: What is their benefit?
Or more aggressively put: Why should I come up with such documents at all?
Without the extra effort it takes to create those documents, I would still have enough money for an entire abortive attempt in the implementation! Taking into consideration that the average learning progress during an abortive attempt is pretty high, it can be assumed that the second implementation will mostly be a success. Besides, looking at the time you normally spend working out concepts, a “concept free” procedure might very well to prove more efficient in terms of work hours, as well.
As a matter of principle, a concept is usually written by experts. After all, we want the result to look “professional”. Like often in life, the prophet is not heard in his home country, which means that external experts are hired for producing or at least playing a major part in the development of a concept.
Maybe I am being naive, but in my personal opinion, the employees working alongside each other in one company know most about each others work or field of expertise. Of course, it is always advisable to look beyond one’s restricted horizon, which is why I would recommend that for a concept development external professionals should indeed be consulted as to ideas and procedures. The actual concept paper, however, should be written exclusively by the employees of the company who are later supposed to apply it. Afterwards, the externals should do the proof-reading, thereby making sure that the employees actually understand the document which describes the concept. The knowledge remains in the company.
Which leads right back to one of the main aims of a concept: communication between the various roles (e.g. architect, developer, evaluator). If the concept has been developed externally, then the responsible party might no longer be available.
Again, let me point out that I consider the fact that a concept is meant for communication is paramount in this discussion. All communication deficits causing misunderstandings minimize the value of a concept to a huge extent.
Have you ever heard the following questions being asked by the person who was given an assignment?
- “What do you need the concept for?”
- “How do you want to further re-use the concept ?”
If so: congratulations!
Did you have an appropriate answer at your fingertips?
Have your answers been taken into consideration during the development phase?
Usually, a concept is used “universally”. As a general rule, the document is generated as “reading material”, often in word format, which means that it cannot be read by machines. Let us compare this with construction plans in machine engineering: Rather than using blueprints that are handed on, we nowadays use CAD files which are directly processed in modern processing centers. The facilities for quality control (measuring stations) are also often directly interpreted by these files.
So when does a concept actually guarantee additional value and thereby consolidate the investment?
The following check list has been started by me with the explicit hope of motivating you, dear reader, for comments. With your co-operation, we might eventually end up a complete and useful check list!
Check list for dealing with a concept:
- Have I been asked how I wish to re-use the concept later?
- Is the concept machine readable in its current version?
- Does the concept follow a model (meta model)?
- Does the concept provide more than two possible applications and have those been adapted to the needs of future users (e.g. architecture, design, implementation, evaluation, communication with experts)?
- Can the concept be iteratively extended (refined)?
If your answer to any of these questions is negative, then maybe you want to reconsider about really wanting/needing that concept…
Alexander MaischFriday June 13th, 2008
Scrum Clinic: the Nokia test
At InterFace we have a place to discuss the scrum related topics with everyone involved or interested in scrum.
The Scrum Clinic
I’m going to present selected topics from our Scrum Clinic here on this blog. Feel free to comment and discuss them.
Today I’m going to start with the Nokia test.
Nokia is doing (quite a lot of) scrum. They have created a test to check wether a team really is doing scrum.
The test has two parts. The first part is about doing iterative development
- Iterations must be timeboxed to less than 4 weeks
- Software must be tested and working at the end of each iteration
- The Iteration must start before specification is complete
Second: is it scrum?
- You know who the product owner is
- There is a product backlog prioritized by business value
- The product backlog has estimates created by the team
- The team generates burndown charts and knows their velocity
- There are no project managers (or anyone else) disrupting the work of the team
For the moment my english postings will be more compact than the original german posts. Sorry for that!
Bernhard FindeissTuesday June 10th, 2008
The basics of account management (part 2)
Gastautor(en) Tuesday May 27th, 2008
Objects, Entities and “Impedance Mismatch”
Summary: “Entity” and “Object” are the keywords of this article. The differences between these concepts are well known, the catchword for that is “impedance mismatch“. This text, however, highlights their basic affinity and shows how this point of view may contribute to conceptual clarity and a reduction of modelling costs in IT-projects.
“An entity is an object that doesn’t know how to behave”. This is just one way to answer when asked to describe the connection between objects and entities. You may get other answers, a smirk for instance. Between object and entity there seems to be some sort of divide: “Entity” smells stale whereas “object” indicates modernity. Most current ideas and discussions in the domain of information technology use an object oriented approach and a vocabulary which differs in many aspects from the mindset associated with the notion of “entity”:
Table concerning „Impedance Mismatch“
|
The table names some of the differences while Charles Bachmann’s one-liner at the beginning stresses what both concepts have in common. The latter is what this text tries to explore. (Bachmann is known for one of the first modelling tools.)
A thought experiment: You are to build an application within a domain of your choice. Sketch a class diagram for that application, and then an entity-relationship-diagram. Or the other way round – start with your favourite approach. Then compare your classes with your entities.
My result: There is considerable agreement in an essential part of the diagrams. There are “boxes and lines”, there are “numbers” along the lines. Some of the object-oriented boxes carry the same headlines as their entity colleagues. In those places the two networks of lines fit very well together. So does much of the content of the boxes: the data elements. The classes, however, contain more entries than the entities: The latter lack the “methods” or operations and so are unable to express behaviour – that is what Charles Bachmann’s one-liner says.
Now let us have a look at those parts of the diagrams where there is no agreement.
Object but no entity. Consider the objects without corresponding entities. These are meant for processing data or interaction with the user. In the object oriented approach the window on the computer screen is an object, too. Entities, however, usually end up in the database and that is why such objects do not show up in the entity diagram. So we can say that the class diagram covers more ground than the entity-relationship diagram does.
Entity but no object: Conversely, you will find entities, but no corresponding object – at least at first glance. Looking closer you will find the missing data as parts of other objects. The object oriented approach allows nested data, whereas data in entities are flat. Nesting of data, however, comes at a price. We will return to this topic.
Objects are generalized entities: That is what we can conclude from what has been said so far. Small wonder: Entities were invented years earlier than objects. But the concept of “key” has been lost on the way: An object is an entity looking for its key …
Keys help clarify things: A key uses subject matter information to define what constitutes a duplicate and what does not. Whoever has engaged in defining keys with the future users of an application will be glad to have a coherent way of writing down the results. He will surely want to look them up afterwards. And he will be grateful for the effort to have taken place before much code has been written – especially if he is responsible for the budget.
Objects are numbered serially, so the above discussions will probably pop up later, perhaps too late.
Later in this text we will come back to this topic from a different angle. For the time being, we will look at practical reasons to wish for continuity between object and entity.
An extreme Example of “object equals entity”: Some time ago I had the opportunity to attend a presentation of a tool that generates code. You specify a graphical model of your application, plug it into the generator, which presents you with a working Java application and a restricted set of operations (create, retrieve, update, delete). The participants of the presentation were asked to vote for new features. The result: A database reverser. Its task is to extract the data structure from a live database and to convert it to part of the input for the generator. Not much more is needed for the generator to produce its Java-application. You can use the generated code as a basis to fill in the missing operations manually.
Whoever asks for such a database reverser must concede that for practical purposes it is quite irrelevant whether the box in the diagram is called entity or object.
Data modelling with object oriented tools: I work with programs that transfer models between modelling tools. Most of the class models on my desk are in fact data models conceived in an object oriented modelling tool. Why is that?
Object oriented tools are routinely used during conceptual work because – apart from organizing your data – you want to think through your processes. That done, the database gets its due, a task where the object oriented tools lack qualities. That is why after a while projects want to transfer their classes into a database design tool. The result of the transfer is useful as a basis for database design.
At this point the mental divide between object and entity gets in the way.
UML has no concept for “key”, (among others). The standard for object oriented modelling is called UML – Unified Modelling Language. It was preceded by a host of object oriented methods and wants to be their generalization. That accounts for the letter “U” in its name. Entities and related concepts have been treated somewhat harshly by UML, they simply don’t exist.
Additional expense because of constructs missing from UML. If a UML-tool is used for data modelling, existing UML-constructs have to be used in ways for which they were not intended. There is no “official” way to do this and so each class model that needs to be transferred into a database design tool looks different. This is obvious at the level of subject matter – but it is worse than that: The syntax is different. That is why more than just pushing the button is needed to transfer the model. The peculiarities of the model must be identified and a script must be written to neutralize them. Only then can the button be pushed.
Extending UML. There is some consolation: UML wisely refrains from completeness, see above, but it opts for extensibility as the superior concept. If constructs for a special purpose are missing, e.g. a key, then UML can be extended. Essentially the interested persons, projects or organizations themselves create the missing descriptive elements, and bundle them to form a so called “UML-profile”. After loading it into a modern UML-tool they can use the formerly missing constructs – e.g. the key of an entity. In organizations the profile is distributed together with the tool, which means that the user need not be aware of working with a profile instead of native UML.
Problem solved? Not quite. Each special purpose, each organization may create its own profile and does so. A project has to deal with various purposes and various organizations are engaged. Each occasion builds its own Babylonian Tower.
Database invisible? I can hear your objection. Who needs a database design tool to design his database? No need to bother with that. We have the data structures within the classes and we have tools to build the database on that basis.
It is in fact quite feasible to build a database application without ever laying hands on the database. This is an efficient way to build a single application. But in big organizations, you will very rarely find isolated applications.
If you have more than one application running on the same database things get a bit complicated. Nesting of data in objects is done to speed up operations, so different applications will need different ways of nesting. Having only one database, you will want a design that neutralizes the different data structures. That is what traditional database design does.
To sum up: Although continuity between entity and object is something natural and to be wished for, in practical situations there are problems. The reason? No idea. I consider it just an error that has not been corrected in time – just like the positions of letters on your standard keyboard.
Practical suggestions:
- When modelling persistent objects, try to find a key and check whether your users agree with your decision.
- If more than one OO-application is to run on the same database make sure that it is properly normalized.
- If you are modelling with an UML-tool and wish to design your own database, for instance in a multi-project-situation, try to find a UML-profile for data modelling that is already established in your organization and use it.
- Nudge projects working on “your” database in the direction of using the same modelling method as you do and be prepared to make compromises.
JJG



