|
Coffee and cake. Peaches.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Is a Finnish programmer Nerdic?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Are programmers who emigrate to Finland Finnished?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
There's Norway to tell for sure.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
Norway! - They are all cool up there!
But could he use a denMark-up language?
Socialism is the Axe Body Spray of political ideologies: It never does what it claims to do, but people too young to know better keep buying it anyway. (Glenn Reynolds)
|
|
|
|
|
Turnips are quite swede-ish.
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
|
|
Only when he wants to scan di code.
|
|
|
|
|
Apparently they are really good at using a certain UNIX editor, they are VI-kings!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
is that a persuaden(t) question ?
|
|
|
|
|
A know a picture of a bird is a scanned in avian.
|
|
|
|
|
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?
|
|
|
|
|
There is none. Field, property, attribute are mostly interchangeable AFAIK.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
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 ->)
|
|
|
|
|
Nah, Banana would by the type and Colour would be a property/attribute of the Banana type
|
|
|
|
|
Surely the type would be Fruit, as part of an assembly of Healthy in a project called Food?
|
|
|
|
|
Sounds like a fun weekend project, just need to spend 8 hours coming up with a solution name now
|
|
|
|
|
Only if the only thing you are going to do with fruit is classify them. If fruits have behavior, then banana is a derived class of fruit, and color is an attribute of banana. Your solution isn't very object oriented.
|
|
|
|
|
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() {
return true;
}
}
|
|
|
|
|
property is the value of an attribute?
modified 20-Oct-19 21:02pm.
|
|
|
|
|
They other way around maybe.
modified 7-Mar-19 14:10pm.
|
|
|
|
|
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 ->)
|
|
|
|
|
Lopatir wrote: Can't move it, it's fixed. In .Net, properties can have get and set methods which means they are not treated that way, in .Net at least.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
OP: Quote: No, I don't mean in .Net, I mean semantically.
Message Signature
(Click to edit ->)
|
|
|
|