motz
dijous, 17. d’abril 2003

checks

ward cunningham's checks pattern language information integrity makes it pretty clear: to be meaningful takes more lines than to accept meaninglessness:

Trying to be meaningful:

weightedAverageCost
	| total weight |
	total := self weightedTotalCost.
	total isCurrency ifFalse:
		[^ExceptionalValue reporting: 'N/A'].
	weight := self totalWeight.
	(weight isNumber and: [weight isZero not]) ifFalse:
		[^ExceptionalValue reporting: 'Empty'].
		^total / weight

Accepting possible meaninglessness:

weightedAverageCost
	^self weightedTotalCost / self totalWeight

'Output will remain blank because any other output would be an attempt to attach meaning to meaningless behavior. Users will interpret unexpected blanks to mean that inputs do not apply and/or outputs are unavailable.'

... Comment

Online for 8580 days
Last update: 3/11/23 17:00
status
Youre not logged in ... Login
menu
... Home
... Tags


search
calendar
desembre 2024
dg.dl.dt.dc.dj.dv.ds.
1234567
891011121314
15161718192021
22232425262728
293031
novembre
recent updates
human "The mind is what
the brain does." (margaret boden) Mind As Machine. A History...
by motzes (3/11/23 17:00)
when industry looks old i
have no idea how i came here, but i still...
by motzes (13/12/22 21:10)
holography explained it has been
20 years since i met nils abramson and heard about...
by motzes (20/2/22 10:22)
digital dilemma as seen in
the year 2000 . Intellectual Property in the Information Age...
by motzes (28/1/22 8:56)
anti colonial connectivity "... it
was after all, the early days of Intelsat, when having...
by motzes (16/8/21 11:20)
old stories revisited ... ...
makes one search again, along the lines given. brought me...
by motzes (6/7/21 14:27)
history writing gerade
im ohr: ein interview mit verkühlter stimme. aufnahmedatum: 2016.
by motzes (30/3/20 15:42)
Nice Thanks for uploading this.
It's an amazing window on the early history of interactive...
by Kayla (1/3/20 15:51)
gibberjabber interesting, die eingefangenen bots
werden in ihrer wortwahl aggressiv.
by motzes (26/10/19 20:41)
rätsel Daniel Schwenter, Philosophischen und
Mathematischen Erquickstunden, Dritter Theil, 1653 | https://archive.org/details/bub_gb_bGM_AAAAcAAJ
by motzes (22/10/19 19:06)

RSS Feed

Made with Antville
Powered by
helma object publisher