forum-msg-id-133358-edit

Original date:2019-01-05 19:13:10 Edited by: petelomax Subject: Re: Procedure, function and return

A quick note on global variables/side effects and "bad" programming:

Imagine your program was like a kitchen, and global variables are like the kitchen floor. Now some things actually deserve to be left on the kitchen floor, like a dustpan & brush, that massive box of washing powder, a mousetrap, and nobody cares much. But now imagine storing everything in your kitchen on the kitchen floor, and likewise it is not "some" global variables and side effects, it is "too many" that makes it "bad".

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu