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,191
questions
1
vote
2
answers
583
views
What can it mean if an object is scriptable?
Exactly what the title says. Note, this is not about "subscriptable" objects.
7516
votes
39
answers
3.3m
views
How do I remove a property from a JavaScript object?
Given an object:
let myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI",
"regex": "^http://.*"
};
How do I remove the property ...
1007
votes
77
answers
930k
views
How can I determine equality for two JavaScript objects?
A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?
Stack Overflow question Is ...
13
votes
6
answers
16k
views
What is a component
I listen to the podcast java posse, on this there is often discussion about components (note components are not (clearly) objects). They lament the fact that Java does not have components, and ...
7
votes
8
answers
9k
views
Java: Save objects in a textfile? Are there readymade solutions?
I want to save the objects I generated in a program. After restart the App should load automaticly all Objects in an Array. I want to write them in a file and parse them after restart. Are the other ...
21
votes
7
answers
46k
views
Python object attributes - methodology for access [closed]
Suppose I have a class with some attributes. How is it best (in the Pythonic-OOP) sense to access these attributes ? Just like obj.attr ? Or perhaps write get accessors ?
What are the accepted naming ...
10
votes
7
answers
12k
views
How do you implement audit trail for your objects (Programming)?
I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc. I implemented an audit trail object that is triggered on
OnSaving
OnDeleting
...
3
votes
2
answers
2k
views
LabVIEW Objects
I have a base class object array into which I have typecasted many different child class objects and am passing it to a sub vi. Is there any way by which I can find out the original type of the object ...
77
votes
16
answers
160k
views
Determining whether an object is a member of a collection in VBA
How do I determine whether an object is a member of a collection in VBA?
Specifically, I need to find out whether a table definition is a member of the TableDefs collection.
195
votes
8
answers
100k
views
PHP: Storing 'objects' inside the $_SESSION
I just figured out that I can actually store objects in the $_SESSION and I find it quite cool because when I jump to another page I still have my object. Now before I start using this approach I ...
2
votes
3
answers
15k
views
Use custom objects as the source for Microsoft Reports (.rdlc)
In some instances, I prefer working with custom objects instead of strongly typed datasets and data rows. However, it seems like Microsoft Reporting (included with VS2005) requires strongly typed ...
28
votes
9
answers
42k
views
Mysql results in PHP - arrays or objects?
Been using PHP/MySQL for a little while now, and I'm wondering if there are any specific advantages (performance or otherwise) to using mysql_fetch_object() vs mysql_fetch_assoc() / mysql_fetch_array()...
9
votes
2
answers
9k
views
Php Check If a Static Class is Declared
How can i check to see if a static class has been declared?
ex
Given the class
class bob {
function yippie() {
echo "skippie";
}
}
later in code how do i check:
if(...
5161
votes
67
answers
3.0m
views
What is the most efficient way to deep clone an object in JavaScript?
What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but that's non-standard and only supported by Firefox. I've done things like obj = JSON.parse(...
230
votes
12
answers
269k
views
Accessing Object Memory Address
When you call the object.__repr__() method in Python you get something like this back:
<__main__.Test object at 0x2aba1c0cf890>
Is there any way to get a hold of the memory address if you ...