User loginNavigation |
archivesGuy Steele on Language Design(via PLNews)
By Matthew Morgan at 2005-12-30 01:19 | History | Parallel/Distributed | Software Engineering | 22 comments | other blogs | 16961 reads
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. |
Browse archivesActive forum topics |
Recent comments
23 weeks 3 hours ago
23 weeks 7 hours ago
23 weeks 7 hours ago
45 weeks 1 day ago
49 weeks 3 days ago
51 weeks 15 hours ago
51 weeks 15 hours ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago