l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Sep 20 14:33

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] global variables in C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] global variables in C

On Fri, Sep 20, 2002 at 12:56:46PM -0700, Jeff Newmiller wrote:
> I don't expect you to draw it in the wrong position, but do you mean to 
> say you never use offscreen bitmaps?

Confidentially...  No, not really. ;^)  SDL handles double-buffering for you
in most environments.  Tux Paint's another story, but then again, most
of the things I draw onto the canvas (which is displayed within the window)
I NEVER draw _directly_ into the window, and vice-versa.)

> For small programs, a limited number of global variables can be a good
> thing.  Global variables become bad when you begin to reach a certain
> level of complexity, and learning how to get around them without building
> functions that use stupidly long lists of arguments is where skill in
> software engineering starts to show its value.  The steps between here and
> there are small, logical, and compelling... but there are a lot of steps,
> so you will probably only make them when you see their value.

I admit that I'm really not a very skillful software engineer.

My typical coding session begins with starting to code, rather
than thinking much about the design.

Of course, most of what I write are games, and are kind of 'disposable.'
Once I actually finish the project, it's finished, so I don't have to
deal with it much later - there's not much of a problem with scale.

(A few examples come up where scale was a big issue, and I've never finished
the game.  BoboBot and Super Tux come to mind.  But, I vow to one day
complete them!)

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.