From: Jacob Sparre Andersen <sparre@crs4.it>
Subject: Re: Macks - adding unit constants?
Date: Mon, 03 Nov 2003 12:45:26 +0100
Date: 2003-11-03T10:30:12+00:00 [thread overview]
Message-ID: <3FA63FD6.1010208@crs4.it> (raw)
In-Reply-To: <uad7vn2zr.fsf@nasa.gov>
Stephen Leake wrote:
> Jacob Sparre Andersen <sparre@crs4.it> writes:
>>Stephen Leake wrote:
>>>Exception for user interfaces, you should only use one length unit in
>>>your code;
>>
>>When it comes to my current problem I agree, but I am not sure I do it
>>in general.
>>
>> > it might as well be meter (m).
>>
>>It is very impractical to have to remember to write "0.000_86" and not
>>"0.86", when you put constants in your code.
>
> That's a user interface.
Yes. But code _is_ my user interface. (or at least a part of it)
> How often do you actually have hardcoded constants in real code?
Much too often.
> I'd expect them to be in an input file somewhere.
They should be. But 1) you still need default values and 2) it is in
some cases (including the one I am working on right now) an unneeded
complication to add configuration files to the system.
Jacob
--
"This page inadvertently left blank."
next prev parent reply other threads:[~2003-11-03 11:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 7:57 Macks - adding unit constants? Jacob Sparre Andersen
2003-10-14 16:01 ` Stephen Leake
2003-10-17 20:23 ` Jacob Sparre Andersen
2003-10-20 14:48 ` Preben Randhol
2003-11-03 11:45 ` Jacob Sparre Andersen
2003-11-03 14:24 ` Preben Randhol
2003-10-20 19:06 ` Stephen Leake
2003-11-03 11:45 ` Jacob Sparre Andersen [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-20 11:08 christoph.grein
2003-11-03 11:57 christoph.grein
2003-11-05 23:38 ` Jacob Sparre Andersen
2003-11-06 9:58 christoph.grein
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox