For Programmers: Free Programming Magazines  


Home > Archive > Cobol > February 2007 > Re: My First C# (warning - long post)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: My First C# (warning - long post)
andrewmcdonagh

2007-02-08, 6:55 pm

On Feb 8, 1:27 am, LX-i <lxi0...@netscape.net> wrote:

snipped...

> That's definitely what I was looking for. :) Thanks again for breaking
> it down for me.


My pleasure...
>
> (Did you look at the "second C#" post - and if so, does it look like I'm
> on the right track?)


I've given it a quick scan but will need to have another look before
commenting. Might be worth while you posting an update ...but if we
can keep it in this thread, it will help keep the topic focused and
together.

The one main OO design point that you should eventually spot from
where I'm taking you, is that numerous small classes with a single
responsibility, when working together, can create a very simple but
powerful design, with lots of code reuse.

As a top of head metric, my designs tend to consist of 40% of classes
containing a single method, which is no longer than a dozen lines of
code. Another 55% would contain at most 6 methods, with the remaining
5% of classes having more than 6 methods.

The 95% classes would having methods of no more than a dozen lines
and all hold onto the **Single Responsibility Principle. The last 5%
would be 'dodgy' and need refactoring...but then lifes too short and
we do have to actually ship stuff!

Regards

Andrew
** Single Responsibility Principle - http://www.objectmentor.com/
resources/articles/srp.pdf

Howard Brazee

2007-02-14, 6:55 pm

On Wed, 14 Feb 2007 11:43:31 -0600, LX-i <lxi0007@netscape.net> wrote:

>
>Macs don't use partitions?


I don't think I can use Partition Magic on a Mac. It also appears
that the advantage of partitioning is less with a Mac - but it is also
more work than it was worth in the past on a Windows machine.

But I am still new at Macintoshes. My wife got hers last month. She
has Parallels which allows her to set up virtual partitions for
different operating systems.

Ever since Windows came out, I have had it on D:, figuring that
separating the OS with programs and data was a good thing. But it's
harder and harder to do this as more things use the registry.
Upgrading Windows machines has been tough, although I have read that
the Vista upgrade is closer to being a new installation.

I have also had Windows machines with an OS/2 partition, but on a Mac,
I can do that under Parallels (although now I would use Linux
instead).
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com