Questions tagged [object]
An object is any entity that can be manipulated by commands in a programming language. An object can be a value, a variable, a function, or a complex data-structure. In object-oriented programming, an object refers to an instance of a class.
object
65,155
questions
-3
votes
0
answers
21
views
Is it bad practice to use inner objects in OOP? [closed]
I do not know how to correctly phrase the title, so I will give an example.
In Backbone JS, a common example looks like this:
aModel = Backbone.Model.extend()
In my research, it seems like it is bad ...
2
votes
0
answers
9
views
Different basicblocks share the same object ID in LLVM
I use the following code to print the basicblocks in my LLVM module's object ID. To my surprise, different basicblocks share the same object ID, how could that be possible?
I got
foo
Block ID: ...
-2
votes
1
answer
48
views
In JavaScript, how do I check if there are objects with the same value in an array? (a little different) [closed]
How do I check if there are objects with the same value "name" in an array?
Input:
[
{
"name": "blabla",
"value": "537,52"
},
...
-3
votes
0
answers
39
views
How could I filter out a text file to add instances of an object? [closed]
I'm currently doing an assignment where I create a takeaway shop. People can load their own text files that has menus for different takeaway shops, for example one text file has the menu for one ...
0
votes
0
answers
6
views
YamlDotNet - how to handle versioning after object update?
I'm using YamlDotNet in my projects for quite a while, though I could use your help with the following issue I'm facing as one of the projects is evolving.
Imagine I'm serialising the following ...
0
votes
0
answers
14
views
Vscode not importing System.Object or any other library
I am encountering an issue with Visual Studio Code where it is not recognizing inherited files correctly. Initially, I had a problem where, in multiple places, class A inherits from class B, but VS ...
-1
votes
0
answers
20
views
Output an object's value without looping [duplicate]
I'm trying to var_dump the guid value in this object without setting up a foreach loop. I think the ["2"] key is throwing me off. This data is coming from the Toast API. Any help would be ...
0
votes
1
answer
52
views
R Class Method Without Object Creation
In R Reference class, it seems a class object must be created before using any of its methods. Is there a way to avoid object creation, like in Python, at least for cases which the reference class has ...
4
votes
1
answer
94
views
Assign base object without changing inherited ones?
How valid is it to assign a new object to a base one, without changing the inherited ones?
The example below works as expected, but is it by chance?
This example is simple, but is there any situation ...
0
votes
0
answers
26
views
How do get search filter data in es6
// Filter rows based on string values and exclude from whiteList
const whiteList = rows.map(sel => sel.RuleAutoID); // Array of IDs to exclude
console.log('whiteList', whiteList);
// Assuming you'...
-2
votes
0
answers
76
views
Are there objects for primitive data types? [duplicate]
If the object represents a data type, is the variable for a primitive data type like an integer also an object representing this type, or do objects not represent primitive data types?
// Let's assume ...
0
votes
0
answers
44
views
Python multiprocessing pool with class objects
This code is runnable
I get an empty array "link"
although I should get an array with objects in it,
when I print link in func_b it is not empty
Self should refer to the object, but I guess ...
0
votes
0
answers
11
views
What kind of Rest APIs used to upload file into the Object Storage in Oracle APEX. Note : No PAR URL/API [closed]
I need to find wat kind of Javascript API's used to upload files into the Object storage in Oracle APEX technology.
And good to have JavaScript optimized code for this.
I need only source code or name ...
-2
votes
2
answers
42
views
I want to return a key using Lodash when it contains a particular value
I have an object like this:
const obj = {
'MONEY-OUT': {
USD: ['a', 'b', 'c'],
EUR: ['d', 'e', 'f'],
},
'MONEY-IN': {
USD: ['g', 'h', 'i'],
EUR: ['j', 'k', 'l'],
},
};
and I ...
3
votes
2
answers
61
views
Traverse over tree type structured data uing JavaScript
I have a data set having parent and nested children in it. The purpose of this data is to traverse over parent to -> child1 to-> Child1Child .....
-> child2 to -> child1 to -> child2 ...