Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

RE: Prgramming vs. Coding

by clemburg (Curate)
on Oct 06, 2000 at 13:34 UTC ( #35551=note: print w/replies, xml ) Need Help??

in reply to Prgramming vs. Coding

You will like to read this:

As for how to develop the skills you mention: just work through this book - it's challenging, but worth it.

Conceptually, I think programming can be regarded as problem solving by means of symbol manipulation. And yes, I think the essence of programming (as Fred Brook characterizes it in his classic essay "No Silver Bullet" (see The Mythical Man-Month : Essays On Software Engineering. By Brooks, Frederick P. Jr.)) is reducing complexity into manageable chunks.

In fact, there is a very easy and common way to use this method when coding: Just write down your thoughts on how to solve the problem in English with some pseudo-code (while loops etc.) to improve clarity. Comment out what you have written. Hack it apart and elaborate on each part in code. You get a good high-level structure, and comments for free.

Christian Lemburg
Brainbench MVP for Perl

Replies are listed 'Best First'.
RE: RE: Prgramming vs. Coding
by chromatic (Archbishop) on Oct 09, 2000 at 07:12 UTC
    Indeed, that sounds very much like Knuth's literate programming (see Google if you're supremely curious) technique.

    Disciplined adherance to this approach guarantees that the documentation and code will always remain in synch. However, it often does require that a separate program separate (heh) the code from the comments before compilation.

    POD has certain elements of this (but it's definitely not the same). Javadoc is a little closer.

    The only person I've seen who really does this is Andrew Johnson, in Elements of Programming with Perl.

    In my opinion, it's more valuable on big projects, but it's a good technique when you're stuck on a problem and need to break it down before you can write code.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-09-30 12:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found