Re: How to create string of repeated characters?
From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 06/21/04
- Next message: Alex Hunsley: "Re: How to create string of repeated characters?"
- Previous message: JamesMason: "Re: [J2ME] views wanted for new MIDP-developer site idea"
- In reply to: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Next in thread: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Reply: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Jun 2004 00:25:09 GMT
Boudewijn Dijkstra wrote:
> "Alex Hunsley" <lard@tardis.ed.ac.molar.uk> schreef in bericht
> news:10d0ecbd3vu3v5d@corp.supernews.com...
>
>>Boudewijn Dijkstra wrote:
>>
>>>"Alex Hunsley" <lard@tardis.ed.ac.molar.uk> schreef in bericht
>>>news:10cjeo4hd4poofe@corp.supernews.com...
>>>
>>>
>>>>I've had to do work on at a client site where all I had was a 80char
>
> dumb
>
>>>>terminal. No column markers there and no option to have a wider screen.
>>>>Well written code will be just as editable in this sort of environment.
>>>
>>>All things have their extremes. I assume that your example is one of
>>>those. If these working conditions can be expected, then yes it is
>
> (IMHO)
>
>>>wise to restrict your line-breaking habits. Otherwise it would be
>>>pointless and counter-productive.
>>
>>I can't see how it would be counter-productive to do things properly in
>
> the
>
>>first place and not rely on column markers! The 'proper way' being
>>propgrammatically making a string of the right length.
>
>
> Different people have different views on the 'proper way'. How do you
> define 'properly'? Do you have your entire code-editing ethics formulated?
I define 'proper' as the way which will
a) not depend on environment/editor factors (like column markings or
wide format displays)
b) be extensible with little hassle
(for example, if you want to generate 4,096 characters in a string,
there will be lots of cut'n'paste and more bloated code if you enter
those chars verbatim, and it is also prone to counting errors.)
If you did it programmatically then you remove scope for counting
errors at future edits, and the code doesn't get massively bloated for
large number of chars.
I see no benefits and only problems in doing it the 'verbatim string'
way... sure, if it was ten chars or something similar and you had little
reason to think it would ever change, then that wouldn't be bad. Any
more chars, or a string prone to change, and I'd say do it programmatically.
- Next message: Alex Hunsley: "Re: How to create string of repeated characters?"
- Previous message: JamesMason: "Re: [J2ME] views wanted for new MIDP-developer site idea"
- In reply to: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Next in thread: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Reply: Boudewijn Dijkstra: "Re: How to create string of repeated characters?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|