Main Page | Report this Page
 
Computers Forum Index  »  Computer Architecture - Embedded  »  What coding standard are you using for C?...
Page 2 of 3    Goto page Previous  1, 2, 3  Next

What coding standard are you using for C?...

Author Message
Andrew...
Posted: Sat Nov 07, 2009 6:15 am
Guest
Jon Kirwan wrote:
Quote:
On Fri, 6 Nov 2009 23:00:15 +0000 (UTC), Andrew Smallshaw
andrews at (no spam) sdf.lonestar.org> wrote:

On 2009-11-05, Paul Carpenter <paul at (no spam) pcserviceselectronics.co.uk> wrote:
Despite C, being free format, avoid too much free format, remembering
that at some time it may well be printed, 300 character lines wrap
very interestingly, if they wrap. Choosing indentation matching
can make following the code easier, even if you have managed
to get the function to fit on one page.
I keep getting criticism for ignoring an imagined 80 column limit.
Yes, I'll keep it under 132 columns but not 80 - it just gets too
restrictive and demands either less indentation of cyptically short
variable names which are a much bigger problem. 132 (sometimes
136) is of course how long a line can be printed on a wide carriage
printer, so it is largely historical now, although is does approximate
what enscript -r can fit on a sheet of A4 with default settings.
With modern text editors under GUIs you are typically not limited
to anythign like 80 column views so I see no practical reason to
stick to such a narrow limit.

I stay with a strict 79 column limit. It turns out that I also print
my listings on the laser printer in portrait mode and that with the
use of commonly available fixed-pitch fonts like Courier or Prestige
Elite I get just about the right font size for readability, as well.

I couldn't possibly consider 132 columns as acceptable anymore. I
still have the boxes of printer paper designed for that, but long
since lost printers with the sprockets to feed the paper. Use it for
scratch paper, now. And printing landscape, while acceptably printing
at 132 columns fixed-pitch, puts too few lines on the page. Readable
code requires that the basic idea is presented (as well as possible)
on a single page (or perhaps two.) The few lines that I wind up
wrapping do NOT add anywhere near enough extra vertical lines to cause
a problem. While printing landscape would lose way too many lines and
would definitely become a readability problem for me.

I guess different people come to different, strongly held conclusions.

Jon

Its pointless to print out code today due to lack
of tractor feed printers. What happened to them?
To me, a stack of non-contiguous
sheets has very little value.
 
...
Posted: Sat Nov 07, 2009 3:33 pm
Guest
On Nov 6, 6:00 pm, Andrew Smallshaw <andr... at (no spam) sdf.lonestar.org> wrote:
Quote:
I keep getting criticism for ignoring an imagined 80 column limit.

As others have posted, I find the 80 column limit to be a good
one.

However, in my case, that doesn't come from printer limitations
and it doesn't come from my imagination either. It comes from
80 characters being the width of a non-GUI console.

Sometimes I use a GUI and sometimes I don't.

Regards,
Steve
 
Paul Carpenter...
Posted: Sat Nov 07, 2009 10:19 pm
Guest
In article <ydKdnS8m_6SSGWjXnZ2dnUVZ8tqdnZ2d at (no spam) lyse.net>,
david.brown at (no spam) hesbynett.removethisbit.no says...
Quote:
Paul Carpenter wrote:
In article <slrnhf9ajs.4uj.andrews at (no spam) sdf.lonestar.org>,
andrews at (no spam) sdf.lonestar.org says...
On 2009-11-05, Paul Carpenter <paul at (no spam) pcserviceselectronics.co.uk> wrote:
.....
what enscript -r can fit on a sheet of A4 with default settings.

Never assume anything other than a simple text file print is possible
relying on specific software or printers, is the standard assumption
that you will be the only person ever wanting to print out any part.

Just like 'lock-in' IDE's that use encrypted project files.

Some types of work will require printouts, as paper is still a VERY
good archive method as it can be read for many more years, than most
media. How many systems still have 3.5" floppy drives?

With modern text editors under GUIs you are typically not limited
to anythign like 80 column views so I see no practical reason to
stick to such a narrow limit.

Hopefully you are dealing with standard text files, as paper
printout can be read where even some text files using strange
character encodings can be a pain.

Can you guarantee that any software written will only need to be
supported for about two years after release? That is about the
average timespan before some change means it can be difficult
to read some files due to things like

OS change
Tools version change
Tools (including editor change)
Media no longer available
printers or other changes (wide carriage no longer available)

Vanishingly few people actually go through their archive of projects
and all current releases to ensure that all files can be read/edited
and rebuilt, when they have one of the above changes. Generally it
suddenly becomes a problem because someone has to examine some
old code.

Coding standards are about maintainability as well as current
tasks.


In the days before networks and hard disks were common even in small
firms, there was an issue with media - I know that we have programs from
our company's early days that are effectively lost because they are on
old 5 1/4" floppies. You can also get in trouble if you use tape for
your primary archive media. But other than that, media should not be an
issue.

The old server has gone done and this hard drive uses an interface
and file system no longer supported by new system(s), is more common a
problem than most people think. Then they go to backup and the backup
for that server was not network but tape (and not compatible with any
other drive in the place) or mirred to another drive of same type that
is difficult to interface.

I get questions like this often.

Quote:
Printer sizes have not been an issue for something like 20 years
at least, since laser printers let you pick different font sizes and
thus different numbers of characters per line. And editors that can
work happily with files of different sizes, different line widths,
different line endings, and different character sets have been around
for at least as long.

Assumptions that all editing is done with GUI, that a suitable font
will be available, that the new tools will always be able to deal
with line endings and non straight ASCII encodings. That printer
or printer driver will not substitute a different font or SIZE.

Even simple Notepad still cannot deal with anything other than
Windows style of line endings. Not uncommon for GUI based tools
to use the OS method of line ending ONLY.

As soon as you have to pick font, including size, you have to document
that probably at the head of each file.

If you do code review MEETINGS do you expect everyone to sit there
looking at screens?


Quote:
So unless you are storing your source code files in some locked
proprietary file format, any source code file written for the last
fifteen years at least is ease to read, edit and print out from
virtually any system. I don't know where you picked the "two years
average lifespan" from, but it certainly wasn't reality.

Very much so in reality, as mobile phones, MP3 players, components for
desktops, Laptop utilities, PC BIOS, consumer products, change model
about every 6 months or less. Considering warranty time periods and how
long before last unit is sold, the time between LAST release of software
for one model and end of support is about 2 years (often less).

Even for a lot of desktop software, it is always buy the new version
and if necessary a new OS (and system).

So beyond two years they are not even interested in keeping THAT version
of the software. They may have a lot of the modules reused/reversioned
for later models.

So for an AVERAGE lifespan of code that is a reality, some code is much
longer, but the majority of C code is not.

....
Quote:
Proprietary file formats are another problem, but fortunately for C
programmers, they are only an issue for things like project files rather
than for the actual source code.

Proprietary file formats even covers the file system, and if straight
ASCII has been used to store the file.

--
Paul Carpenter | paul at (no spam) pcserviceselectronics.co.uk
<http://www.pcserviceselectronics.co.uk/> PC Services
<http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font
<http://www.gnuh8.org.uk/> GNU H8 - compiler & Renesas H8/H8S/H8 Tiny
<http://www.badweb.org.uk/> For those web sites you hate
 
Jon Kirwan...
Posted: Sun Nov 08, 2009 2:11 am
Guest
On Sat, 7 Nov 2009 07:33:13 -0800 (PST), steve_schefter at (no spam) hotmail.com
wrote:

Quote:
On Nov 6, 6:00 pm, Andrew Smallshaw <andr... at (no spam) sdf.lonestar.org> wrote:
I keep getting criticism for ignoring an imagined 80 column limit.

As others have posted, I find the 80 column limit to be a good
one.

However, in my case, that doesn't come from printer limitations
and it doesn't come from my imagination either. It comes from
80 characters being the width of a non-GUI console.

Sometimes I use a GUI and sometimes I don't.

I think that's a point. I do the same thing, mostly because I still
have and use Microsoft's M (or ME) which supports writing your own C
code that can be linked into the editor to extend its features. I've
done that. However, the fact that I can also do a lot of editing with
Windows' editors (IDE or otherwise) means that it isn't quite as much
of an issue for me as it would have been when I was only using that
editor alone.

The printing issue is more important to me partly because straggling
lines that display into the left side margins distract my eye. It's
just enough that I have to _consciously_ ignore them. And that can be
just enough of an annoyance in constructing mental models from reading
that I can be slowed down for a moment. Why have the trouble, at all?

It's also about worrying about others who may read or need to print,
too. Or have their own reasons for preferring an 80 column limit.
(Very few have problems working with 80 or under.) It's not just for
me.

A few days back:

On Thu, 5 Nov 2009 08:57:54 -0000, Paul Carpenter
<paul at (no spam) pcserviceselectronics.co.uk> wrote:

Quote:
More importantly indent with spces the block of code by the
same amount. Tabs can be different on systems/IDE/editors

Tabs are a great question for which I don't have a perfect answer. It
was interesting also to see this on the same day (at my longitude):

On Thu, 05 Nov 2009 15:47:47 -0600, Vladimir Vassilevsky
<nospam at (no spam) nowhere.com> wrote:

Quote:
Just don't write assembly code in capital letters and do fill tabs
with spaces.

My own preference is to do space-fill and to use 4 spaces per. With
fixed-pitch fonts, 3 is okay. 2 is too small for my eyes to quickly
recognize in the face of all fonts and characters. So I like at least
3. More than 4 or 5 and it eats up the 80 columns too fast. Which
brackets me, tightly. And using spaces ensures that others see about
what I want them to see -- there is a consistent appearance I can plan
for this way.

Not every program allows for viewing or printing with arbitrarily set
tab stops ... some insist on columns 9, 17, etc. and brook no changes
to that. Use of tabs would wreck some havoc in these cases.

However, there is an argument _for_ tabs when I take into account
others who may also want to read or print my code. Tabs provide the
easy ability for different people to select different preferred
alignments and they work even in the face of proportional fonts, which
some may also prefer for reasons of their own. If I enforce my own
indent requirements by using spaces, I make it more difficult for them
if they really want something other than my own choice.

What nails down the answer to these questions starts with this: I need
and want creative control over the appearance of what I write. There
are times when I need to generate ASCII pictures to help communicate
issues related to the code. I do this often enough that it is very
important. Here's an example of what I mean, which includes a
coroutine diagram, some tables, and examples in order to discuss the
methods I used in writing a fast 8051 float division routine:

http://www.infinitefactors.org/jonk/zips+src/_fsdiv.c

In these cases, and others, using tabs becomes far too much of a
liability in communicating to others. I need to have a lowest common
denominator I can rely upon for communication. Limiting as it is,
this means spaces, not tabs; 80 columns, not more; and fixed-pitch
fonts, not proportional.

Jon
 
D Yuniskis...
Posted: Sun Nov 08, 2009 5:15 am
Guest
steve_schefter at (no spam) hotmail.com wrote:
Quote:
On Nov 6, 6:00 pm, Andrew Smallshaw <andr... at (no spam) sdf.lonestar.org> wrote:
I keep getting criticism for ignoring an imagined 80 column limit.

As others have posted, I find the 80 column limit to be a good
one.

However, in my case, that doesn't come from printer limitations
and it doesn't come from my imagination either. It comes from
80 characters being the width of a non-GUI console.

Sometimes I use a GUI and sometimes I don't.

I like to stick to just under 80 columns (i.e., sometimes, the
80th is needed for a newline indication).

The ~80 column limit is advisory, just like other "guidelines".
But, breaking it should only be done "for good reason".

You also have to consider how other people viewing
your code will be affected. Do they use 80x25 xterm(1)'s?
"DOS consoles"?

If they *are* working in a GUI envrionment, do they have
enough desktop space to "waste" on overly wide source lines?
E.g., a GUI debugger usually prepends stuff to each line
(break point indicators, etc.). A scrollbar adds to the
actual width of the window, along with other window decorations.

And, I suspect most folks would like to have other windows
visible on the desktop alongside the "source" window so
the wider you make your source, the greater the impact on
those other windows. (e.g., I like having a schematic
open when I am writing drivers).

My primary work desktop is 3200x1200. So, if I *wanted* to have
130 character lines, that's not a problem. Why stop at 130?
Why not *200*?? :>
 
DJ Delorie...
Posted: Sun Nov 08, 2009 5:19 am
Guest
D Yuniskis <not.going.to.be at (no spam) seen.com> writes:
Quote:
My primary work desktop is 3200x1200. So, if I *wanted* to have
130 character lines, that's not a problem. Why stop at 130?
Why not *200*?? :

My primary desktop is 4960x1600(*) but my editor is only 120 columns.
If I maximize it across all three monitors, it's 700 columns (358 if I
juse use the main one). I don't use the whole 120 colums usually, I
like to have some whitespace to the right of the text so I can easily
see when lines (like program outputs) wrap.

My xterms are 115x58, which is a weird geometry but it allows four of
them to tile in the remaining space without overlapping.

(*) one big monitor landscape, two small portrait ones to each side.
The two portrait ones are great for PDFs, web browsers, IRC...
Try rotating your two monitors someday, for a 2400x1600 display.
Might be more useful than 3200x1200.
 
D Yuniskis...
Posted: Sun Nov 08, 2009 6:15 am
Guest
DJ Delorie wrote:
Quote:
D Yuniskis <not.going.to.be at (no spam) seen.com> writes:
My primary work desktop is 3200x1200. So, if I *wanted* to have
130 character lines, that's not a problem. Why stop at 130?
Why not *200*?? :

My primary desktop is 4960x1600(*) but my editor is only 120 columns.
If I maximize it across all three monitors, it's 700 columns (358 if I
juse use the main one). I don't use the whole 120 colums usually, I
like to have some whitespace to the right of the text so I can easily
see when lines (like program outputs) wrap.

My xterms are 115x58, which is a weird geometry but it allows four of
them to tile in the remaining space without overlapping.

I suspect you use a small-ish font? I like 80x66 xterms -- they
have the "feel" of a sheet of paper -- with reasonably large
fonts (I dislike wearing glasses)

Quote:
(*) one big monitor landscape, two small portrait ones to each side.
The two portrait ones are great for PDFs, web browsers, IRC...
Try rotating your two monitors someday, for a 2400x1600 display.
Might be more useful than 3200x1200.

I can rotate them independantly of each other and have
tried it. But, the tops of the monitors (i.e., the top
of the viewing area) ends up too high for me. I also
tried using a third monitor but that proved to be too wide.
I.e., with two, you barely have to move your head to
either side of "center" to take in a full screen;
with three you actually have to twist your neck. I
suppose this would be lessened if I pushed the monitors
further away -- but then I would want a larger font
(chicken/egg)

I've also tried going to 24" monitors (instead of 21")
and found that to have pretty much the same problems.

Two works good. I can power one off when I am just writing
code and back on if I need more real estate (e.g., if
I want to look at a schematic and the PCB artwork
created from it).

I have two other workstations on either side of the main
workstation (my work area is arranged in a "U") so I
can truly "spread out" when I need more screen space
(e.g., when I am talking to a target while debugging
on the main desktop)
 
D Yuniskis...
Posted: Sun Nov 08, 2009 6:15 am
Guest
DJ Delorie wrote:
Quote:
D Yuniskis <not.going.to.be at (no spam) seen.com> writes:
I suspect you use a small-ish font?

7x13 pixels, about 11 point, bold. White on black for terminals,
black on beige for editing. Black on grey90 for web browsing.

I'm 9x15 -- probably about 12 point. But, it's nice and
"clean" (well formed letters).

Quote:
But, the tops of the monitors (i.e., the top of the viewing area)
ends up too high for me.

I'm building a new desk that will have the keyboard higher so I can
raise my chair. The monitors will be a little further away, too.

You might explore setting the monitors in the desktops.
I tried it some years ago but found that I lost too
much "real" desktop space -- a soldering iron, paperwork
or something else would invariably end up getting in the
way of a display!

The tops of my current monitors are literally at eye level.
This is too high for me. They can't be lowered (this
would interfere with their rotation -- I guess the
manufacturer wanted to ensure you couldn't lower
them "too low" to prevent that rotation... even if
you don't use it!)

I have two keyboards to contend with -- one on the desktop
and one in a drawer just below. So, raising my chair moves
the lower keyboard out of reach.

Quote:
I also tried using a third monitor but that proved to be too wide.

My layout is 4.5 feet across, and 2 feet from me. About a 90 degree

I'm tighter than that. Maybe 3 feet wide but probably only 15-18"
from my face. I also twist the monitors so they face a common
focus (makes things tighter as a consequence). I doubt my head
even turns 30 degrees in normal usage.

When I had three monitors I had to move them further away to
maintain this same sort of arc. I found this uncomfortable
for viewing (and more real estate than was worth the effort).

This works well enough as I can keep mouse, spaceball, tablet
close enough to be usable without crowding the monitors.
Editing video is a bit clumsy as there is no "close in" room
for that equipment.

Biggest hassle is having to spin the chair to work on targets.
I foolishly fell to the temptation of "symmetry" in laying out
the workstations so the "console" for one target is on my
left while the console for the second target is mirrored on
my *right*! As a result, I often find myself "spinning"
in my chair :< A more practical layout would keep the
targets adjacent and move the primary workstation to one
end or the other (of the "U")

Quote:
field of view. However, what I've got is a central 30" monitor with
two 20" monitors (rotated) next to it. So, most of my field of view
is the main monitor, but the other two are available for reference. I
never need to look at it all at the same time.

I use two when needing to consult a schematic while writing
a driver; or schematic while laying out PCB; or looking at
"things" on two different hosts "side-by-side" (the annoying
thing in this configuration is remembering that you *can't*
just drag things from one screen onto the other! :< ).
 
DJ Delorie...
Posted: Sun Nov 08, 2009 6:15 am
Guest
D Yuniskis <not.going.to.be at (no spam) seen.com> writes:
Quote:
"things" on two different hosts "side-by-side" (the annoying
thing in this configuration is remembering that you *can't*
just drag things from one screen onto the other! :< ).

Why not? I've got a total of four monitors on this PC (the fourth is
elsewhere in my office) and I can drag things from any monitor to any
other montor. I can even expand windows to span multiple monitors if
needed.

Being able to move stuff of my main monitor to a secondary monitor is
a key to the usefulness of this setup.
 
DJ Delorie...
Posted: Sun Nov 08, 2009 6:15 am
Guest
D Yuniskis <not.going.to.be at (no spam) seen.com> writes:
Quote:
I suspect you use a small-ish font?

7x13 pixels, about 11 point, bold. White on black for terminals,
black on beige for editing. Black on grey90 for web browsing.

Quote:
But, the tops of the monitors (i.e., the top of the viewing area)
ends up too high for me.

I'm building a new desk that will have the keyboard higher so I can
raise my chair. The monitors will be a little further away, too.

Quote:
I also tried using a third monitor but that proved to be too wide.

My layout is 4.5 feet across, and 2 feet from me. About a 90 degree
field of view. However, what I've got is a central 30" monitor with
two 20" monitors (rotated) next to it. So, most of my field of view
is the main monitor, but the other two are available for reference. I
never need to look at it all at the same time.
 
David Brown...
Posted: Sun Nov 08, 2009 11:53 pm
Guest
D Yuniskis wrote:
Quote:
Paul E Bennett wrote:
David Brown wrote:

Paul Carpenter wrote:

[%X]

In the days before networks and hard disks were common even in small
firms, there was an issue with media - I know that we have programs
from
our company's early days that are effectively lost because they are on
old 5 1/4" floppies. You can also get in trouble if you use tape for
your primary archive media. But other than that, media should not
be an
issue.
The old server has gone done and this hard drive uses an interface
Interfaces older than IDE were very rare, and if you have to use
something like older SCSI interfaces, you can still get the cards. The
PC world is pretty good at backwards compatibility.

and file system no longer supported by new system(s), is more common a
I'd be impressed if you can think of a file system that is a realistic
candidate for such a situation, and which is not supported by Linux.

[%X]

Wonder how many remember as far back as the Kansas City Tape Standard
for Data Recording onto Audio Cassettes. If really pressed I could
still cobble

grin> Or folks who used "VCR data recorders" manufactured
iin somebody's garage...

one of those up. However, if it was really important data to keep,
then it should have been subject to a migration policy so that it was
appropriately transferred to modern media.

*This* is the key issue here! 20 years ago I spent several weeks
takiing everything that I had archived (floppies of various
sizes, 9 track tape, a slew of other oddball tapes, etc.) and
copied it onto "modern media". Since then, every project
has been added to the pool.

I keep backups on a RAID5 array, additional copies on my
regular workstation (for more recent work or anything that
I want to "have a look back at"), other copies on CD's
and DVD's (these are POOR choices, IMO) and on DLT. The
most vulnerable of these are those on rotating media
as you can lose it *all* in a single ohnosecond! If
possible, find an external drive that has a hardware write
protect switch if you want to go that route...


You /can/ lose data on hard disks fairly quickly, but typically you have
to be very unlucky (assuming you make your backups write-protected for
normal use). It's a good idea to have two independent copies on
different computers, in different locations - you are not going to have
hard disk fails, fires, or human error on both systems at once.

Quote:
The *good* thing about archives is they don't change
often. So, you (i.e., *I*) don't have to repeat this process
very often -- just incrementally update it.

You don't have to repeat it too often, but you /do/ need to check your
restoration procedures regularly. This is particularly true if you rely
on tape and/or specific backup programs - have you tested the tapes on
an independent system (hardware and software)?
 
D Yuniskis...
Posted: Mon Nov 09, 2009 12:26 am
Guest
David Brown wrote:
Quote:
D Yuniskis wrote:
Paul E Bennett wrote:
David Brown wrote:

Paul Carpenter wrote:

[%X]

In the days before networks and hard disks were common even in small
firms, there was an issue with media - I know that we have
programs from
our company's early days that are effectively lost because they
are on
old 5 1/4" floppies. You can also get in trouble if you use tape for
your primary archive media. But other than that, media should not
be an
issue.
The old server has gone done and this hard drive uses an interface
Interfaces older than IDE were very rare, and if you have to use
something like older SCSI interfaces, you can still get the cards. The
PC world is pretty good at backwards compatibility.

and file system no longer supported by new system(s), is more common a
I'd be impressed if you can think of a file system that is a realistic
candidate for such a situation, and which is not supported by Linux.

[%X]

Wonder how many remember as far back as the Kansas City Tape Standard
for Data Recording onto Audio Cassettes. If really pressed I could
still cobble

grin> Or folks who used "VCR data recorders" manufactured
iin somebody's garage...

one of those up. However, if it was really important data to keep,
then it should have been subject to a migration policy so that it was
appropriately transferred to modern media.

*This* is the key issue here! 20 years ago I spent several weeks
takiing everything that I had archived (floppies of various
sizes, 9 track tape, a slew of other oddball tapes, etc.) and
copied it onto "modern media". Since then, every project
has been added to the pool.

I keep backups on a RAID5 array, additional copies on my
regular workstation (for more recent work or anything that
I want to "have a look back at"), other copies on CD's
and DVD's (these are POOR choices, IMO) and on DLT. The
most vulnerable of these are those on rotating media
as you can lose it *all* in a single ohnosecond! If
possible, find an external drive that has a hardware write
protect switch if you want to go that route...

You /can/ lose data on hard disks fairly quickly, but typically you have
to be very unlucky (assuming you make your backups write-protected for
normal use). It's a good idea to have two independent copies on
different computers, in different locations - you are not going to have
hard disk fails, fires, or human error on both systems at once.

<grin> *I* used to think that way! I kept backups on
external SCSI drives that were neither "on-line" (mounted)
nor *spinning* (powered up).

On one occasion, I needed to restore a file from one of these
"offline archives". I spun-up the drive, mounted the filesystem
and the drive *crashed*!

OK, bad luck.

But, I have a *second* backup drive (drives are cheap insurance).
So, I pulled that drive out, spun it up, mounted it ... and
watched *it* crash!

Turns out there was a bug in the driver that this model of
drive tickled. Very reliably. I.e., I could have had *20*
such drives and it would have dutifully scrambled *all* of them!

Note that the only thing I "did wrong" here was not using
the write-protect jumper on the drive before installing it
in its enclosure.

Undaunted, I moved on to my CD archive and was able to restore
the file from a CD. If that had failed, I would have fallen back
to tapes.

And, then turned my attention to the "computer" to see what the
problem was, there.

Point is, if you *assume* things, you get bitten. My assumption
was that I could NEVER have two hard drives fail at the same
time. And, *neither* of them did! I later re-copied the
portion of my archive that resided on these two (duplicate)
drives *back* onto them.

Quote:
The *good* thing about archives is they don't change
often. So, you (i.e., *I*) don't have to repeat this process
very often -- just incrementally update it.

You don't have to repeat it too often, but you /do/ need to check your
restoration procedures regularly. This is particularly true if you rely
on tape and/or specific backup programs - have you tested the tapes on
an independent system (hardware and software)?

Of course! The windows system is (as always) the PITA. So,
I just backup it from one of the UN*X boxen so I'm just
dealing with "files" and not some stupid proprietary
"backup format" (been there, done that, t-shirt to prove it).

I have six or seven DLT's here so I am not dependant on
"working hardware". And several different machines that
can read and write the archives portably. Instead of
chasing the latest and greatest "PC hardware", I'd rather
invest in having duplicates of *everything*!

Backups are precious. I treat them as such. :>
 
Rob Gaddi...
Posted: Mon Nov 09, 2009 9:56 pm
Guest
On Fri, 06 Nov 2009 20:22:58 -0800
Andrew <asmith at (no spam) blackstone.biz> wrote:

Quote:
Jon Kirwan wrote:
On Fri, 6 Nov 2009 23:00:15 +0000 (UTC), Andrew Smallshaw
andrews at (no spam) sdf.lonestar.org> wrote:

On 2009-11-05, Paul Carpenter <paul at (no spam) pcserviceselectronics.co.uk
wrote:
Despite C, being free format, avoid too much free format,
remembering that at some time it may well be printed, 300
character lines wrap very interestingly, if they wrap. Choosing
indentation matching can make following the code easier, even if
you have managed to get the function to fit on one page.
I keep getting criticism for ignoring an imagined 80 column limit.
Yes, I'll keep it under 132 columns but not 80 - it just gets too
restrictive and demands either less indentation of cyptically short
variable names which are a much bigger problem. 132 (sometimes
136) is of course how long a line can be printed on a wide carriage
printer, so it is largely historical now, although is does
approximate what enscript -r can fit on a sheet of A4 with default
settings. With modern text editors under GUIs you are typically
not limited to anythign like 80 column views so I see no practical
reason to stick to such a narrow limit.

I stay with a strict 79 column limit. It turns out that I also
print my listings on the laser printer in portrait mode and that
with the use of commonly available fixed-pitch fonts like Courier
or Prestige Elite I get just about the right font size for
readability, as well.

I couldn't possibly consider 132 columns as acceptable anymore. I
still have the boxes of printer paper designed for that, but long
since lost printers with the sprockets to feed the paper. Use it
for scratch paper, now. And printing landscape, while acceptably
printing at 132 columns fixed-pitch, puts too few lines on the
page. Readable code requires that the basic idea is presented (as
well as possible) on a single page (or perhaps two.) The few lines
that I wind up wrapping do NOT add anywhere near enough extra
vertical lines to cause a problem. While printing landscape would
lose way too many lines and would definitely become a readability
problem for me.

I guess different people come to different, strongly held
conclusions.

Jon

Its pointless to print out code today due to lack
of tractor feed printers. What happened to them?
To me, a stack of non-contiguous
sheets has very little value.

Tractor feed printers are still decidedly available. There's a pretty
regular stream of HP Quietjets on eBay for cheap, though you can go
broke buying the teensy little ink bullets for them. Or if you're
doing real volume, I've seen some tractor fed lasers. They're the size
of a Mini Cooper, horrifically expensive, and move whole forests of
paper through.

--
Rob Gaddi, Highland Technology
Email address is currently out of order
 
Hans-Bernhard Bröker...
Posted: Mon Nov 09, 2009 10:10 pm
Guest
Andrew wrote:

Quote:
Its pointless to print out code today due to lack
of tractor feed printers. What happened to them?

Nothing unusual: their typical application range reduced from
near-universal to a rather small niche. My car mechanic's shop, e.g.,
still relies on needle printers(!) with tractor feeds.

Quote:
To me, a stack of non-contiguous sheets has very little value.

Well, staples and ring binders exist.
 
Rich Webb...
Posted: Mon Nov 09, 2009 10:50 pm
Guest
On Mon, 09 Nov 2009 18:10:23 +0100, Hans-Bernhard Bröker
<HBBroeker at (no spam) t-online.de> wrote:

Quote:
Andrew wrote:

Its pointless to print out code today due to lack
of tractor feed printers. What happened to them?

Nothing unusual: their typical application range reduced from
near-universal to a rather small niche. My car mechanic's shop, e.g.,
still relies on needle printers(!) with tractor feeds.

One of the local office supply stores here still carries them, though
I'll admit to having been surprised to see one on display.

Somewhere, in some box or other, I still have one of those motorized
ribbon re-inker gadgets and most of a pint of ink (or, what's left after
the vehicle has evaporated).

Ahh... those were the days. ;-)

--
Rich Webb Norfolk, VA
 
 
Page 2 of 3    Goto page Previous  1, 2, 3  Next
All times are GMT
The time now is Sat Nov 21, 2009 2:12 pm