C programming - a good IDE?

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

Q_Q
Posts: 1
Joined: Thu Apr 02, 2009 9:17 pm UTC

C programming - a good IDE?

Postby Q_Q » Thu Apr 02, 2009 9:21 pm UTC

Hokay so... I've been working within the wonderfulness of python and .NET and then it hit me. Actually my friend did.

I absolutely suck at programming cus I don't know my systems basics. Shameful. No wonder I can't get a job. So now I'm going to read the white bible and learn everything from the ground up again. Yay.

What's a good editor to write C? The text editor in fedora is fine and all except I want something with auto-indent. I'm going to work with CLI so I just need a good editor. Any suggestion welcome!

0xBADFEED
Posts: 687
Joined: Mon May 05, 2008 2:14 am UTC

Re: C programming - a good IDE?

Postby 0xBADFEED » Thu Apr 02, 2009 9:39 pm UTC

Emacs, if you're on Linux.

User avatar
Yakk
Poster with most posts but no title.
Posts: 11129
Joined: Sat Jan 27, 2007 7:27 pm UTC
Location: E pur si muove

Re: C programming - a good IDE?

Postby Yakk » Thu Apr 02, 2009 9:53 pm UTC

I'd go with vim, assuming you already know how to use vim.

If you don't know how to use vim, you will go crazy learning to use it (hint: typing does not make words appear). So don't bother.

Wait...
Footnote: (And yes, I program in vim. This post is intended to make vim look all sexy and 1337.)
Last edited by Yakk on Thu Apr 02, 2009 10:30 pm UTC, edited 1 time in total.
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision - BR

Last edited by JHVH on Fri Oct 23, 4004 BCE 6:17 pm, edited 6 times in total.

User avatar
mrcheesypants
Posts: 408
Joined: Tue Apr 24, 2007 10:59 pm UTC
Contact:

Re: C programming - a good IDE?

Postby mrcheesypants » Thu Apr 02, 2009 10:25 pm UTC

Q_Q I'm going to assume you're not a troll and just slap you on the wrist for asking that question. There's a thread in religious wars here that should give you more information to make an educated choice.

But seriously, don't ask what editor to use in a Linux environment. Asking for an IDE is pushing it, and asking the same question for windows is actually a good question, but on a Unix like environment? Just no.

EDIT: Go for either vi/emacs/eclipse for your programming environment.
(11:20:42 PM) NapalmCornflak3s(Parkaboy): organizing porn is easy at my house. there are two folders: "tentacle" and "other"

achan1058
Posts: 1783
Joined: Sun Nov 30, 2008 9:50 pm UTC

Re: C programming - a good IDE?

Postby achan1058 » Fri Apr 03, 2009 6:20 am UTC

mrcheesypants wrote:EDIT: Go for either vi/emacs/eclipse for your programming environment.
Agreed. Use emacs/vi for things that doesn't involve couple dozens of files, and eclipse if it does.

User avatar
Likpok
Posts: 471
Joined: Tue Feb 20, 2007 6:21 am UTC
Location: :noitacoL
Contact:

Re: C programming - a good IDE?

Postby Likpok » Tue Apr 14, 2009 10:32 pm UTC

Also, if you have access to Visual Studio, it is pretty good. The debugger is far better than any you will have the (mis)fortune to use on linux (i.e. it's better than gdb).

The rest of it isn't bad enough to bring you down.
There's an art to cooking toast
Never try to guess
Cook it till it's smoking
Then twenty seconds less.

akashra
Posts: 503
Joined: Tue Jan 01, 2008 6:54 am UTC
Location: Melbourne, AU
Contact:

Re: C programming - a good IDE?

Postby akashra » Wed Apr 15, 2009 2:58 am UTC

Honestly, if you want the best? Switch to Windows and get Visual Studio. I really can't stress this enough. There are still no IDEs that come close to it, and I've gone through a lot in my time.

(Ok: Flame on!)
( find / -name \*base\* -exec chown us : us { } \ ; )

Comic JK
Posts: 270
Joined: Wed Feb 18, 2009 6:08 pm UTC

Re: C programming - a good IDE?

Postby Comic JK » Wed Apr 15, 2009 10:04 am UTC

CodeBlocks would be my choice. It has a very clean, orderly interface and offers lots of templates, etc for different project types. It's not a compiler, just an environment, so you have to point it to a compiler elsewhere on your machine, such as the free MingW. So far, I'm very pleased with this combination.
Image
A webcomic funnier than life itself. Updated Monday-Friday.

User avatar
Emu*
Posts: 689
Joined: Mon Apr 28, 2008 9:47 am UTC
Location: Cardiff, UK
Contact:

Re: C programming - a good IDE?

Postby Emu* » Wed Apr 15, 2009 12:35 pm UTC

I enjoyed using SharpDevelop for ASP.net...
Cosmologicon wrote:Emu* implemented a naive east-first strategy and ran it for an hour, producing results that rivaled many sophisticated strategies, visiting 614 cells. For this, Emu* is awarded Best Deterministic Algorithm!

User avatar
evilbeanfiend
Posts: 2650
Joined: Tue Mar 13, 2007 7:05 am UTC
Location: the old world

Re: C programming - a good IDE?

Postby evilbeanfiend » Wed Apr 15, 2009 7:06 pm UTC

Likpok wrote:Also, if you have access to Visual Studio, it is pretty good. The debugger is far better than any you will have the (mis)fortune to use on linux (i.e. it's better than gdb).

The rest of it isn't bad enough to bring you down.


yes but linux get valgrind which kicks ass for memory errors (which as a c newb you will almost certainly run into at some point)

personally i'd go for emacs for editing console C apps, the lack of intellisense is more than made up for by dabbrev-expand in C imho and pretty much every other VS editor feature is strictly inferior to emacs. but then i know my emacs-fu.

of course if you want to start using windows forms in your program then you might as well do it all in VS, and its certainly usable, it'll just grate slightly if you already emacs.

and you can pretty much s/emacs/vim/ if you are that way inclined
in ur beanz makin u eveel

User avatar
Mach1ne
Posts: 35
Joined: Tue Feb 24, 2009 5:20 pm UTC
Location: This exact location but 3 minutes from now

Re: C programming - a good IDE?

Postby Mach1ne » Thu Apr 16, 2009 4:14 pm UTC

Hmm I used vim at the moment for C and Eclipse for JAVA. I know Eclipse does have a C/C++ IDE but I haven't tried. If its as nice the JAVA one that I'm sure it'll be a decent one. Emacs and vim aren't bad, and once you get the hang of the shortcuts in emacs you can get sutff done very fast.

the.coding.eye
Posts: 52
Joined: Thu Apr 16, 2009 4:56 am UTC
Contact:

Re: C programming - a good IDE?

Postby the.coding.eye » Fri Apr 17, 2009 3:38 am UTC

Likpok wrote:Also, if you have access to Visual Studio, it is pretty good. The debugger is far better than any you will have the (mis)fortune to use on linux (i.e. it's better than gdb).


Agree. If you're running Windows, Visual Studio is fantastic and the debugger is indispensable. Microsoft has free versions of Visual Studio called "Express Editions". I would start by download and installing Visual C++ Express Edition and SQL Server Express Edition. I use C# and ASP.NET. If you are a student, Microsoft has a program called DreamSpark that gives you free access to their expensive software. I am currently learning with the version of Visual Studio 2008 Professional that I got from there.
"In theory, theory and practice are the same. In practice, they are not."

Grumpy Code Monkey
Posts: 99
Joined: Tue Feb 19, 2008 4:10 pm UTC
Location: Blue Texas

Re: C programming - a good IDE?

Postby Grumpy Code Monkey » Fri Apr 17, 2009 4:50 pm UTC

When you say you don't know your system basics, what exactly do you mean? I ask because learning C may not actually be the right answer for you.

As far as IDEs go, I have no real recommendation. A text editor, a compiler, a debugger, and K&R 2 + H&S 5 should be enough to get you started. Most of my development experience is on minis and Unix/Linux systems, so I'm used to vi, gcc/make, and gdb. You don't need intellisense to learn C; the language isn't that big.

Bear in mind, C doesn't have built-in support for networking, graphics, sound, file system management, etc. It was designed back in the days of big time-share systems with dumb hardcopy terminals, and the standard I/O library reflects that. You will have to rely on external libraries in order to do anything "interesting", and those will vary between platforms (and that's where things like intellisense come in handy; the platform API can be huge).

villadelfia
Posts: 98
Joined: Sat Apr 28, 2007 2:35 am UTC

Re: C programming - a good IDE?

Postby villadelfia » Mon Apr 27, 2009 12:11 am UTC

Grumpy Code Monkey wrote:When you say you don't know your system basics, what exactly do you mean? I ask because learning C may not actually be the right answer for you.

As far as IDEs go, I have no real recommendation. A text editor, a compiler, a debugger, and K&R 2 + H&S 5 should be enough to get you started. Most of my development experience is on minis and Unix/Linux systems, so I'm used to vi, gcc/make, and gdb. You don't need intellisense to learn C; the language isn't that big.

Bear in mind, C doesn't have built-in support for networking, graphics, sound, file system management, etc. It was designed back in the days of big time-share systems with dumb hardcopy terminals, and the standard I/O library reflects that. You will have to rely on external libraries in order to do anything "interesting", and those will vary between platforms (and that's where things like intellisense come in handy; the platform API can be huge).


I know K&R, but what is H&S?

User avatar
Xeio
Friends, Faidites, Countrymen
Posts: 5101
Joined: Wed Jul 25, 2007 11:12 am UTC
Location: C:\Users\Xeio\
Contact:

Re: C programming - a good IDE?

Postby Xeio » Mon Apr 27, 2009 1:04 am UTC

Mach1ne wrote:Hmm I used vim at the moment for C and Eclipse for JAVA. I know Eclipse does have a C/C++ IDE but I haven't tried.
I prefer Netbeans over Eclipse myself (the built-in GUI editor for java is nice as well if you need it). It also worked better for C that I remember, though I don't recall exactly why (I think I had problems using the debugger in Eclipse) since it's been a while since I've used it. Visual Studio is still awesome for development on windows though.

User avatar
zombiefeynman
Posts: 211
Joined: Thu Apr 02, 2009 4:16 pm UTC

Re: C programming - a good IDE?

Postby zombiefeynman » Mon Apr 27, 2009 4:24 pm UTC

I cut my teeth on codeblocks (for autocomplete and autoindent) then switched over to emacs to get the M-x compile (which is somehow incredibly sexier than codeblock's f9).

But (as already demonstrated) there are wide opinions on this sort of thing. I suggest downloading them all and then using the first one you can actually get helloworld.c to compile in.

User avatar
Likpok
Posts: 471
Joined: Tue Feb 20, 2007 6:21 am UTC
Location: :noitacoL
Contact:

Re: C programming - a good IDE?

Postby Likpok » Tue Apr 28, 2009 12:56 am UTC

One tip: Go to Intel's website and download icc, the intel c compiler.

It will save you massive amounts of time figuring out gcc's rather bizarre error messages.
There's an art to cooking toast
Never try to guess
Cook it till it's smoking
Then twenty seconds less.

Grumpy Code Monkey
Posts: 99
Joined: Tue Feb 19, 2008 4:10 pm UTC
Location: Blue Texas

Re: C programming - a good IDE?

Postby Grumpy Code Monkey » Mon May 04, 2009 7:37 pm UTC

villadelfia wrote:I know K&R, but what is H&S?


Harbison & Steele, "C: A Reference Manual", currently 5th edition. A good companion reference for K&R 2. It's been my primary reference for C programming since the 2nd edition (ca. 1986).

Ended
Posts: 1459
Joined: Fri Apr 20, 2007 3:27 pm UTC
Location: The Tower of Flints. (Also known as: England.)

Re: C programming - a good IDE?

Postby Ended » Mon May 04, 2009 8:11 pm UTC

Likpok wrote:One tip: Go to Intel's website and download icc, the intel c compiler.

Note that you'll need to purchase or otherwise have access to a licence if you want to keep on using it after the evaluation period.
Generally I try to make myself do things I instinctively avoid, in case they are awesome.
-dubsola


Return to “Coding”

Who is online

Users browsing this forum: No registered users and 12 guests