Julien Delhomme’s Blog

September 23, 2008

Valtech Days 2008– Paris, 21 et 22 Octobre

Filed under: Agile, Conferences, Design, Valtech — Julien @ 5:13 pm

Valtech Days 2008
Une nouvelle édition des Valtech Days se déroulera les 21 et 22 Octobre 2008 à Paris.
De nombreux séminaires le 21 et le 22, pour renouveler l’expérience réussie de l’année dernière, un Open Space Technology.

Je vais y tenir deux sessions.

Etes-vous prêts pour la production?
Certains ont peut être connu un tel projet : un logiciel correspondant (grâce aux pratiques de gestion des exigences) de façon satisfaisante aux besoins de l’utilisateur, une conception aiguisée, des métriques de tests augurant une qualité certaine… Un succès assuré !
Est-ce si certain? Hélas, pas forcément. N’oublions pas que c’est de son comportement en production que dépend le succès du logiciel. Pour l’Agilité, c’est d’une grande importance car l’une des clés est d’être capable de proposer rapidement et de façon continue un logiciel en état de fonctionnement.
Nous présenterons lors de cette session un ensemble de pratiques faites pour ne jamais perdre de vue cet objectif du projet : une vie pérenne en production.

La programmation concurrente restera-t’elle affaire d’expert?
Il est assez rare, pour la plupart des développeurs, d’être confrontés directement à l’univers intimidant du threading. C’est probablement une chance car la programmation concurrente est une activité assez complexe qui est restée jusqu’à présent réservée aux initiés. On assiste pourtant à l’apparition de nouvelles techniques destinées à un futur qu’on nous annonce fait de multiples « threads » et de multiples « cores ».
Pendant cette session, essayons d’y voir plus clair en faisant un tour des technologies en vogue (Erlang, MS Parallel Extensions, Scala…), des modèles et des paradigmes existants et émergeants et essayons de voir si ces techniques peuvent se rendre accessibles au plus grand nombre.

November 2, 2007

Are you really sure Agile is not bad for Design?

Filed under: Agile, Design, JAOO, Lean, Scrum — Julien @ 11:47 pm

It was striking to notice the important number of speech on software architecture at JAOO. Most of them - that’s interesting - placed in a natural way (sometimes implicitly) the architectural concerns in the contexts of Agile processes.

Without basically putting back into question the progress carried out thanks to agile methods, architecture was on the front of the scene. Several speakers handed forward the role of the architect. Such an emphasis rang in my opinion as a reminder of important values to beware not to leave behind.

Eric Evans was among the ones who noted this tendency. He said during the end panel that for him, “the theme of the conference had been the balancing of agile, iterative processes with design and architectural values”.

Note: The other main subject of JAOO was “how make business experts and programmers understand each other, how make them work closer together”. Domain Driven Design, Domain Specific Languages and Model Driven Development were addressed a lot. The watchword was given by Charles Simony: “Bring domain orientation at a new level”.

“Are you really sure Agile is not bad for Design?” Actually it’s quite important, because in order to be sustainable and successful, agile methods must be able to deliver software consistently and to achieve required quality… and quality problems are often the result of inappropriate software architecture! Performance, for example, dominates the user experience. Bad performance affects the perception of quality. Thus, Agile methods must be able to deal with design and they must be able to scale.

So, would architecture and design be neglected? In particular, are Agile practices detrimental to any important things and could Agile practices make us loose the focus on these important things?

These questions are not new. It is almost a custom to mitigate practices against experience or studies, hounding weakness of On-site Customer, Pair Programming, TDD, Iterations, for example. Sometimes, it sounds like gossip or gratuitous fuss. On the other side, some claims that “of course, Agile is sustainable when things are done well”. Sometimes, it sounds like autosuggestion J.
Anyway, these are healthy challenges. Philippe Kruchten, in Voyage in the Agile Memeplex: in the world of agile development, Context is key (pdf, review on infoQ), underlines that counterbalancing beliefs and considering the context of assertions (”source and applicability”) is essential to decipher messages because they are often reduced to their “essential bones”, “to the slogan level”. Perhaps the most important is to not suffering from what Kruchten calls “Agilitis”. James Coplien talks about blindness beliefs and religious resurgences (Religion’s Newfound Restraint on Progress, review on infoQ Religious Industry).

Architecture and design won’t be neglected and Agile practices are not detrimental to design 1) if we care explicitly and consciously, 2) if we consider context. A well-known drawback is to believe that design will draw by itself. Appropriate design certainly won’t emerge thanks to the faithfully adoption of any given practice.

Exclusive bottom-up approach is a pitfall…
This is a point to be aware of: Agile processes accustomed us to deliver tangible value incrementally, and to attack pieces of code in order to gradually increase the implemented functionality. And actually, it is often difficult to divide architectural problems into small pieces and solve them bottom-up. Kevlin Henney, in his speech at JAOO called “Performance Art” underlined that some concerns are difficult to understand from a modular perspective: “For example, performance is often an emerging property of the system”.
Things are even more difficult when there is no clear shared vision of the software architecture over the team.

The comment of James Coplien during his session “Scrum Architecture” created a controversy: “TDD has been proved to erode architecture”. Hard to go against orthodoxy, isn’t it!
What he essentially criticized is TDD as a design method. An exclusive Test Driven Development is not suitable for design because of its bottom-up nature. Moreover, TDD is not known to be good at finding bugs.
The goal of Unit testing must be to define system boundaries and to specify invariants (Design Driven Testing: Using tests as specifications of system’s invariants and contracts design – Sadek Drobi)

… So, maintain a big picture of the design, by leaning on reviews…
The need for maintaining a big picture and a broad goal all along the process is obvious. Modeling meetings and architecture reviews (work on Ubiquitous Language, application domain analysis, overall design) allows adapting evolutionary design and must be supported by the development process.
Mary and Tom Poppendieck propose in their book Lean Software Development, An Agile toolkit to “see the iterations as a prototype of a piece of the overall design […]. An iteration should be considered a demonstration of a possible solution”.
Cleanroom software engineering goes further and put an emphase on quality: “the quality of each increment is measured against pre-established standards to verify that the development process is proceeding acceptably. A failure to meet quality standards results in the cessation of testing for the current increment, and a return to the design phase” (Wikipedia). According to Kevlin Henney, such pre-established standards should be ratios (e.g. 90% of the database queries must be under 0.30ms).

As a consultant, Rebecca Wirfs-Brock conducts software architecture reviews. She had a session at JAOO, “lessons learned from architecture reviews”, where she gave useful advices to software architecture reviewers and architects. Her propositions should also apply during retrospectives and design meetings.

Rebecca underlined that the important is the customer value of an architecture and to be able to evaluate it. “As a reviewer, I have to be able to visualize the benefits of the architecture”. Quality can be an operational requirement and such kind of requirements have impact on design and architecture, e.g. extensibility of the system leads to develop adapters or plug-in components. In an Agile process, quality and architecture-related requirements must appear as items in the iteration backlog and must be demonstrable.
The reviews must involve right people. Even Product Marketing can help to take a technical decision.

Rebecca recalls that architecture must support unhappy parts of business Use Cases: “Propose “rainy days scenario” early: what happens when things go wrong? What should be done? It is hard to say if not addressed at the right moment.

… And seek convergence, relying on architectural models or prototypes…
Kevlin Henney also suggests using architectural models (to get a sense of what bottlenecks might exist) and partial prototypes (they provide empirical feedback). Partial prototypes support option thinking and set-based design (Lean). Set-based design is a way to reduce criticality. It leads to convergence rather than emergence. “The entire problem is divided into segments to be addressed concurrently by small teams. The design process converges on a solution, rather than selecting one at the onset” - Mary and Tom Poppendieck, Lean Software Development, An Agile toolkit.

During the end panel of JAOO, Eric Evans described a way to design the architecture of a system. You should work from realistic scenarios that architecture should support. You choose them to illustrate the hard part of what they are doing. Over time, you evaluate if you can continue to work with these concrete scenarios. This is a key to judge if your solution is “simplistic”, or if you have excessively complicated things.
Language patterns, Architectural patterns or Integration patterns (see DDD patterns, Layered Architecture, Anti corruption layer, Shared Kernel…) must support these realistic scenarios while fitting naturally the domain. There is no « one size fits all ». For Rebecca Wirfs-Brock, the goal is to achieve right architecture quality (no over nor under-engineering).

…while supporting the requirements and domain analysis…
Requirements must drive the choices of Tools and Roles that structure the design. For James Coplien, Use Cases are an essential tool to express suitably the user’s conceptual model as a whole coherent set of behaviors, responsibilities and interactions. Here, Use Cases are most efficient than XP User Stories that are more atomic and sometimes unhappily decorrelated one from each other.
Application Domain analysis must consist of a Commonality / Variability analysis (structure, meaning, state, algorithm…), identifying families and appropriate paradigm.

… without leaving operational requirements aside…

While in Agile processes we focus on delivering value to the customer, some operational requirements are difficult to make explicit. However, leaving them aside is a dangerous pitfall.

As Kevlin Henney says, “Premature optimization is the root of all evil” is too often understood… “Optimization is the root of all evil”! The danger is that, where performance matters, it is left until too late to be able to address it. So, because performance slices and crosses functionalities it is essential to evaluate performance by iteration. Fix approach is not suitable. Prototypes can help once again.

Kevlin suggested that “Where performance matters, it needs to be clearly stated as a requirement. However, although performance requirements make for good product backlog entries, they do not make for good use cases or user stories—they are cross cutting, but we still need to be able to define what “done” means ” (Definition of Done).

He recalls that testing is a way of showing that you care. It lends significance to a requirement, making it concrete and visible. Moreover, tests reveal all assumptions you made and this is essential to improve performance.

October 2, 2007

Valtech Days 2007 – Paris, October 23 & 24

Filed under: Agile, Conferences, DSL, Design, Software Factory, VSTS, Valtech — Julien @ 10:59 pm

Valtech hosts the 3rd edition of the Valtech Days : a 2 days conference in Paris-La Défense in October 23 & 24.

On the first day, various technical talks (24 sessions about Agile, Industrialisation & Software Factories, Frameworks & Architecture)
Among others: DSLs & Language Oriented Programming, Agile Contracts, Test Driven Requirements,… [Full Program (French)]

On the second day will take place an OpenSpace Technology event. Always exciting and friendly. Can be a great experience.

September 30, 2007

JAOO2007 – Professional Developer (Part II)

Filed under: Agile, JAOO, Software Craftsmanship — Julien @ 9:48 pm

Part II: Kevlin Henney – With Economy and Elegance

Wednesday morning, Kevlin Henney opened the track on “Professional Developer”.
He really is a pleasant speaker. After the success of this first session, his following session “Performance Art” was full.
These are the main points of his speech:

Definitions
“Our job is to turn a general purpose machine into a specific one”
A nice quote: the client: “I would like something… general. (J). Be able to… do lots of different things…” – “Ok. Take a compiler!”

It is natural for any discipline to define itself by analogy with others (metaphors), however the notion of is like is not the same as is (need for breaking the metaphor).
The mistake has not been in treating software development as a kind of engineering but…

  • But in assuming that is was a form of physical engineering (it is a kind of informational engineering)
  • But in assuming that engineering was synonymous with plan driven (i.e. imposition of rigid plans)
  • But in assuming a caricature of other engineering disciplines to compare against and mimic
  • But in assuming that there was no art, craft or sense of aesthetics in engineering

An Emerging Discipline
Problem: Software has been unreasonably successful! There was money, no time for consolidation.
But after a period of expansion and experimentation, we are in a period of consolidation…
With a stable base to build on:

  • Classic topics of computer science
  • Commoditized tools and libraries
  • Patterns for capturing and communicating software architecture and development experience

With clearer thinking about how people work

An Emerging Professionalism
A clearer sense of responsibility
Ways to form communities (discussion groups, open source projects, conferences)

Shared Understanding?

Then, Kevlin began to talk about “Economy and Elegance”:
Economy and elegance are not arbitrary or whimsical concerns.

  • Effective software development involves more than just a focus on functional and operational behavior
  • Recognizing that these qualities have value is part of professionalism

Sufficiency

  • Overachieving, speculative design is weaker and more complex, not stronger and simpler
  • Clarity, ease of use and performance are often achieved by reducing both clutter and hedging

Essential versus Accidental Complexity
Complexity comes from many sources, not all of which are necessary:

  • Sometimes the problem domain is complex, which may dictate complexity in the solution
  • Sometimes it is misunderstanding or insufficient skill that creates complexity
  • Sometimes it is cleverness that creates the complexity — code by über-programmers is often based on speculative generality and gratuitous use of advanced techniques and language features

Avoid Design by committee.

Decremental development

  • Eliminate Waste (Lean Development),
  • Don’t Repeat Yourself (Pragmatic Programming),
  • Once and Once Only (Extreme Programming),
  • Omit Needless Code and Unify Duplicate Code (Programmer’s Dozen)

Refactoring, encapsulation, conversation and libraries help in the search for the minimum. These are hill-descending techniques.
Refactoring is gradual, stable and Goal Oriented.

The Value of Economy
Economy represents care, far-sightedness and elimination of waste (in code & in process)
It is not a principle on its own, but a consideration with many consequent benefits

  • If you want fast code, keep it clean. (”No. Very Clean!”)
  • If you want extensible code, keep it clean
  • If you want testable code, keep it clean

The Value of Elegance

Yes, aesthetics matters! But do not fall in love with a design because it seems particularly fine and clever.
Style is not fashion.
Elegance offers guidance in economy. It places human in the picture, encouraging comprehensibility, care and creativity.

Kevlin concluded his speech with an optimistic note: “We are moving in the right direction.” “Refactoring is mainstream!” J

JAOO2007 – Professional Developer (Part I)

Filed under: Agile, JAOO, Software Craftsmanship — Julien @ 9:30 pm

Part I: Robert C. Martin - Clean Code II: Craftsmanship and Ethics.

Do software developers feel comfortable with their profession? Many of us prefer to introduce themselves as architects or designers. Others expect to be Project Managers. Symptoms? Signs of a bad comprehension of our activity?

Bob Martin opened JAOO conference by introducing a track on the craft of software developer (Wednesday track).
We have to define our profession, elaborate an ethic, a corpus of tools and methods. For him, things are getting better, in particular with the advent of Agile practices.

Here are the main points of his speech:

What makes a Professional Developer?

Discipline
There is a lack of Discipline! L… Agile values are welcome!

Green Band (see on the picture above?)
A symbol of personal ethic and professional pride (I write good code with tests). Can’t remove it.
 

Short iterations to keep projects on track
Cycles to deployable solution (not necessary deployed)

Don’t wait for Definition
In particular, don’t wait for definitions from the customer.
Zeno and the paradox of motion: run after specifications of existing software.

Abstract away volatility (GUI / Business Rules)
No need to put business rules in JavaScript… J

Commission > Omission 
It’s better to do than not: experiment rather than wait for something (e.g. between team A and team B).

Decouple from others! Use mocks, stubs, simulators.
Never be blocked, always find some ways to progress.

Avoid Turgid Viscous Architectures, built by architects who try to solve everything. They create more problems than it solves.
Build simple, focus on problems. The architect must write code.

Incremental Improvement
Clean up day by day. Always check in code a little bit better that it was when checked it out.

No grand redesigns
Let time for usual work, fixing bugs…

Progressive Widening
Build by spikes from the GUI to data. Then, widen them.

Progressive Deepening
Go deep into layers progressively. Start with something that works (e.g. direct GUI to Data).

Don’t write bad code :-) You will immediately be slowed down by bad code. Go fast is go well.
Bad code progressively decline.

Write Clean Code:
What is clean code?? 10 lines. 5 minutes to understand. Read it is obvious. Code that do what you expect.

TDD: Nonsense! I’ve got a brain!
No… Test Driven Development is a fundamental activity. It forces to adopt a style to develop code that works minutes after minutes.
Test is what makes code flexible and maintainable. You can change and clean without breaking anything.

QA Should Find Nothing: don’t use QA to find your bugs!

100% code coverage: Not for managers!

Avoid Debugging: Temptation of leap into the debugger (« follow the debugger! »). Think & understand is better.

Manual test Scripts are Immoral: they are just big documents to put to sleep elephants.
Automate as much as possible and have testers to do exploratory testing.

Definition of done. Choose definition of done, only one definition (not “Done” and “Done done”J).

Test through right interface
Otherwise, it leads to things like « never change the GUI » to avoid break GUI tests. Don’t test business rules through the GUI.

Apprenticeship: teach to other developers (unfortunately being a good developer is not taught at school).
Pair Programming is also made for that.

Use Good Tools

Powered by WordPress