Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re (tilly) 1: program design language - a reality?

by tilly (Archbishop)
on Feb 20, 2001 at 19:38 UTC ( #59673=note: print w/replies, xml ) Need Help??


in reply to program design language - a reality?

I don't think that PDL is in widespread use, but there are definitely people who use it. For instance athompson mentioned using it at Re: Rewriting some code.

I don't always find it a fit, but I tend to use a variation on the basic idea where I write high-level pseudo-code, turn those into function calls, and then write the functions in a similar way. When I work this way I find that my functions become (well at least to me) both readable and short. In fact my functions average around 10 lines.

Most people definitely don't do that. OTOH it works for me, and I am arrogant enough to think that I am somewhat better than average...

/duck!

So definitely try it. I didn't find that doing it rigidly worked for me, but it was a worthwhile experiment, and I still use a variation on it.

Now if you will excuse me, I have some pseudo-code to sketch out...

  • Comment on Re (tilly) 1: program design language - a reality?

Replies are listed 'Best First'.
Re: Re (tilly) 1: program design language - a reality?
by gaudior (Pilgrim) on Feb 21, 2001 at 02:05 UTC
    Most people definitely don't do that

    Consider me a member of your minority. ;-)

    I have always done it this way, little scraps and outlines; successive approximations. My favorite software design tool is a white board and a lot of colors.


    Always keep a song in your heart.
    It's like karaoke for the voices in your head.
Re (tilly) : program design language - a reality?
by el-moe (Scribe) on Feb 21, 2001 at 03:40 UTC
    I tend to lay out a new program in simple 4-5 word comments describing the general flow and major function calls. This, I have found, gets me going in the right direction.

    Of course I have to move some of them around as the solution becomes more clear to me.

    But generally speaking, I think tilly... your way of doing things is very similar to mine or should I say "my way is similar to yours" - as far as program design. I still have far to go but my average function is below 20 lines now.

    Prost,
    Moe

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://59673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-11-14 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (175 votes). Check out past polls.

    Notices?