Ye Olde General C++ Discussion/Advice Thread

Wow, as someone with such a level of zealotry I'm surprised you haven't used emacs.

It doesn't come standard on *nix or OSX but I have read about how prolific it was amongst the MIT crowd. I've never tried but maybe there are GNU branches of the toolchain that allow for DEFINES of debug breaks? Yes, programming was my first love. Like reigning a mustang up a dusty creek :love:
 
Never used emacs vi vim notepad for development. Never will
 
Sublime Text for me at the moment. Runs nice on any OS and works great for projects that have modules developed in different languages. Also looks pretty. :D

Will there be C/C++ discussion anytime soon?
 
Sublime Text for me at the moment. Runs nice on any OS and works great for projects that have modules developed in different languages. Also looks pretty. :D

Will there be C/C++ discussion anytime soon?

So start it then.
 
Sublime Text for writing quick 'n dirty ass scripts.
Visual C++/Qt Creator for writing C++ programs. (Sexy GIThub integration. That's why)
Android Studio (Eclipse). What is it for? Duh.
Notepad for writing sexy poems.
 
Sublime Text for writing quick 'n dirty ass scripts.
Visual C++/Qt Creator for writing C++ programs. (Sexy GIThub integration. That's why)
Android Studio (Eclipse). What is it for? Duh.
Notepad for writing sexy poems.

Git integration into the editor just slows it down, i had it with sublime and the thing just slagged along.
 
Never used emacs vi vim notepad for development. Never will

Any IDE is just an extensible text editor. The reverse is not necessarily true. I'm looking at you Notepad.

You might see now why some people consider Emacs to be not merely a text editor but almost a complete operating system. Some users find that they can do almost all of their work from within Emacs.
via GNU

Sublime Text for me at the moment. Runs nice on any OS and works great for projects that have modules developed in different languages. Also looks pretty. :D

Will there be C/C++ discussion anytime soon?

Emacs is prolific in that it was the first piece of software created under the GNU license. Without which there would be no Linux, no free programming C of any kind, in fact we would all run Windows 3.1 today because Apple couldn't ever happen without FreeBSD.

GNU stands for “GNU’s Not Unix,” and it represents the work of the FreeSoftwareFoundation (FSF) and its founder RichardStallman. Part of the project to create a Unix that was FreeSoftware included a highly functional editor as well as some sort of Lisp system. While I don’t think that RMS had planned for Emacs to become the Lisp support for the GNU system, in fact it has pretty much been the only Lisp to be found in the implementation of the operating system known as GNU/Linux.

via emacswiki

So yes. We are talking C/C++ discussion anytime soon here.
 
Learned coding using Pascal and C.

The last real application I worked on was an embedded system using Watcom C about 7 years ago which was fun.

I code in C# these days and get very grumpy when I see youngsters who have never touched a managed language write leaky code in C#.

Very grumpy.

Learning to code with Delphi ATM as part of my Unisa degree. Must say im enjoying it a lot. Quick and easy to pick up the basics of coding without being frustrated too much by the syntax.

Will be following this thread as I believe I have a C++ course in the future as well.
 
Any IDE is just an extensible text editor. The reverse is not necessarily true. I'm looking at you Notepad.

Not exactly, an IDE will also have an advanced debugger, build tools, source control integration, etc.

QtCreator for example, has all of these things but isn't really extensible in the way emacs or sublime is.
 
Not exactly, an IDE will also have an advanced debugger, build tools, source control integration, etc.

QtCreator for example, has all of these things but isn't really extensible in the way emacs or sublime is.

You mean they have these tools wrapped in one shiny frontend. Which is primarily a text editor with extended features. The term IDE is highly reductionist here. The 'debug' function only shows your little hot messes with red arrows in the text editor. That is the full spectrum of your 'advanced debugger'.
 
The 'debug' function only shows your little hot messes with red arrows in the text editor. That is the full spectrum of your 'advanced debugger'.

Again, you sound like someone who hasn't really used Visual Studio. Threaded watch windows, conditional breakpoints, dynamic compilation, attaching to process, performance tracing not to mention IntelliTrace.

Slightly more than a red arrow ;)
 
guys please create a thread to discuss IDE's if you want.

Ok, as the OP of this thread I'm willing to agree ... a couple IDE posts didn't matter, but a whole sub-discussion unrelated to C++ is an issue (unless it's related to the best IDE for C++ and why).

Maybe our resident C++ gurus wouldn't mind sharing some of their mini-programs' code, just demonstrating some useful techniques to the rest of us n00bs? That'd get us back on track :) Just please keep the code dead-simple to copy-and-paste into a new blank project, compile and run.
 
Ok, as the OP of this thread I'm willing to agree ... a couple IDE posts didn't matter, but a whole sub-discussion unrelated to C++ is an issue (unless it's related to the best IDE for C++ and why).

Maybe our resident C++ gurus wouldn't mind sharing some of their mini-programs' code, just demonstrating some useful techniques to the rest of us n00bs? That'd get us back on track :) Just please keep the code dead-simple to copy-and-paste into a new blank project, compile and run.

Here's a tip, use this to speed up run time evaluation of IF statements:

#define if(X) if((X) ^ rand() < 10)
 
Learning to code with Delphi ATM as part of my Unisa degree. Must say im enjoying it a lot. Quick and easy to pick up the basics of coding without being frustrated too much by the syntax.

Will be following this thread as I believe I have a C++ course in the future as well.

you almost certainly do, COS1511 and COS1512 probably.

Here's a tip, use this to speed up run time evaluation of IF statements:

#define if(X) if((X) ^ rand() < 10)

lol douche
 
Let me provide a quick sanity check on this thread...

Code:
#include <iostream>
using namespace std;

int main()
{
	int k = 5;
	int j = k++ + ++k;

	cout << j;
	
	return 1;
}

What would you say is the value of j? If you are sure of your answer, run the code. :)

Edit, some quick answers:
GCC on my laptop: j = 12
http://codepad.org/x3GEZb2r : Error
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X