On Mon, 19 Feb 2018 20:08:56 +0100, Axel Berger wrote:
> mm0fmf wrote:
>> Calling something test on a Unixy machine is a learning stage we must
>> all pass through.
>
> For all things, variables, lables, subroutines, where one can easily and
> inadvertantly hit on a reserved word, I prefer German. So instead of
> test I'd proably use versuch. Nobody can remember all reserved names, at
> least I can't. Unfortunately in this case Test has become quite common
> in German too, so not even that's safe. But what is?
Alternatively, take a good look at the sort of names the language uses
for verbs, programming structures and built-in variables, e.g. C tends to
use names that do not include digits or underscores, so when writing in
it using names like x_int are unlikely to clash with language elements.
Or, better yet, use named that tie in to what your program does: don't
use 'switch' or 'switch2' if you're setting or reading switches, use
'button', 'lightswitch' or 'door_sensor' instead because that also makes
the program easier to understand.
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|