From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Q: type ... is new String
Date: Tue, 05 Jun 2012 14:20:14 +0200
Date: 2012-06-05T14:20:15+02:00 [thread overview]
Message-ID: <4fcdf97f$0$9521$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <1ch26v7folac1$.1gc355i72r55j.dlg@40tude.net>
On 05.06.12 11:06, Dmitry A. Kazakov wrote:
>> (All I see is subsequences of 2#bbbb_bbbb#. For the AI part,
>> I am told to produce the most likely information that the
>> originator might have intended to send.)
>
> Bad design. Don't do that.
How is producing the most likely information from a piece
of data bad design? And who am I to say "I don't do that"?
> Do not conflate
> well-defined functionality, e.g. "send over socket", "render calendar page
> on the screen" with ill-defined stuff, like what is going on in someone's
> head.
What is going on in someone's head is precisely the information
I am looking for. It so happens that this includes resource
identifiers, and here, too, I need to guess the right one, because
the transport layer conveys mistakes, omissions, and
quadruped-on-the-keyboard-effects correctly.
And, again, I must rely on guesses in order to construct objects
from input, and will reconstruct them again, and again.
Is this about a trivially correct ADT again, to be fleshed out?
I can make a sufficiently simple type for URIs, signifying nothing,
and I can map any of those resource identifiers to objects of the type.
I do not even need a behavioral description of the type; it is
exactly that of strings (including a hashing function in the
language used).
So all the separate type does is that it forms a subset of strings.
Good.
That seems pretty close to Spolsky's safe/unsafe naming convention,
but better, if refactoring is needed, because a type is better
than an Emacs macro (to which he is referring somewhere).
> For broken design it is always too late. Fix the design.
The design as a whole is not in our hands, I should think. The design
is as is, dictated by a combination of current input and time available.
> How an incomplete definition is job done?
If
- foreign company's management says "Job done!" and
- foreign company works profitably,
= then an incomplete definition means job done.
The resulting "designed system" is not ideal, from my technical
point of view. But they need not care.
> Why should I care about description of naming schemes? I need a set of
> types describing file name valid in some specified environment.
Whenever there is a sufficient specification of an environment, fine.
Just saying that web documents are an example of when a specification
might be insufficient, if it exists at all.
next prev parent reply other threads:[~2012-06-05 12:20 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 16:33 Q: type ... is new String tmoran
2012-05-30 17:04 ` Dmitry A. Kazakov
2012-05-31 7:37 ` Maciej Sobczak
2012-06-04 5:58 ` Yannick Duchêne (Hibou57)
2012-06-04 6:30 ` J-P. Rosen
2012-06-04 7:48 ` Yannick Duchêne (Hibou57)
2012-06-04 8:03 ` Dmitry A. Kazakov
2012-06-04 8:14 ` Yannick Duchêne (Hibou57)
2012-06-04 9:09 ` Dmitry A. Kazakov
2012-06-04 10:35 ` J-P. Rosen
2012-06-04 5:43 ` Yannick Duchêne (Hibou57)
2012-06-04 11:39 ` Brian Drummond
2012-06-04 13:36 ` Maciej Sobczak
2012-06-04 14:58 ` Georg Bauhaus
2012-06-04 15:14 ` Dmitry A. Kazakov
2012-06-04 16:06 ` Georg Bauhaus
2012-06-04 17:05 ` Dmitry A. Kazakov
2012-06-04 20:28 ` Yannick Duchêne (Hibou57)
2012-06-04 20:56 ` Georg Bauhaus
2012-06-05 7:32 ` Dmitry A. Kazakov
2012-06-05 8:40 ` Georg Bauhaus
2012-06-05 9:06 ` Dmitry A. Kazakov
2012-06-05 12:20 ` Georg Bauhaus [this message]
2012-06-05 13:14 ` Dmitry A. Kazakov
2012-06-06 4:09 ` Shark8
2012-06-06 8:52 ` Georg Bauhaus
2012-06-06 23:56 ` Randy Brukardt
2012-06-07 11:15 ` Georg Bauhaus
2012-06-06 23:51 ` Randy Brukardt
2012-06-04 20:33 ` Yannick Duchêne (Hibou57)
2012-06-04 21:27 ` Georg Bauhaus
[not found] ` <m9kqs7hgii13e220b1phm46n43d92tu1pj@invalid.netcom.com>
2012-06-05 6:15 ` Georg Bauhaus
2012-06-05 6:36 ` Yannick Duchêne (Hibou57)
2012-06-06 4:14 ` Shark8
2012-06-07 0:01 ` Randy Brukardt
2012-06-07 0:20 ` Adam Beneschan
2012-06-05 12:05 ` Brian Drummond
2012-06-05 14:43 ` Yannick Duchêne (Hibou57)
2012-06-04 15:54 ` Shark8
2012-06-04 22:01 ` Jeffrey Carter
2012-06-05 12:10 ` Brian Drummond
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox