Skip to main content

Questions tagged [scope]

In computer programming, the scope of an identifier is the part of a computer program where the identifier, a name that refers to some entity in the program, can be used to find the referred entity.

0 votes
0 answers
62 views

I'm working on a modeling app and want to provide block scope for evaluation of user entered code. I'm assuming that the user is not malicious, but error prone, like all of us. At the same time, I ...
Lowclouds's user avatar
1 vote
0 answers
109 views

Marvelous Bash does not support built-in sufficient namespace features for functions or variables to specific file/module you would find in PHP or JavaScript. Conflicts in global scopes, which are ...
Serious Angel's user avatar
2 votes
2 answers
65 views

I have some logic on my JSX for an element in a grid, if element is selected, then add to redux, if element is not selected then remove from redux... is working ok, but I sense a bad smell... ...
manuelBetancurt's user avatar
2 votes
1 answer
94 views

The Problem I have a module with several sibling classes that share a method with a similar name. These methods receive the same basic arguments, however, for a number of the sibling classes the ...
Greenstick's user avatar
5 votes
3 answers
450 views

If I use node.addEventListener('click',Wyg.Editor.nodeClickedEvent); then when node is clicked, ...
Reed's user avatar
  • 239
1 vote
0 answers
1k views

When is it better to instantiate the sftp client globally vs inside a function as shown below? What considerations favor one method over the other? For a long ...
trivial_tasks's user avatar
4 votes
1 answer
1k views

Some of the classes in my multi-tenant Asp.Net Core application depend on database repositories which in turn depend on a delegate called GetCurrentTenantKey. In ...
John Knoop's user avatar
1 vote
1 answer
1k views

There's something I completely dislike when importing a module in an interactive Python shell, typing the name of the module, hitting tab and getting the automatic completion cluttered with other ...
fortran's user avatar
  • 137
3 votes
2 answers
127 views

I am working on a choice-based simulation and players have to choose between different locations, I am pushing those choices to an array locationLog and my ...
comphonia's user avatar
  • 133
3 votes
0 answers
1k views

Stuck with the issue with memory consumption - after running joblib's Parallel, deleting results and gc.collect() -ing I still have increased memory (checking by htop for process line). Found no way ...
Nikolay's user avatar
  • 31
3 votes
3 answers
1k views

I had to do a CLI script that does something, I also had to add a validation that checks if it runs inside the Docker. After some research I found a solution that people check some processes via ...
Matt Komarnicki's user avatar
5 votes
0 answers
2k views

This code allows you monitor the progress of the Powershell Jobs you just started. One of the key features is the ability to stop the other Jobs when 1 is failed. For example, if you are running some ...
SteloNLD's user avatar
  • 151
2 votes
1 answer
249 views

I have been developing a game project (hobby) for the last 2 to 3 years. The game is using JS on the frontend and PHP on the backend. The game is turn-based and each turn is divided into 4 phases and ...
user431806's user avatar
12 votes
1 answer
4k views

I rewrote some code I posted earlier this month. It attempts to mimic C#'s nameof() by extracting names from bytecode instructions. This seems more reliable than ...
user avatar
4 votes
3 answers
4k views

I'm a fanboy of the Boost library and I've used Boost's components extensively in my C++03 project. The team decided to merge several pieces of code including my project. I will get the C++14 ...
Byoungchan Lee's user avatar

15 30 50 per page