473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Best C tool

Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.

Best regards,

Rajnish
Nov 14 '05 #1
14 2011
ra*********@hotmail.com (Rajnish) wrote in
news:df**************************@posting.google.c om:
Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.


What is your question about the C language? We don't discuss tools here
(officially).

--
- Mark ->
--
Nov 14 '05 #2
"Rajnish" <ra*********@hotmail.com> wrote in message
news:df**************************@posting.google.c om...
Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.


It seems you're misunderstanding what C is and how it works.
C does have 'objects' (defined simply as 'regions of storage'),
but they cannot be 'automatically' associated with 'methods'
('functions' in C) as they can with Java or C++. C has a construct
'struct' (which is very similar to a C++ class) which one can use
for composition and aggregation , but functions are not allowed as
members (but pointers to functions are).

The closest one can get to simulating e.g. a C++ member function
(I only have a passing acquaintance with Java so I won't go there)
is something like:

#include <stdio.h>
struct T
{
int member;
int (*get_m)();
};

int get_m(const struct T *arg)
{
return arg->member;
}

int main()
{
T obj = {42, get_m};
printf("%d\n", get_m(&obj));
return 0;
}

Note that there's no way to implement 'private' data, i.e.
client code can modify any of 'obj's internals indiscriminately.

If you're looking for a language for writing object oriented code,
then C is not what you're looking for. (It *can* be done in C,
but 'by hand', and you don't get any of the automatic 'safety
nets' that C++ and Java have. It's quite tedious too.).
-Mike
Nov 14 '05 #3
Rajnish wrote:

Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.

Your question makes no sense. There are no methods associated with C
objects. Structs and unions will have associated data members. I don't
know of any IDEs that help with that.

Brian Rodenborn
Nov 14 '05 #4
On Fri, 2 Jul 2004 16:26:32 GMT, Default User
<fi********@boeing.com.invalid> wrote:
Rajnish wrote:

Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.

There are IDEs/editors which will do the opposite - on typing a
function (method) name, they will list all objects appropriate for the
parameters.
Your question makes no sense. There are no methods associated with C
objects. Structs and unions will have associated data members. I don't
know of any IDEs that help with that.

Do you mean the last sentence to apply to the previous one? There are
IDEs/editors which will automatically present the members of a struct
or union for selection.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #5

"Rajnish" <ra*********@hotmail.com> wrote
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.

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. They also sometimes list parameters to
functions - again mildly useful.

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.
Nov 14 '05 #6
On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<ma*****@55bank.freeserve.co.uk> wrote:

"Rajnish" <ra*********@hotmail.com> wrote
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.
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.


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.
They also sometimes list parameters to
functions - again mildly useful.
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.
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.

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
re************************@att.net
Nov 14 '05 #7
On Fri, 02 Jul 2004 16:26:32 +0000, Default User wrote:
Rajnish wrote:

Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.

Your question makes no sense. There are no methods associated with C
objects. Structs and unions will have associated data members. I don't
know of any IDEs that help with that.

Visual Slickedit does that just fine.

Nov 14 '05 #8
On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<ma*****@55bank.freeserve.co.uk> wrote:

"Rajnish" <ra*********@hotmail.com> wrote
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.
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. They also sometimes list parameters to
functions - again mildly useful.


This is much more than 'mildly useful' in my current C project, which
includes hundreds of source files, thousands of structures, and many
thousands of functions.
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.


I certainly hope you are being sarcastic. Both 'cutting and pasting'
and 'boilerplate code' are signs of poor programming skills.

--
Sev
Nov 14 '05 #9
"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message
news:cc**********@newsg2.svr.pol.co.uk...

"Rajnish" <ra*********@hotmail.com> wrote
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.
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. They also sometimes list parameters to
functions - again mildly useful.


I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp)
programming language and environment. It is basically the newest language MS
has gotten behind, since Sun sued to stop MS from extending Java. So they
made their own language that's a combo of C, Java, and VB.

--
Mabden
Nov 14 '05 #10
On Sat, 03 Jul 2004 06:46:48 GMT, "Mabden" <mabden@sbc_global.net>
wrote:
"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message
news:cc**********@newsg2.svr.pol.co.uk...

"Rajnish" <ra*********@hotmail.com> wrote
> Please suggest me best c programming language tool, which is like
> Jbuilder (for java) which suggest all avilable methods etc on typing
> the object.
>

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. They also sometimes list parameters to
functions - again mildly useful.


I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp)
programming language and environment. It is basically the newest language MS
has gotten behind, since Sun sued to stop MS from extending Java. So they
made their own language that's a combo of C, Java, and VB.


Ouch. Thank god I run my own company and will never have to use this
POS.

--
Sev
Nov 14 '05 #11

"Alan Balmer" <al******@att.net> a écrit dans le message de
news:ph********************************@4ax.com...
On Fri, 2 Jul 2004 16:26:32 GMT, Default User
<fi********@boeing.com.invalid> wrote:
Rajnish wrote:

Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.


Your question makes no sense. There are no methods associated with C
objects. Structs and unions will have associated data members. I don't
know of any IDEs that help with that.

Do you mean the last sentence to apply to the previous one? There are
IDEs/editors which will automatically present the members of a struct
or union for selection.


The IDE of lcc-win32 is one of those. If the type of an identifier is either
a structure or a union, and it is followed by "->" or ".", the IDE will
open a window with the fields of the structure/union. It is a new feature
so it may have some problems. For instance, only recently it handles

struct foo tab[56];

tab[23].

This will provoke the opening of the window now, i.e. the IDE understands
tables of structures. There may be other situations where this doesn't work
OK.

jacob

lcc-win32: http://www.cs.virginia.edu/~lcc-win32
Nov 14 '05 #12

"Alan Balmer" <al******@att.net> a écrit dans le message de
news:tl********************************@4ax.com...
On Fri, 2 Jul 2004 23:33:36 +0100, "Malcolm"
<ma*****@55bank.freeserve.co.uk> wrote:

"Rajnish" <ra*********@hotmail.com> wrote
Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.
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++ canbe 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.


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.


lcc-win32's IDE does that too. I thought about including comments
but it is tricky, specially if they are long. What does Slickedit do
when you have a long comment besides the member definition?

I thought that would be better to have a "goto definition" feature, that
shows you the source for the definition, and a SHORT members window.
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.


This is implemented with the Escape key: it will complete the current word,
if there is only one way of completing it. If there are more than one, it
will display a list for you to choose from.

They also sometimes list parameters to
functions - again mildly useful.


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.


lcc-win32 will display the prototype automatically. Of course only
if you #include the correct header.

Nov 14 '05 #13
On Sat, 03 Jul 2004 06:46:48 GMT, "Mabden" <mabden@sbc_global.net>
wrote:
"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message
news:cc**********@newsg2.svr.pol.co.uk...

"Rajnish" <ra*********@hotmail.com> wrote
> Please suggest me best c programming language tool, which is like
> Jbuilder (for java) which suggest all avilable methods etc on typing
> the object.
>

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. They also sometimes list parameters to
functions - again mildly useful.


I you don't mind a Microsoft-centric Universe, there is the new C# (C-sharp)
programming language and environment. It is basically the newest language MS
has gotten behind, since Sun sued to stop MS from extending Java. So they
made their own language that's a combo of C, Java, and VB.


And what does that have to do with finding the "best c programming
language tool"? Did you just have a sudden impulse to insert an
advertisement here?

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #14
ra*********@hotmail.com (Rajnish) wrote:
Hi C experts,

Please suggest me best c programming language tool, which is like
Jbuilder (for java) which suggest all avilable methods etc on typing
the object.


Since you mention JBuilder, you ought to be aware of C++Builder
(by the same company). You can download a trial from www.borland.com
(This is offtopic for comp.lang.c so don't reply to this)
Nov 14 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: gaurav khanna | last post by:
Hi I need to store the credit card information in my database. I have been looking for some third party tools which could provide encryption for credit card numbers. The help I need is: a)...
7
by: SQLDBA | last post by:
I am in the process of evaluating some SQL Performance Monitoring /DBA tool to purchase (For SQL Server 2000). I have the following list of software that I came across and have to finalize which...
2
by: Dan V. | last post by:
What do you recommend to use for saving time and get great results for making image and css buttons on a site? Also top tabs like for navigation. Separate question maybe is what is the best tool...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
0
by: N S S | last post by:
Any suggestions on Which is the Best Tool to document ASP.NET Code. Also which is the Best Tool To Generate Flowcharts from Source Code. Quality of the Tool matter & not Price Thanks
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
4
by: Ron Brennan | last post by:
Good evening, Windows 2000, JDK 1.5. What opinions do people have on what way and tool programmaticly produces the best quality thumbnails from larger images? On the web I've seen Java...
3
by: keithb | last post by:
It has been years since I worked with ASP, having moved on to ASP.NET. However, I have just inherited a project adding some enhancements to an existing ASP site. What is the best tool to use for...
20
by: Joe | last post by:
Is any one charting packing considered to be the "best"? We've used ChartFX but wasn't too happy about the way data had to be populated along with some other issues which slip my mind right now and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.