comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: Re: What is your opinion on Global Objects?
Date: Thu, 20 Nov 2014 12:33:48 -0800 (PST)
Date: 2014-11-20T12:33:48-08:00	[thread overview]
Message-ID: <a5e96019-1451-4949-8e55-c05912bdb33f@googlegroups.com> (raw)
In-Reply-To: <Joxaw.777571$yK.135556@fx14.iad>

For what it's worth, I'm in the "pass everything as an argument" camp (and really functional programming in general), and loathe the 'hidden state' setup, for the following reasons:
1. You are hardcoded to a particular implementation (i.e. no dispatching)
2. You always end up needing a second object, no matter much you think you don't think you will.
3. The majority of the program becomes impure
4. Things that access global objects are way more complex to try and test
5. Everything is compile-time constant (i.e. no creating or deleting things dynamically).

-sb



  parent reply	other threads:[~2014-11-20 20:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18  1:36 What is your opinion on Global Objects? Hubert
2014-11-18  2:52 ` Jeffrey Carter
2014-11-18  3:08   ` Hubert
2014-11-18  3:16     ` Shark8
2014-11-18  5:09     ` Jeffrey Carter
2014-11-18 11:23     ` Brian Drummond
2014-11-19  2:50       ` Hubert
2014-11-19  3:03         ` Jeffrey Carter
2014-11-19  9:13           ` Hubert
2014-11-19 10:22             ` J-P. Rosen
2014-11-19 17:37             ` Jeffrey Carter
2014-11-20 16:34         ` Stephen Leake
2014-11-20 21:11           ` Adam Beneschan
2014-11-21 15:25             ` Stephen Leake
2014-11-21 21:53             ` Randy Brukardt
2014-11-21  1:25           ` Hubert
2014-11-21  3:00           ` Brad Moore
2014-11-19 10:11   ` Jacob Sparre Andersen
2014-11-20  6:21     ` Hubert
2014-11-18  8:54 ` Dmitry A. Kazakov
2014-11-20 20:33 ` sbelmont700 [this message]
2014-11-20 21:35   ` J-P. Rosen
2014-11-21  1:02     ` sbelmont700
2014-11-21  1:31       ` Hubert
2014-11-21  9:01     ` Dmitry A. Kazakov
2014-11-22  7:46       ` J-P. Rosen
2014-11-22  9:02         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox