Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Procedures are our friends
From: "Jeff Knope" <jknope@xxxxxxxx>
Date: Fri, 06 May 2005 10:10:53 -0700


To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, May 05, 2005 2:18 PM Subject: RE: Procedures are our friends

Bridget wrote:


I would like to have basic programming guidelines to pass onto students.
I am also in need of guidelines for how a procedure should look; where
to indent, where to capitalize, should we
changing the color of the text?

I haven't noticed any clear protocols. Over time, my own system has evolved. I do two things now that I think help make the code much easier to read:


1. I (sometimes) separate different tasks in a procedure with blank lines. This makes any related group of lines stand out as a group.

2. I (usually) get at least some capital letters in every procedure name. Most often I use all caps; and I don't use caps for anything else. Calls to a procedure from within another procedure are the "highway junctions" of a program, its most basic structure. These junctions should jump off the page at you. I find that my eye picks up caps real easily. So they make a kind of easy-to-find marker, flagging where there's real "don't miss this" kind of action going on.

Those 2 things are about all I do. I don't indent or use color.

I also work with the editor open wide, rather than the narrow column of a regular Tab size. That makes the lines much more readable for me. In MWPro the "esc" key is a toggle between narrow and wide. They've done something else in EX that I haven't figured out yet. If anybody knows, please let me know.

But all these are entirely personal preferences.

--Jeff


_______________________________________________ MWForum mailing list MWForum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx List Info: http://mia.openworldlearning.org/mwforum.htm Archives: http://mia.openworldlearning.org/mwforum/ Attachments archived at: http://mia.openworldlearning.org/mwforum/attachments.html To unsubscribe or for administrative questions contact mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx


  • Previous by thread: RE: Procedures are our friends
  • Next by thread: Re: Procedures are our friends

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008