Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^4: Increasing a field size for a record

by sundialsvc4 (Abbot)
on Oct 16, 2012 at 13:44 UTC ( #999336=note: print w/replies, xml ) Need Help??

in reply to Re^3: Increasing a field size for a record
in thread Increaing a field size for a record

If it works and is effortless to understand ... as the original construct does and is ... then I would give it no more time than that.

You should write your program, not only to reformat the file but also to sanity-check its own results.   For example, if you can assert that the line should contain exactly, say, 11 groups, then your program should make that assertion, and it should die if it does not.   If you can say that (especially, nearby) fields should be of a certain form that can be checked by a regex, make that check.

The reason is that, if there is a problem either with the file or with the program ... or if there has been some subtle change such that this program’s underlying assumptions no longer hold true as-written, then no human is likely to detect the problem.   But the software is in an ideal position to do so.

  • Comment on Re^4: Increasing a field size for a record

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999336]
[Corion]: Yes, but I think there's not that much overlap in our audiences ;))
[1nickt]: Sheesh, I would have thought they would be satellite-linked somehow!
[1nickt]: Who's writing all the code this week, then?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-06-27 21:00 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (613 votes). Check out past polls.