Create Journals
Update Journals

Journals
Find Users
Random

Read
Search
Create New

Communities
Latest News
How to Use

Support
Privacy
T.O.S.

Legal
Username:
Password:

darren (webgeek) wrote,
@ 2009-06-03 12:19:00
Previous Entry  Add to memories!  Add to Topic Directory  Tell a Friend!  Next Entry

    Current mood:gutted

    Phrases
    I was talking a while back about symmetrical code but it is not just individual code blocks that benefit from symmetry it is also the whole structure of the code. For example, if you've got lots of screens each then it's a good idea that the code follows the same structure across them all so if you were to compare them side by side they'd look symmetrical e.g. the validation code is in a method with the same name in each screen and initialisation / validation / etc. are done in the same order in each screen*.

    Of course another way of looking at it is they all follow the same pattern, which is why "Patterns" is a big thing in coding nowadays. Going further out you could say that the screens always do X, any custom controls do Y and the business layer always does Z etc. leaving everything nice and ordered and neat and it was talking with a mate the other week when I first heard this expressed as the phrase "separation of concerns".

    I heard the phase again on the MIX09 videos on ASP.NET MVC so I think this must be a new phrase of the moment** and I can see why 'cos it put succinctly*** the need to know what should go where when coding to make sure maintenance and debugging happen as easily as possible.

    In other news lunchtime footie has been cancelled again today, gutted.

    UPDATE (04-06-2009): I heard the phrase "separation of concerns" again today.



    * and if they are not there is a comment to say why not.

    ** though I see the wikipedia page was initially created some time ago

    *** I suppose I've previously asked which layer is responsible for what when being asked to extend existing code.


(Read comments)

Post a comment in response:

From:( )Anonymous- this user has disabled anonymous and non-friend posting. You may post here if webgeek lists you as a friend.";
 
Username:  Password: 
Subject:
No HTML allowed in subject
 

No Image
 

 Don't auto-format:
Message:

Notice! This user has turned on the option that logs IP addresses of anonymous posters.

Allowed HTML: <a> <abbr> <acronym> <address> <area> <b> <bdo> <big> <blockquote> <br> <caption> <center> <cite> <code> <col> <colgroup> <dd> <dd> <del> <dfn> <div> <dl> <dt> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <ins> <kbd> <li> <li> <map> <marquee> <ol> <p> <pre> <q> <s> <samp> <small> <span> <strike> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <tt> <u> <ul> <var> <xmp>
© 2002-2008. Blurty Journal. All rights reserved.