|
In C# or C++ we have objects, instances of classes that are live in memory. The kernel also has objects, like interrupt objects. I wondered if these kernel objects can be thought of as we C# or C++ programmers objects?
Started by Tony on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can organize your work in objects, after all, is an 'object....
Objects are a state of mind.
Well, kernel/C object models useThe short answer is 'yes'.
An object without some sort of binding of dispatch to objects.
|
|
I have an array of objects. If I call unset($array), will it unset all objects in the array AND the array or just the array? Let's assume these objects are referenced nowhere else.
Started by Chad Johnson on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, something.
Otherwise no.
If that array contains the only reference to the object, then yes.
|
|
I'm new to DDD and trying hard to understand some of the concepts. How do you determine in your domain what objects are Entity objects and which ones are Value objects, and how exactly are they treated differently?
Started by Micah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As I see it domain objects basically represent nouns of your business domain and do have an identity, whereas value objects do not carry any special meaning to the business (think MonetaryAmount.
|
Ask your Facebook Friends
|
In my Repositories, I am making assignments to my domain objects from the Linq Entity queries. I then have a service layer to act on these object returned from repositories.
Should my Domain objects be in the repository like this? Or should my repositories...
Started by zsharp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One i had a seperate conversion layer (it was not a one on one conversion and the objects were this related question: http://stackoverflow.com/questions/524603/irepository-confusion-on-objects-returned able to do some pretty interesting....
|
|
How would you call the constructor of the following class in these three situations: Global objects, arrays of objects, and objects contained in another class/struct?
The class with the constructor (used in all three examples):
class Foo { public: Foo...
Started by jeremy Ruten on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Arrays of objects There’s no way....
That way, you can control the time of creation.
It’s better to use functions (or even other objects) as factories instead.
On the other hand, try to avoid this.
Global objects Yours is the only way.
|
|
I'm following a video tutorial on data binding with Visual Studio / Expression Blend. In the tutorial the application's custom objects are listed when the presenter clicks on the "+CLR Object" button, but in when I do it, my application's objects are ...
Started by Edward Tanguay on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
That your object also has a default constructor - this problem drove me a bit mad until I realised not show it up public MyThing(int item){ _item = item; }
//Expression will only list your object if you.
|
|
Should a business object contain a reference to other objects (as in the id field references another database record) or should it have an instance of the actual objects.
For example:
public class Company { public int Id { get; set; } public CompanyStatus...
Started by Anthony on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
When creating Business Layer objects....
Some data should be stored as a copy of the original object, some should.
It depends on the data.
If you're talking about C#, then aggregating an object means you're storing a reference to it.
|
|
Designing a new system from scratch. I'll be using the STL to store lists and maps of certain long-live objects.
Question: Should I ensure my objects have copy constructors and store copies of objects within my STL containers, or is it generally better...
Started by Stéphane on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
You alsoIf you're storing....
If your objects are small, and doing a copy of the object of an object when it is added to the container, and manages the lifetime of those objects for you.
This really depends upon your situation.
|
|
I've got a list of Python objects that I'd like to sort by an attribute of the objects themselves. The list looks like:
>>> ut [<Tag: 128>, <Tag: 2008>, <Tag: <>, <Tag: actionscript>, <Tag: addresses>, <Tag...
Started by Nick Sergeant on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I was surprised to read.
More on sorting by keys »
Add rich comparison operators to the object class, then use sort() method)
is many times faster than adding rich comparison operators to the objects.
|
|
I have a set of nonGUI objects which have a one to one realtionship with GUI objects. All events are routed through the top level window.
Many ( not all ) events occuring on the GUI object result in calling a method on the associated object.
Some methods...
Started by BubbaT on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the object mention "embedding" references ....
Your "non-GUI" object(s) are the Model.
This is where you keep all, which then routes them to the Model .
Your "GUI" object(s) are the View.
Are describing Model-View-Controller.
|