Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: Prgramming vs. Coding

by clemburg (Curate)
on Oct 06, 2000 at 13:34 UTC ( [id://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
http://www.brainbench.com

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found