Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ in Linux or Windows

Name: Anonymous 2012-01-11 1:20

>inb4 Google, I looked and couldn't find what I'm asking about

Is it better to code C++ programs in Linux or Windows? I'm new to this. I'm just learning and don't want to start off on the wrong track. I'm using Linux btw.

Couldn't you just take the same code written on Linux and compile it on Windows? The only difference would be certain OS-specific differences like window managers, etc., which could somewhat easily be fixed, right? If so, what's the big deal about porting programs to and from Linux and Windows? What am I missing?

If you also have some brotips on better languages than C++, please share them. I want to be able to make all sorts of programs; efficiency is important. My ideal language is one that can do "anything" so that I can specialize in a master race language. Tl;dr Please confirm whether C++ is god tier.

Name: Anonymous 2012-01-11 1:55

Start off on the wrong track? You already have, if youre using C++. Use C, honestly, is will put things in your way that _need_ to be in your way for you to structure a program right, such as using structures for different types, where C++ gives you the ``answer'' with inheritence, C causes you to actually think, and therefore it is harder to end up with sphaghetticode. Shitch to C now and you won't regret it. Also, you don't need to worry about portability because fuck windows. Development is better in Linux anyway.

Name: Anonymous 2012-01-11 4:55

>>1
C++ is not really god tier (common noob misconception), more like parasite. Its clumsy at high abstraction, worthless at low level, kinda designed like a joke (bitshift operators for IO).

In Linux C gets the best special treatment, C++ itself doesn't get any particularly special treatment other than its existence alongside various other language compilers in the GNU suite, Stallman considers Lisp the god tier but recommends C for critical mass adoption, Torvalds hates C++ publicly.

In Windows Microsoft used to give C++ the best treatment among its compiler tools in the early 1990s and competitors mainly provided C++ suites for what was apparently directed at an unrefined desktop+enterprise+etc programming market, but now this has waned as Microsoft pushes C# after the predominant market forces demanding managed environments pioneered by various desktop DB languages, FoxPro, VB, some SmallTalks and later Java, the C++ competitors have since gone out of business, went open source, and went into other markets.

In actuality for C++:
1. Has been losing out somewhat in desktop stuff since the early 1990s, a lot of this niche is filling in by various EXE packaged scripting languages and various toy and whatever languages.
2. Has had some in-read in embedded, but not in the same way, many of the C++ compilers are actually mainly C compilers with classes and exceptions, this half-C++ has been made `official' with the EC++ standard. C is probably more common in embedded as knowing what the hardware is doing is rather essential.
3. Inexistent in web client, server, enterprise, etc.

Finally:

1. If you're looking for a job you should probably learn something else.
2. If you want to make something great and get it out there without spending countless days on fixing memory issues on your own time you're better off learning something else.
3. Backtrack choice-points and say 'no'.

Predicate `something else':
1. On low level: C
2. On high level: anything else which should have:
a. Portable on at least 3 platforms and UNIX source (most languages that have more than one guy developing it will have between 6 and more).
b. Have bindings or baked in a portable window manager.
c. Lithp

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List