What's the difference between Property and Attribute
-
Quote:
So a bug?
No, no. A Bug is an "undocumented feature"; a "feature" is just something that might or might not work.
- I would love to change the world, but they won’t give me the source code.
If the undocumented feature is working, is it still a bug?
Wrong is evil and must be defeated. - Jeff Ello
-
a property is, well a property - the land under your house. Can't move it, it's fixed. an attribute is the house, can replace it, can completely remove it, grass is an attribute, a hole in the proptery is an attribute - all those can be changed. sooo, everything about your car is an attribute. The fact it is a car is a property. ok, can get silly and ask "what if I remove all the wheels, is it still a car?" well, it weelie is still a car, just missing some of it's attributes (so not a very useful car).
Message Signature (Click to edit ->)
What if I added some more properties and turned it into a boat and a helicopter all at once? Also it's important that it runs on raspberry juice (or whale oil) and has a robot as the pilot[^].
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
den2k88 wrote:
property, attribute are mostly interchangeable AFAIK
disagree, it's contextually dependent. Example: a yellow banana property: banana - it can not be anything else (excluding if destroyed) attribute: color: yellow - the color of the banana can change - left alone will become brown, black, slime, destroyed but the color itself (not color of the banana) is a property. yellow is yellow, it can be no other.
Message Signature (Click to edit ->)
-
When you list up the someone's inner properties, it's a tribute. * Do not bother, I'm already gone *
I rather liked this one. bookmarked.
-
I was hoping one was more related to nouns and the other one to adjectives or adverbs
Wrong is evil and must be defeated. - Jeff Ello
Isn't the English language fun! :-D
"When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid." Ignorant - An individual without knowledge, but is willing to learn. Stupid - An individual without knowledge and is incapable of learning. Idiot - An individual without knowledge and allows social media to do the thinking for them.
-
den2k88 wrote:
property, attribute are mostly interchangeable AFAIK
disagree, it's contextually dependent. Example: a yellow banana property: banana - it can not be anything else (excluding if destroyed) attribute: color: yellow - the color of the banana can change - left alone will become brown, black, slime, destroyed but the color itself (not color of the banana) is a property. yellow is yellow, it can be no other.
Message Signature (Click to edit ->)
-
They other way around maybe.
-
I was hoping one was more related to nouns and the other one to adjectives or adverbs
Wrong is evil and must be defeated. - Jeff Ello
Nope! It's just that simple. Two words for the same thing; just like "motorcar" and "automobile". The English language has a lot of redundancy because we stole a lot of our words from several different languages so we end up with a lot of duplicate use cases.
- I would love to change the world, but they won’t give me the source code.
-
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello
I agree that they're pretty much synonymous in everyday usage. But... What are the properties of _A_ car? What are the attributes of _THIS_ car?
-
When you list up the someone's inner properties, it's a tribute. * Do not bother, I'm already gone *
If you have a property, you will have to pay a tribute :rolleyes: :rolleyes:
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello
a property is an "intrinsic" quality of a subject and an attribute is a quality of the subject perceived by an observer? they can be identical, but there are also chances that they differ ...
Find more in V-NET: connects your resources anywhere[^].
-
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello
I was thinking they were both characteristics as I read through all the responses... So I had to google both and read the various definitions... Some even went on to compare to a virtue, so sorry that I do not have. Anyways this about sums up that they are one in the same, only real difference is the contexts they get used in, their lineage, and popularity.
Google
Quote:
an attribute, quality, or characteristic of something.
[define: property - Google Search](https://www.google.com/search?q=define%3A+property)
Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional
-
a property is, well a property - the land under your house. Can't move it, it's fixed. an attribute is the house, can replace it, can completely remove it, grass is an attribute, a hole in the proptery is an attribute - all those can be changed. sooo, everything about your car is an attribute. The fact it is a car is a property. ok, can get silly and ask "what if I remove all the wheels, is it still a car?" well, it weelie is still a car, just missing some of it's attributes (so not a very useful car).
Message Signature (Click to edit ->)
I'd say the house is a property, the windows are an attribute, actually the land is the equivalent of field which ties in quite nicely with .net.
-
Surely the type would be Fruit, as part of an assembly of Healthy in a project called Food?
-
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello
Did you consider trying the obvious? Google: define property Result: noun 1. a thing or things belonging to someone; possessions collectively. 2. an attribute, quality, or characteristic of something.
-
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello
A property is a proper, inherent quality of an object. Like the lyrics and music of a song - if you change those, it is a different song. An attribute is a quality attributed to an object, like the name of song or what you call it. The song called by a different name would sound just as sweet. The property is the piece of land, no matter who is attributed as the owner of that land. There is certainy a diffuse grey zone: If you have a look at the property, you may see its size by yourself. You may report that it is a thousand by two thosand feet. I might report that it is three hundred by six hundred meters. The proper size of the land doesn't change, but you and put different labels, different attributions, on the land to indcate its its size. Its real size is a property, but a measurement of that size, in some unit, may be termed an attribute. I am not quite sure about that - the owner certainly has little to do with the lot itself, and is clearly an attribute. A measurement, whether in feet or meters, does represent a proper quality quite directly. But there is a limit to the processing before it becomes a non-proper quality: The lyrics is a proper quality of the song, a two summary in two sentences can be attributed to the song, but is not a proper quality of the song. You have to draw the line somewhere, even if you do it with a gray color, wide and untidy bush. In any case, .net really got it the wrong way: The "real" quality inside the object is referred to as something attributed to the object, while a processing of the "real" object quality, presenting a quality that is not "real", is called a property, a proper value. It should have been the other way around.
-
A property is a proper, inherent quality of an object. Like the lyrics and music of a song - if you change those, it is a different song. An attribute is a quality attributed to an object, like the name of song or what you call it. The song called by a different name would sound just as sweet. The property is the piece of land, no matter who is attributed as the owner of that land. There is certainy a diffuse grey zone: If you have a look at the property, you may see its size by yourself. You may report that it is a thousand by two thosand feet. I might report that it is three hundred by six hundred meters. The proper size of the land doesn't change, but you and put different labels, different attributions, on the land to indcate its its size. Its real size is a property, but a measurement of that size, in some unit, may be termed an attribute. I am not quite sure about that - the owner certainly has little to do with the lot itself, and is clearly an attribute. A measurement, whether in feet or meters, does represent a proper quality quite directly. But there is a limit to the processing before it becomes a non-proper quality: The lyrics is a proper quality of the song, a two summary in two sentences can be attributed to the song, but is not a proper quality of the song. You have to draw the line somewhere, even if you do it with a gray color, wide and untidy bush. In any case, .net really got it the wrong way: The "real" quality inside the object is referred to as something attributed to the object, while a processing of the "real" object quality, presenting a quality that is not "real", is called a property, a proper value. It should have been the other way around.
-
I would argue that the color/colour would be a calculated field that is based on the age of the banana. It actually seems like it should really be more than a color to account for spots.
class Banana {
DateTime _estimatedPollinationDateTime;
DateTime _pickedDateTime;Color getBaseColor() {
return colorFunc(_pickedDateTime);
}
Pattern getPattern() {
... 10% spotted
}
Boolean isEdible() {
// always!
return true;
}
} -
No, I don't mean in .Net, I mean semantically. Say for example I want to describe a car. It has a colour, top speed, engine size, length, leather seats and so on. When is it an attribute and when is it a property? Or is there an even better word?
Wrong is evil and must be defeated. - Jeff Ello