Click here to Skip to main content
15,886,799 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do you create 2 random values Pin
Christian Graus13-Jul-09 16:30
protectorChristian Graus13-Jul-09 16:30 
AnswerRe: How do you create 2 random values Pin
PIEBALDconsult13-Jul-09 17:30
mvePIEBALDconsult13-Jul-09 17:30 
QuestionIs there any way to monitor the incoming ping requests? [modified] Pin
Beyondard13-Jul-09 14:52
Beyondard13-Jul-09 14:52 
AnswerRe: Is there any way to monitor the incoming ping requests? Pin
Super Lloyd13-Jul-09 17:22
Super Lloyd13-Jul-09 17:22 
QuestionUse of statics and singletons Pin
saxisa13-Jul-09 12:04
saxisa13-Jul-09 12:04 
AnswerRe: Use of statics and singletons Pin
Christian Graus13-Jul-09 12:13
protectorChristian Graus13-Jul-09 12:13 
GeneralRe: Use of statics and singletons Pin
N a v a n e e t h13-Jul-09 18:02
N a v a n e e t h13-Jul-09 18:02 
AnswerRe: Use of statics and singletons Pin
Luc Pattyn13-Jul-09 12:44
sitebuilderLuc Pattyn13-Jul-09 12:44 
Hi,

I agree with what Christian said. I'll add some in my own words:

1. I don't mind static classes or singleton classes. When there is no state at all I think I'd prefer a static class over a singleton, since there is no real use in an instance then.

2. I don't mind large classes if they make sense. If they can be logically split into smaller ones, I'd go for that. Although it puts more burden on the user (remembering which method is in which class).

3. I would mind large methods very much. When refactoring, I'd go for smaller methods, and probably some internal helper classes. And use many files. I tend to keep files smaller than 400 lines.

4. yes namespaces are like packages (without the relation to folders though); having only a few does not hurt, until you get name clashes.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: Use of statics and singletons Pin
PIEBALDconsult13-Jul-09 13:23
mvePIEBALDconsult13-Jul-09 13:23 
Questiontoolbar + menu + task handler best practice Pin
swjam13-Jul-09 11:59
swjam13-Jul-09 11:59 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 12:47
sitebuilderLuc Pattyn13-Jul-09 12:47 
AnswerRe: toolbar + menu + task handler best practice Pin
Luc Pattyn13-Jul-09 13:27
sitebuilderLuc Pattyn13-Jul-09 13:27 
QuestionHowto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 11:34
NewJavaBean13-Jul-09 11:34 
AnswerRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 11:54
sitebuilderLuc Pattyn13-Jul-09 11:54 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:20
NewJavaBean13-Jul-09 12:20 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:34
sitebuilderLuc Pattyn13-Jul-09 12:34 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 12:42
NewJavaBean13-Jul-09 12:42 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 12:49
sitebuilderLuc Pattyn13-Jul-09 12:49 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 13:03
NewJavaBean13-Jul-09 13:03 
GeneralRe: Howto write text into a picturebox on runtime Pin
Luc Pattyn13-Jul-09 13:24
sitebuilderLuc Pattyn13-Jul-09 13:24 
GeneralRe: Howto write text into a picturebox on runtime Pin
NewJavaBean13-Jul-09 14:53
NewJavaBean13-Jul-09 14:53 
AnswerRe: Howto write text into a picturebox on runtime Pin
Christian Graus13-Jul-09 14:25
protectorChristian Graus13-Jul-09 14:25 
QuestionPathGradientBrush and irregular shapes Pin
JimLaVine13-Jul-09 10:54
JimLaVine13-Jul-09 10:54 
AnswerRe: PathGradientBrush and irregular shapes Pin
Christian Graus13-Jul-09 10:59
protectorChristian Graus13-Jul-09 10:59 
AnswerRe: PathGradientBrush and irregular shapes Pin
Luc Pattyn13-Jul-09 11:25
sitebuilderLuc Pattyn13-Jul-09 11:25 

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.