What is an agreement against configuration?

Possible duplicate:
What is convention coding?

What is an anti-coding convention? I have seen this term mentioned in several blogs.

+7
design
source share
1 answer

Someone can probably give you a definition of a textbook, but until they become an example of the real world.

Asp.net mvc has views and controllers:

  • Configuration - this would be a manual mapping of controllers to use certain views, almost like a script code.
  • Convention - a controller method called Index most likely wants to use a view called the same, so the structure goes and searches for it.

In principle, all correlations in the code are not explicitly defined, but let the frameworks / code make reasonable assumptions about what should be done based on predefined patterns.

+8
source share

All Articles