From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx28.iad.POSTED!not-for-mail From: Hubert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is your opinion on Global Objects? References: <8561e9omp7.fsf@stephe-leake.org> In-Reply-To: <8561e9omp7.fsf@stephe-leake.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 141120-1, 11/20/2014), Outbound message X-Antivirus-Status: Clean Message-ID: X-Complaints-To: abuse@newsdemon.com NNTP-Posting-Date: Fri, 21 Nov 2014 01:25:31 UTC Organization: http://www.NewsDemon.com Date: Thu, 20 Nov 2014 17:25:26 -0800 X-Received-Bytes: 2393 X-Received-Body-CRC: 1792107137 Xref: news.eternal-september.org comp.lang.ada:23590 Date: 2014-11-20T17:25:26-08:00 List-Id: > A database connection is not; you will need to copy the database from > one object to another when you change the schema or move to a new > backend in the future. > Yes my application is a little different from what most of you probably work on. Like I said, I am working on a multiplayer game and the things that are implemented as singletons here exist absolutely only once. The reason for my question was not so much for my actual work but for future subprojects we will be doing where we want to attempt a different approach to the design, with more upfront planning and a scheme that is more like Structured Design, but with elements that allow for OOP elements, so we can't just take the old books by Yourdon et al and apply their technique, since we can't deny that there is value in small scale inheritance sometimes yet the techniques and diagrams for Structured Design don't take that into account since they are mostly from the 70s and 80s. Anyway thanks a lot everybody for the input, I didn't think of global objects as subprogram calls with internal status variables before since I am kind of preoccupied with C++ thinking and look at most everything as a self sufficient object, so it's good to get a different perspective. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com