Re: Good Question

[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by Erik on November 04, 2001 at 17:52:52:

In Reply to: Re: Good Question posted by Anthony Katlubeck on November 04, 2001 at 03:19:41:

Anthony's right. Functions should be designed independant of the others (not saying that they cannot call another function). This allows for easier bug detection and it is easier to add functions or make changes to the ones you already have. These programs have been relatively small, but when we move onto larger programs, it will be next to impossible to make one main function and break it up later.

: I find that it is a good idea to logically organize the program into functions before I start to type it. It makes it a lot easier to design a solution to the overall problem by seperating it into smaller subtasks. By doing this first, it should save you a lot of work in the long run. It also makes testing easier.

: : Is it a good idea to write code whithout using funtions and then divide it up into funtions or is that something that will haunt me later?

: : Vinay Lakhani

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]