Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Starting a project and landing between a rock and a hard place.

by diskcrash (Hermit)
on May 06, 2001 at 08:56 UTC ( #78328=note: print w/replies, xml ) Need Help??

in reply to Starting a project and landing between a rock and a hard place.

BMaximus, you have a high sense of self-integrity to question your own design so well. The skill (art) of organizing a project is unique to each person. What I have found is that regardless of OO vs. structured approaches the program is a state machine.


  • What is the startup state of the script, environment variables, internal variables
  • How does the script leave startup to a running state
  • How does it handle signals and exceptions, not in the normal flow - what state does it go to and then leave on exception
  • What inputs drive the script to what new states - like reading lines in a file, processing each line, looking for EOF, scanning for input errors
  • Are errors handled gracefully
  • How does the script terminate - what does the terminate state do

    I once had to write a text restructuring program that had three variables with two states each for a word processor ruler function. It wouldn't translate ceratin content right. Then I realized that the scanner had eight states (two to the third power) but I had only coded for six. Me dumb. Twenty minutes of new code and she shebanged. So.. are all of the states accounted for in YOUR code.

    Also on the advice from above, use the simplest means you can employ to get it done.

    Also, I usually prepare by writing psuedo code-like comments. The stunning wonder of Perl is the move from the psuedo code to the Real Thing is so short. Sometimes I draw state diagram pictures, especially if I have to explain it to others.


    • Comment on Re: Starting a project and landing between a rock and a hard place.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78328]
[marto]: a security event in the building, police dogs and and so on...
[Discipulus]: a test I hope..
[marto]: just a security event, they have people from the 'corporate' security, external security companies, the police etc
[marto]: perhaps I'll get the time to pin down some of the corporate security people, since they refuse to answer any questions
[marto]: for our system, the windows pre production domains alone require 490 accounts :/
[marto]: they don't have a password management solution, and we're not supposed to write any of this down
Discipulus boring meeting time.. ;=(

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-11-22 10:27 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (317 votes). Check out past polls.