The scope tag has no wiki summary.
0
votes
1answer
139 views
Nested classes vs namespaces
Is it good to use nested classes or should I use namespaces instead?
In context:
I have a templated codec loader and a codec have In objects and Out objects
template<class TypeOfData>
class ...
36
votes
8answers
2k views
What did programmers do before variable scope, where everything is global?
So, I am having to deal with seemingly archiac language (called PowerOn) where I have a main method, a few datatypes to define variables with, and has the ability to have sub-procedures (essentially ...
17
votes
9answers
1k views
Isn't class scope purely for organization?
Isn't scope just a way to organize classes, preventing outside code from accessing certain things you don't want accessed?
More specifically, is there any functional gain to having public, protected, ...
4
votes
3answers
122 views
Misunderstanding Scope in JavaScript?
I've seen a few other developers talk about binding scope in JavaScript but it has always seemed to me like this is an inaccurate phrase. The Function.prototype.call and Function.prototype.apply don't ...
4
votes
2answers
303 views
What is the best way to handle last minute changes to product scope?
What is the best way to handle changes to product requirements or scope during or after User Acceptance Testing (UAT)? How dangerous is it to make those changes, and how can the danger be mitigated?
2
votes
9answers
516 views
Confusion of scope of a variable: Is Global Variable a solution?
I am newly learning C Programming.
When we have a C Program with lot of functions, parameter passing, calling and all - It becomes a great problem as to which variable must be declared where.
My ...
-1
votes
7answers
183 views
How do you handle / what do you charge for documentation, training, warranty, changes in scope etc… [closed]
I am working with a client right now that wants me to sign a contact with a warranty for a year for no additional charge. As well as any reasonable changes he wants during the contract that are ...
2
votes
3answers
245 views
Scope of work contents in freelance development
One of my clients demanded to append screen shots of UI in the SOW. Also, I was asked to give a workflow diagram for the same. The project I am about to take is relatively small and my question is,
...
4
votes
3answers
1k views
What is meant by Scope of a variable?
I think of the scope of a variable as -
"The scope of a particular variable is the range within a program's source code in which that variable is recognized by the compiler".
That statement is ...
4
votes
2answers
255 views
What is required for a scope in an injection framework?
Working with libraries like Seam, Guice and Spring I have become accustomed to dealing with variables within a scope. These libraries give you a handful of scopes and allow you to define your own. ...
4
votes
2answers
170 views
How to deal with variables when extracting methods in to smaller methods?
This is an abstract question to clarify a refactoring concept in the ruby language. Assume in the real world that there would be many more variables and method in the Furniture Class and Refinish ...
16
votes
4answers
692 views
How to Determine # of Programmers needed for a project
How do you know how many programmers a particular project needs to be successful?
The company I work for fulfills orders for client companies. We have written an in-house warehouse management ...
10
votes
7answers
801 views
Is there a term used when internal variables are declared public and accessible?
If someone writes code so that an internal variable $_fields is accessible without using getter/setter methods, is there a proper term used to describe that?
Something polite enough to use with ...
0
votes
4answers
282 views
Is it scope creep if it has a price tag? [closed]
For my contracted project, I finished all the agreed on work-items.
They then asked for more. I agreed and put a price tag on it. (Programmers gotta eat too...)
Is it scope creep?
Or, is it only ...
5
votes
6answers
467 views
Is it OK to use dynamic typing to reduce the amount of variables in scope?
Often, when I am initializing something I have to use a temporary variable, for example:
file_str = "path/to/file"
file_file = open(file)
or
regexp_parts = ['foo', 'bar']
regexp = new ...