I wonder what the makers of the PHP5 practice exam wanted to express with the following question:

In a general sense, which is more important: performance or maintainability of an application?

  1. performance first, maintainability second
  2. Maintainability first, performance second
  3. Maintainability
  4. Performance

Are options 1&2 for the cowards that do not dare to restrict themselves to a single answer? Or for the wise that know that a single answer is never sufficient?
Do they want to convince us that maintainability of spaghetti PHP code is not so important because its fast? Or do they want to make us better coders, reminding of the important mission to write maintainable code?

Is this question anyway valid? Is there a universal truth out there that is valid for each and every code?

So I opt for

  • Code should be written according to customer requirements.

At least this answer can never be wrong :-)