Oh, come on, guys, it's not that bad :)
Sometimes I even miss a good old-fashioned "goto".
-- Kostya
10.03.2011 0:26, TreKing ?????:
On Wed, Mar 9, 2011 at 3:15 PM, David Williams
<[email protected] <mailto:[email protected]>>
wrote:
That said, why avoid them like the plague?
Global variables are one of those things, like Singletons, that on the
surface seem to make life easier, then get abused like a step-child to
the point of making everything worse.
Used correctly, in moderation, it's often the fastest, easiest,
cleanest, and most straightforward way of doing something. Like a
simple flag indicating DEBUG vs RELEASE, for example.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en