home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / object / 4544 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  4.7 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ukulele!eaker
  2. From: eaker@ukulele.crd.ge.com (Chuck Eaker)
  3. Newsgroups: comp.object
  4. Subject: Re: Object hidden state and side effects
  5. Message-ID: <1992Dec15.224536.13554@crd.ge.com>
  6. Date: 15 Dec 92 22:45:36 GMT
  7. References: <1992Dec11.163449.18439@crd.ge.com> <1992Dec13.152136.16852@hasler.ascom.ch> <1992Dec14.175402.1889@crd.ge.com> <1992Dec15.143243.16256@heeg.de>
  8. Sender: eaker@ukulele (Chuck Eaker)
  9. Organization: GE Corporate R&D Center
  10. Lines: 88
  11. Nntp-Posting-Host: ukulele.crd.ge.com
  12.  
  13. In article <1992Dec15.143243.16256@heeg.de>, hasko@heeg.de (Hasko Heinecke) writes:
  14. |> In article <1992Dec14.175402.1889@crd.ge.com> eaker@ukulele.crd.ge.com (Chuck Eaker) writes:
  15. |> >The point is that computers cannot use "the *real* 3/4."
  16. |> 
  17. |> You wanted philosophy, so here it is: What *is* the real 3/4. What would
  18. |> Immanuel Kant say?
  19.  
  20. I'm sure Kant and other philosophers would agree that 3/4 is a rational
  21. number, and that whatever the nature of its existence, there is only
  22. one such number, it cannot be created, destroyed, copied, or changed
  23. in any way. Unlike philosophers, we don't have to worry about "realms"
  24. or "levels of existence" or such things to become clear about what we
  25. are doing.
  26.  
  27. |> 
  28. |> >My point is that the hardware things are models or representations, not
  29. |> >the values themselves.
  30. |> 
  31. |> What effects does this have on problem solving. I mean, other than the
  32. |> notion that there is more than one binary represenation for any one
  33. |> value?
  34.  
  35. It has a bearing on how we evaluate our models and solutions. If a value
  36. can be changed in our system, the system is defective no matter what its
  37. requirements are. An attribute set equal to 3 could suddenly turn out to be
  38. equal to 5 despite the fact that the system did not assign a different
  39. value to the attribute - the (now mutable) value just happened to change.
  40. Unlike Fortran, our modeling tools and languages should not allow this
  41. kind of thing.
  42.  
  43. |> 
  44. |> >Integer values are abstractions. So are family values. The values of
  45. |> >good, ok, and bad are all abstractions, immutable and eternal.  Their
  46. |> >representations should reflect these attributes.
  47. |> >
  48. |> >If marriages are represented with objects and the values of good and
  49. |> >bad are applied to them according to a GOP or any other scheme, make
  50. |> >sure that any instance of marriage can be created, destroyed, or
  51. |> >modified, and that the value good is represented by a single object
  52. |> >which cannot be created, destroyed, or modified.
  53. |> >
  54. |> >There is a fundamental difference between a data type and an object
  55. |> >class that most languages fail to capture. All the representations of
  56. |> >values represented by a data type are created (specified, etc.) when the
  57. |> >data type is defined. This is not true of the instances of an object
  58. |> >class. We know, in some sense, all the integers and all the colors.
  59. |> >We do not know all the marriages.
  60. |> 
  61. |> Oh no! Who told you the value "good" is eternal and immutable? I'm
  62. |> almost sure that the very two of us have completly different
  63. |> specifications of "good", and they are changing though time.
  64.  
  65. Immanual Kant told me. We may disagree about which things are good,
  66. and our views of whether or not something is good may change over
  67. time. But if we assign the value of good to a family value attribute
  68. of a marriage, and if the value of good mutates to something else
  69. (to be equal to the value bad, let's say) when we have not assigned
  70. a different value to the family value attribute, we will have serious
  71. doubts of the ability of our system to maintain the integrity of
  72. the data we put into it. Things which are good may come and
  73. go and may change from good to bad and back, but the value of good,
  74. whatever its details are, is eternal and immutable.
  75.  
  76. |> 
  77. |> What do you mean by saying "We know in some sense [...]?" Why don't
  78. |> we know all the marriages? Please elaborate.
  79.  
  80. As time passes, individual marriages come and go. If we had a
  81. data base of the universe, there would be constant marriage
  82. updates. But, we would not need to update the list of integers
  83. or the list of colors unless we chose a bizarre way to represent
  84. them or unless we chose, for efficiency reasons to not implement
  85. all the integers and colors that actually exist. The color
  86. green is eternal and immutable. Green things are not.
  87. Representations of the color green are not.
  88.  
  89. |> 
  90. |> Hasko
  91. |> 
  92. |> -- 
  93. |> +-------------------------------------------------------+
  94. |> | Hasko Heinecke @ Georg Heeg Objektorientierte Systeme |
  95. |> | I _never_ mean what I say - and nobody else does...   |
  96. |> +-------------------------------------------------------+
  97.  
  98. -- 
  99. Chuck Eaker / P.O. Box 8, K-1 3C12 / Schenectady, NY 12301 USA
  100. eaker@crd.ge.com        eaker@crdgw1.UUCP       (518) 387-5964
  101.