Variable Scope

I've often found new programmers have trouble with variable scope. It happens no matter what language you work in and every environment has its own slightly different rules. So, be sure to check out my recent article on Digital Web, aptly titled Variable Scope for New Programmers.

A couple examples:

  • C#: variables declared inside an if or while statement aren't available outside the statement.
  • ActionScript: you have timeline and levels scope to worry about.
Published October 17, 2005 · Updated September 14, 2006
Categorized as Writing
Short URL: https://snook.ca/s/434

Conversation

1 Comment · RSS feed
Henrik said on October 22, 2005

Handy for new developers... :)

No C# examples in the article though *sigh*

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.

Want to learn about scaling CSS for large projects?

I'm available for full and half-day workshops on scalable CSS architecture. I can provide on-site training for your team. Interested?
Get in touch.