Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
scope question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Nick Brown, post: 4659979"] But it's generally considered good form to not use global variables in Raul: I believe it would also be bad form to hit the database unnecessarily with every pageview. If It's bad form to cache data in a variable that is visible to every page, then I don't want to be good ;-) Is there a "better" way to do this than @@? Why do constants have different scopes than regular variables? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
scope question
Top