static instead of dynamic classes

Post comments about Shareaza code and discuss with other developers.
Forum rules
Home | Wiki | Rules

static instead of dynamic classes

Postby siavoshkc » 29 Mar 2010 19:10

Some classes should be static in the code while they are not. Like scheduler and security (Network?). Only one instance of this classes is needed. I made CScheduler static for experiment. We can convert classes to static gradually. Please tell me your idea about it.
siavoshkc
 
Posts: 347
Joined: 02 Nov 2009 09:37

Re: static instead of dynamic classes

Postby raspopov » 04 Apr 2010 06:59

Heh, what do you mean under "static" term?
User avatar
raspopov
Project Admin
 
Posts: 945
Joined: 13 Jun 2009 12:30

Re: static instead of dynamic classes

Postby brov » 04 Apr 2010 10:41

Maybe reworking some classes to follow 'singleton' pattern...
brov
 
Posts: 87
Joined: 05 Jul 2009 12:15


Re: static instead of dynamic classes

Postby raspopov » 04 Apr 2010 14:32

So its useless changes. Don't play with code, especially in such big project as Shareaza. Shareaza uses paradigm of several global and public "server" objects. Rejected.
User avatar
raspopov
Project Admin
 
Posts: 945
Joined: 13 Jun 2009 12:30

Re: static instead of dynamic classes

Postby xhk » 06 May 2010 05:56

I think the singleton is better than static classs
xhk
 
Posts: 1
Joined: 02 May 2010 19:15


Return to Development Discussion

Who is online

Users browsing this forum: No registered users and 1 guest