• Save
Convention over configuration in .Net 4.0
Upcoming SlideShare
Loading in...5
×
 

Convention over configuration in .Net 4.0

on

  • 4,073 views

 

Statistics

Views

Total Views
4,073
Views on SlideShare
3,713
Embed Views
360

Actions

Likes
0
Downloads
0
Comments
0

26 Embeds 360

http://www.techgig.com 221
http://bartwullems.blogspot.com 80
http://bartwullems.blogspot.com.au 6
http://www.slideshare.net 5
http://bartwullems.blogspot.in 5
http://bartwullems.blogspot.hk 4
http://bartwullems.blogspot.fr 4
http://bartwullems.blogspot.ca 4
http://bartwullems.blogspot.co.uk 4
http://bartwullems.blogspot.ch 3
http://bartwullems.blogspot.nl 3
http://bartwullems.blogspot.se 2
http://bartwullems.blogspot.dk 2
http://bartwullems.blogspot.no 2
http://bartwullems.blogspot.it 2
http://bartwullems.blogspot.ie 2
http://bartwullems.blogspot.fi 2
http://bartwullems.blogspot.co.il 1
http://bartwullems.blogspot.pt 1
http://bartwullems.blogspot.be 1
http://bartwullems.blogspot.gr 1
http://bartwullems.blogspot.mx 1
http://bartwullems.blogspot.co.nz 1
http://bartwullems.blogspot.ro 1
http://bartwullems.blogspot.de 1
http://bartwullems.blogspot.com.br 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Namingconventions(Pascal Casing, interfaces start withan I,…)Codingconventions(don’tswallowexceptions, return meaningfulerrormessages, don’tusetoomany parameters in methods, …)…
  • Shownormalconventions(View, Controller, Model)Show how easy it is to changethem(eigen controllerfactory, aparte controllers, override in global.asax)
  • entity framework 4 Code-Only SupportEntity FW CTP3 : http://www.microsoft.com/downloads/details.aspx?FamilyID=af18e652-9ea7-478b-8b41-8424b94e3f58&displayLang=en
  • Convention voor elke category gedefinieerd in de applicatie kunnen we loggen naar een overeenkomstige log fileIpv dit telkens opnieuw te configureren, 1x conventie afspreken en dit dan automatisch laten configureren
  • Als je geen endpoint configuratie meegeeft, wordt er default1 aangemaakt

Convention over configuration in .Net 4.0 Convention over configuration in .Net 4.0 Presentation Transcript

  • Goodbye XML Hell
    Convention over Configuration in .NET 4.0
    • Bart Wullems
    • Application Architect
    • Ordina Belgium
  • Whyconfiguration
    Givesus the necessaryflexibility to adaptour software to changes
    2
  • Availableconfigurationoptions
    Hard coded settings
    Ini files
    Registry
    XML

    3
  • Hardcoded
    4
  • .ini Files
    5
  • Windows Registry
    6
  • XML Files
    7
  • Lots of XML
    8
  • XML Hell
    9
  • The problem
    Toomuchconfiguration is killingproductivity
    10
  • .NET historically configuration-based
    Configuration-Based
  • Solution
    Convention over Configuration
    12
  • What’s a convention?
    “A convention is a set of agreed, stipulated or generally accepted standards, norms, social norms or criteria, often taking the form of a custom.”
    - Wikipedia
    13
  • What’s a convention?
    “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.”
    -Wikipedia
    14
  • You’veusedconventionsbefore
    Namingconventions
    Codingconventions

    15
  • Convention over Configuration
    Byintroducing a simple set of conventions, youcandrasticallyreduce the amount of work
    Youloose a little bit of flexibility
    16
  • Convention over configuration
    17
  • Conventions are finally finding it’s way into mainstream .NET development
    Conventions in .NET
  • Conventions in .NET
    DataSet & DataTable
    Conventionthattable name matches table and column name matches column
    Allows easy data-access
    ASP.NET MVC
    Entity FW
    Nhibernate
    AutoMapper
    EntLib 5.0
    Caliburn
    Ayende Sample(?)

    19
  • DEMO 1 – ASP.NET MVC
  • DEMO 2 – ENTITY FRAMEWORK 4.0
  • DEMO 3 – ENTERPRISE LIBRARY 5.0
  • DEMO 4 – Windows Communication Foundation 4.0
  • Next steps
    Have a look at yourownapplications
    Try to findcommonconfigurationpatterns
    Agreeaboutsomeconventions
    Implementthem!
    24
  • THANK YOU !
    25