User loginNavigation |
Return of the Global Variables?
This is bugging the heck out of me, so I wondered if anybody else complained about this before and I found somebody.
For the last two hours, under the heading of object-oriented, encapsulated code without global variables, I have been reading spaghetti code. Every class method I look at involves a few private instance variables whose lifetimes are as long as the object itself. Ok, the scope is limited to the class methods only, but for a class of a certain size, how is this any different from global variables? PS: No, they are not static member fields. In general, I have nothing against singletons. By Koray Can at 2005-12-30 23:42 | LtU Forum | previous forum topic | next forum topic | other blogs | 15154 reads
|
Browse archivesActive forum topics |
Recent comments
1 hour 3 min ago
5 hours 14 min ago
17 hours 48 min ago
17 hours 50 min ago
18 hours 18 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 2 hours ago
1 day 12 hours ago
1 day 13 hours ago