On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<malcolm@55bank.freeserve.co.uk> wrote:
[color=blue]
>
>"Rajnish" <rajnish_ban@hotmail.com> wrote[color=green]
>> Please suggest me best c programming language tool, which is like
>> Jbuilder (for java) which suggest all avilable methods etc on typing
>> the object.
>>[/color]
>C isn't that sort of language. It is designed to be typed into a standard
>text editor, though one with syntax colouring is nice. Some IDEs for C++ can
>be used for C as well and list members of structures. This is mildly useful,
>though if you need to rely on it then probably the structure isn't too
>well-named in the first place.[/color]
I have to disagree with this - if you have hundreds of structure
definitions, and each one can contain a dozen or more members, it is
*very* useful. My editor, Slickedit, not only shows you the struct
members, but tells you their type and displays any comment near them.
I don't care how well-named your structures and their members are - I
find it very useful. One of the best things is that when you let the
editor autocomplete object names, they are spelled correctly no matter
what your typing skills.
[color=blue]
>They also sometimes list parameters to
>functions - again mildly useful.[/color]
Again, if you have hundreds of functions, it is very useful to be
reminded of the parameters, their sequence and type, and applicable
comments. Slickedit will even provide a list of objects of the proper
type and scope for each parameter. Again, this reduces errors.[color=blue]
>
>You will find the most useful tool is the cut and paste facility. This
>allows you to move functions from one file to another, and also knock out
>boilerplate code.
>[/color]
There should rarely be a need to cut and paste functions from one file
to another. If you reuse functions, they should be in their own file,
perhaps even in a library. If you move functions because they're in
the wrong file, better design is needed.
--
Al Balmer
Balmer Consulting
removebalmerconsultingthis@att.net