I’m still learning Ruby, and I’m curious about whether it is appropriate to use a class variable, constant, or local variable in this scenario.
This question already has answers here: How to print value of global variable and local variable having same name?
Hi I worked through Michael Hartl\'s RAILSTUTORIAL book and I have a question about how he builds the user\'s show page.
I am absolutely dumbfounded by why the following is happening: Here is my code: def add_one(array): new_array = array
I am using define to create a macro. However, within a define construct, I am not able to create a variable. Assigning a variable doesn\'t cause an error, but when I try to use it a bit later, its val
I\'m a bit confused about allocating memory for my variables. If e.g. I\'m creating a large data structure (an array, a struct, an object, etc.), and I\'m initializing it in main()\'s scope, should I
Again i run into an error i don\'t mean to bug anyone but I\'m getting an error on this code: using System;
I have a method and want to examine variables inside it without debugging - is it possible in Java? I do not want to write tons of code like:
I\'m learning Java and I wanted to create a very basic Calculator to calculate the air pressure at a certain height above sea level. However every time I try to build the code, I get an error about th
I use emacs+AucTeX to write LaTeX files. At the bottom of the .tex file are some local variables: %%% Local Variables: