Advertisement
Nickname
mouse
Registered since:
December 3, 2002
Short bio:
Chris has 15 years experience in software development. He is interested in a variety of software development topics, including complexity (esp. coupling and cohesion), training, refactoring, unit testing, and the evolution of the Java language.
Home page:
http://home.intranet.org/~mouse/
Total posts:
54

Forum posts by Chris Dailey:

4 pages [ 1 2 3 4 Next ]
Posted in Weblogs Forum, Oct 8, 2006 10:40 AM
Some important non-technical questions:- How are the paychecks funded? (Product sales, advertising, venture capital -- if something happens to the economy, will you be out of work?)- How much debt does the company have? (How much of your time is paying off the company's past mistakes?)- What is the company's annual revenues? How many employees?...
Posted in XML Community News Forum, Apr 28, 2006 11:41 AM
The URL for my bus route today is:http://www.edmonton.ca/portal/server.pt/gateway/PTARGS_0_2_329_230_0_43/ http%3B/AppServer/ExternalSupported/Transit/RouteSchedule_Results.aspxAnd there are some posted variables, so I can't copy and paste the URL. I would much prefer it if it were something simpler, such...
Posted in Weblogs Forum, Apr 27, 2006 12:08 PM
I've bought OptimalAdvisor for stuff I work on. It currently doesn't correctly parse one of my projects (http://sf.net/projects/elevatorsim, see the j2se5conversion branch in cvs), but they have mentioned it should be fixed in the next version. Other than that problem (which is not trivial for me, and I haven't yet found a workaround), I've...
Posted in Java Community News, Mar 30, 2006 4:45 PM
devMetrics for .NET, JavaNCSS for Java.Yes, fixing cyclomatic complexity sometimes retains the complexity but just moves it to somewhere not measured by CC. However, lower-CC code is more testable, so there are huge benefits.There seems to be a trend. Reduce complexity of methods increases the complexity of classes. Reducing complexity of...
Posted in Artima Developer Spotlight Forum, Mar 2, 2006 5:11 PM
There is another way of being fooled by code coverage; I rarely see it mentioned.Basically, a test setup should put the test in a particular state; then a number of operations should be performed; then the state should be tested for correct results. A test should perform a set of actions that define a transition from one state to another and...
Posted in Weblogs Forum, Feb 8, 2006 10:35 AM
Part (but not all) of your description of prefractoring makes me think of books such as Effective Java by Joshua Bloch or Object Oriented Design Heuristics by Arthur Riel.
Posted in Weblogs Forum, Sep 16, 2005 10:09 AM
Why am I thinking of the line "Too many notes" from the movie Amadeus?
Posted in Weblogs Forum, Sep 2, 2005 3:22 PM
Similar thoughts have come to my mind, as well, though I've never put them together in any kind of cohesive form.An entry on this subject would go well in c2.com, and also referenced from:http://www.c2.com/cgi/wiki?CodeSmell"Too many private (or protected) methods - MethodsShouldBePublic"I see you've already commented in MethodsShouldBePublic...
Posted in Weblogs Forum, Jun 6, 2005 12:51 PM
One thing that comes to mind is self-balancing trees (e.g. red-black trees). However, relying on humans to do the accounting and incremental restructuring of arbitrary information when part of it is modified is unlikely to be successful.The organization of a balanced tree is very specific, so that function can be automated. The organization of...
Posted in Weblogs Forum, Jan 5, 2005 2:43 PM
I am a little curious about the second item. Without separate events, if you somehow managed to cram all that data into one event callback, wouldn't you end up with a single callback that used case analysis to figure out what happened, which is a code smell of its own? Why is it important for the model to know that there's only one view that...
Posted in Weblogs Forum, Oct 12, 2004 7:30 PM
If you put the behaviour where it belongs you won't need nearly as many getters/setters.A friend of mine goes to a writing class. At one point, the teacher showed the class a paragraph that had problems, and went through how to fix it. My friend wrote:Just looking at a well-written paragraph doesn't necessarily teach me anything- I want to see...
Posted in Weblogs Forum, Oct 7, 2004 8:37 AM
How about a language that has no formatting built in, and it's up to the IDE to present the code in a formatted way?I agree that there should never have to be a revision due to code formatting changes.
Posted in Weblogs Forum, Sep 27, 2004 2:27 PM
It sounds like you're talking about the effects of testable code. You know when you're writing tests for it whether it's testable. And if you're writing tests at the same time as development, then you keep reworking the code until it is testable.But what about going back and writing tests for code that already exists? What makes the class...
Posted in Weblogs Forum, Sep 27, 2004 12:17 PM
Your code sucks if it isn't testable.So this begs the question ... what makes code testable?The best answer I found deals with complexity due to method paths and dependencies.For method paths, any information on McCabe's cyclomatic complexity calculations is extremely helpful. Google is your friend here, as are programs such as JavaNCSS and...
Posted in Weblogs Forum, Jun 28, 2004 9:29 AM
Time doesn't exist.I didn't understand what you were trying to get at in this section at all. What time? Development time? Run time? Communication time? Time to respond? I'm not even sure what other question to ask. Any clarifications would be appreciated.
4 pages [ 1 2 3 4 Next ]
Advertisement