Click here to Skip to main content
15,887,596 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Refactoring the code or dessign? Pin
led mike1-Jul-08 4:38
led mike1-Jul-08 4:38 
AnswerRe: Refactoring the code or dessign? Pin
Scott Dorman30-Jun-08 23:30
professionalScott Dorman30-Jun-08 23:30 
GeneralRe: Refactoring the code or dessign? Pin
led mike1-Jul-08 4:41
led mike1-Jul-08 4:41 
GeneralRe: Refactoring the code or dessign? Pin
Scott Dorman1-Jul-08 6:20
professionalScott Dorman1-Jul-08 6:20 
GeneralRe: Refactoring the code or dessign? Pin
led mike1-Jul-08 7:28
led mike1-Jul-08 7:28 
GeneralRe: Refactoring the code or dessign? Pin
dojohansen22-Jul-08 23:00
dojohansen22-Jul-08 23:00 
GeneralRe: Refactoring the code or dessign? Pin
led mike23-Jul-08 5:57
led mike23-Jul-08 5:57 
GeneralRe: Refactoring the code or dessign? Pin
dojohansen24-Jul-08 0:22
dojohansen24-Jul-08 0:22 
I wrote a sincere and I would say well considered opinion about a subject relevant to some people, and certainly to the original question posted. Your reply can be summed up as you trying to tell me "you're an idiot". I am sure the person who asked the question is able to judge the reasons given for and against any recommendation and I suggest you stick to explaining why he should develop unit tests before refactoring and let readers draw their own conclusions.

Your venomous, arrogant reply was quite provocative. If it were not for the fact that your arrogance is - incredibly - superseded by your stupidity, I'd take it as a bitter pill and just try to learn from it. As it is, I'll take issue with your "argument".

We are not discussing the quality of the application code in the project I work on. It should be blindingly obvious to all of us why using, say, session state in a business object is just plain wrong. I was debating whether or not *generally* speaking it is smart to develop unit tests BEFORE or AFTER a refactoring of code. Unfortunately not one word you input related to this subject, so I can only say I am unused to "debating" at this level and not quite certain how I can best help you see the light. I will try though, adding some emphasis especially for you:

It is my OPINION that it is not ALWAYS or AUTOMATICALLY best to develop unit tests PRIOR TO REFACTORING CODE. If developing the tests represents a SIGNIFICANT WORKLOAD that would be UNDONE by the subsequent refactoring, it is my opinion that it is A WASTE OF TIME to do it IN THIS ORDER.

Furthermore, I claim that in the real world, MOST (this is not quite the same as all) refactoring would be of such a nature as to be very likely to break any unit tests developed. Hence, if about to refactor a project for which no unit tests exist, it MAY be a GOOD IDEA to CONSIDER whether one should refactor FIRST and THEN develop the unit tests.

If you don't have anything more intelligent to say than "avoiding work is NOT a valid excuse" when I haven't even remotely suggested anything of the kind then PLEASE, just spare us. You are neither funny or enlightning. Working hard is not sufficient in software development, you have to use your brain too. So do it.
GeneralRe: Refactoring the code or dessign? Pin
led mike24-Jul-08 6:35
led mike24-Jul-08 6:35 
GeneralRe: Refactoring the code or dessign? Pin
Pete O'Hanlon24-Jul-08 8:45
mvePete O'Hanlon24-Jul-08 8:45 
GeneralRe: Refactoring the code or dessign? Pin
led mike24-Jul-08 8:58
led mike24-Jul-08 8:58 
GeneralRe: Refactoring the code or dessign? Pin
Pete O'Hanlon24-Jul-08 9:05
mvePete O'Hanlon24-Jul-08 9:05 
GeneralRe: Refactoring the code or dessign? Pin
led mike24-Jul-08 9:25
led mike24-Jul-08 9:25 
GeneralRe: Refactoring the code or dessign? Pin
Pete O'Hanlon24-Jul-08 9:42
mvePete O'Hanlon24-Jul-08 9:42 
GeneralRe: Refactoring the code or dessign? Pin
led mike24-Jul-08 10:18
led mike24-Jul-08 10:18 
GeneralRe: Refactoring the code or dessign? Pin
dojohansen25-Jul-08 2:04
dojohansen25-Jul-08 2:04 
GeneralRe: Refactoring the code or dessign? Pin
led mike25-Jul-08 4:46
led mike25-Jul-08 4:46 
GeneralRe: Refactoring the code or dessign? Pin
dojohansen25-Jul-08 4:53
dojohansen25-Jul-08 4:53 
GeneralRe: Refactoring the code or dessign? Pin
led mike25-Jul-08 5:18
led mike25-Jul-08 5:18 
GeneralException Handling in Desktop Application Pin
Brady Kelly25-Jun-08 2:54
Brady Kelly25-Jun-08 2:54 
GeneralRe: Exception Handling in Desktop Application Pin
Steven A. Lowe13-Sep-08 17:06
Steven A. Lowe13-Sep-08 17:06 
QuestionObject Composition Pin
Leslie Sanford24-Jun-08 17:27
Leslie Sanford24-Jun-08 17:27 
AnswerRe: Object Composition Pin
led mike25-Jun-08 4:30
led mike25-Jun-08 4:30 
GeneralNatural vs Surrogate Keys [modified*2] Pin
Brady Kelly20-Jun-08 10:15
Brady Kelly20-Jun-08 10:15 
GeneralRe: Natural vs Surrogate Keys Pin
mr_lasseter25-Jun-08 13:37
mr_lasseter25-Jun-08 13:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.