Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Goodbye XML Hell<br />Convention over Configuration in .NET 4.0<br /><ul><li>Bart Wullems
Application Architect
Ordina Belgium</li></li></ul><li>Whyconfiguration<br />Givesus the necessaryflexibility to adaptour software to changes<br...
Availableconfigurationoptions<br />Hard coded settings<br />Ini files<br />Registry<br />XML<br />…<br />3<br />
Hardcoded<br />4<br />
.ini Files<br />5<br />
Windows Registry<br />6<br />
XML Files<br />7<br />
Lots of XML<br />8<br />
XML Hell<br />9<br />
The problem<br />Toomuchconfiguration is killingproductivity<br />10<br />
.NET historically configuration-based<br />Configuration-Based<br />
Solution<br />Convention over Configuration<br />12<br />
What’s a convention?<br />“A convention is a set of agreed, stipulated or generally accepted standards, norms, social norm...
What’s a convention?<br />“Convention over Configuration is a software design paradigm which seeks to decrease the number ...
You’veusedconventionsbefore<br />Namingconventions<br />Codingconventions<br />…<br />15<br />
Convention over Configuration<br />Byintroducing a simple set of conventions, youcandrasticallyreduce the amount of work<b...
Convention over configuration<br />17<br />
Conventions are finally finding it’s way into mainstream .NET development<br />Conventions in .NET<br />
Conventions in .NET<br />DataSet & DataTable<br />Conventionthattable name matches table and column name matches column<br...
DEMO 1 – ASP.NET MVC<br />
DEMO 2 – ENTITY FRAMEWORK 4.0<br />
DEMO 3 – ENTERPRISE LIBRARY 5.0<br />
DEMO 4 – Windows Communication Foundation 4.0<br />
Next steps<br />Have a look at yourownapplications<br />Try to findcommonconfigurationpatterns<br />Agreeaboutsomeconventi...
Upcoming SlideShare
Loading in …5
×

Convention over configuration in .Net 4.0

4,362 views

Published on

Published in: Technology
  • Be the first to comment

Convention over configuration in .Net 4.0

  1. 1. Goodbye XML Hell<br />Convention over Configuration in .NET 4.0<br /><ul><li>Bart Wullems
  2. 2. Application Architect
  3. 3. Ordina Belgium</li></li></ul><li>Whyconfiguration<br />Givesus the necessaryflexibility to adaptour software to changes<br />2<br />
  4. 4. Availableconfigurationoptions<br />Hard coded settings<br />Ini files<br />Registry<br />XML<br />…<br />3<br />
  5. 5. Hardcoded<br />4<br />
  6. 6. .ini Files<br />5<br />
  7. 7. Windows Registry<br />6<br />
  8. 8. XML Files<br />7<br />
  9. 9. Lots of XML<br />8<br />
  10. 10. XML Hell<br />9<br />
  11. 11. The problem<br />Toomuchconfiguration is killingproductivity<br />10<br />
  12. 12. .NET historically configuration-based<br />Configuration-Based<br />
  13. 13. Solution<br />Convention over Configuration<br />12<br />
  14. 14. What’s a convention?<br />“A convention is a set of agreed, stipulated or generally accepted standards, norms, social norms or criteria, often taking the form of a custom.”<br /> - Wikipedia<br />13<br />
  15. 15. What’s a convention?<br />“Convention over Configuration is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility. The phrase essentially means a developer only needs to specify unconventional aspects of the application.”<br />-Wikipedia<br />14<br />
  16. 16. You’veusedconventionsbefore<br />Namingconventions<br />Codingconventions<br />…<br />15<br />
  17. 17. Convention over Configuration<br />Byintroducing a simple set of conventions, youcandrasticallyreduce the amount of work<br />Youloose a little bit of flexibility<br />16<br />
  18. 18. Convention over configuration<br />17<br />
  19. 19. Conventions are finally finding it’s way into mainstream .NET development<br />Conventions in .NET<br />
  20. 20. Conventions in .NET<br />DataSet & DataTable<br />Conventionthattable name matches table and column name matches column<br />Allows easy data-access<br />ASP.NET MVC<br />Entity FW<br />Nhibernate<br />AutoMapper<br />EntLib 5.0<br />Caliburn<br />Ayende Sample(?)<br />…<br />19<br />
  21. 21. DEMO 1 – ASP.NET MVC<br />
  22. 22. DEMO 2 – ENTITY FRAMEWORK 4.0<br />
  23. 23. DEMO 3 – ENTERPRISE LIBRARY 5.0<br />
  24. 24. DEMO 4 – Windows Communication Foundation 4.0<br />
  25. 25. Next steps<br />Have a look at yourownapplications<br />Try to findcommonconfigurationpatterns<br />Agreeaboutsomeconventions<br />Implementthem!<br />24<br />
  26. 26. THANK YOU !<br />25<br />

×