[colug-432] Great moments in computer science

Steve VanSlyck s.vanslyck at postpro.net
Wed Jun 3 09:21:32 EDT 2015


In words of one syllable, what is basically the problem with global variables? Is it simply that they're open to be changed by anything in the system?

On June 3, 2015 9:17:49 AM EDT, Rick Troth <rmt at casita.net> wrote:
>On 06/02/2015 03:38 PM, R P Herrold wrote:
>>
>http://www.safetyresearch.net/blog/articles/toyota-unintended-acceleration-and-big-bowl-%E2%80%9Cspaghetti%E2%80%9D-code
>>
>> Toyota had more than 10,000 global variables.
>
>There was a discussion on LinkedIn about the (lack of) code quality in
>embedded systems. The thread was started by a guy outside of Cleveland
>who owns a firmware company.
>
>> “And in practice, five, ten, okay, fine. 10,000, no, we're done. It
>is
>> not safe, and I don't need to see all 10,000 global variables to know
>> that that is a problem,” Koopman testified.
>>
>> -- Russ herrold
>
>I've seen global variable abuse in commercial code. (not just embedded)
>
>I am shocked to have encountered "go global" thinking among
>professional
>software developers. Kind of wonder if some aspects of object oriented
>design are knee jerk reaction the other way.
>
>-- R; <><
>
>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>colug-432 mailing list
>colug-432 at colug.net
>http://lists.colug.net/mailman/listinfo/colug-432
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20150603/65a48576/attachment.html 


More information about the colug-432 mailing list