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

Pages: 1-4041-

Why use C++

Name: Anonymous 2009-07-02 22:08

Why is C++ so useless and to all the C++ people here what do you use it for?

- It is useless for systems programming because you can just use C and every serious systems programmer does that and every serious kernel/driver programmer hates C++.

- There are nicer languages for userspace programming so why use C++? It doesn't even have garbage collection and its standard library is a joke. Not to mention all the things that are so horribly broken in this language.

Why use C++ at all? Seriously this language is useless and Linus Torvalds agrees.

Name: Anonymous 2009-07-02 22:12

>>1
The games industry love C++.

Name: Anonymous 2009-07-02 22:20

>>2
I'm not really quite sure why either.

Name: Anonymous 2009-07-02 22:22

>>3
It's actually more useful than these basement nerds understand.

Name: Anonymous 2009-07-02 22:28

>>4
I don't particularly like C++ because it feels like the people who developed just glued things on to C. I however am not an [b][i][o][u]EXPERT[/i][/o][/i][/b] programmer, so I my opinion is not particularly worth anything.

Name: Anonymous 2009-07-02 22:28

C++ has a lot of problems, but Bjarne specifically created it for himself. Unlike 9/10 of programmers that just bitch about what exists, he made up something that did precisely what he needed it to.

Metaprogramming is also thoroughly enjoyable.

Name: Anonymous 2009-07-02 22:29

>>1
There's a sort of programmer who's more interested in the act of writing code and solving puzzles than anything else. C++, with its heaping set of extra puzzles, verbosity, and slow development time, fits the bill perfectly. You don't even need an interesting project to get your brain twisted. This type of programmer is also very fond of things such as manual memory management, slow compilation, and anything else that makes them feel like they're a “real programmer”.

Name: Anonymous 2009-07-02 22:29

>>5
Amazing BBCode fail.

Name: Anonymous 2009-07-02 22:30

>>7
good post, good points.

Name: Anonymous 2009-07-02 22:31

>>7
Wouldn't you use C if you want manual memory management?

Name: Anonymous 2009-07-02 22:32

>>6
Metaprogramming is also thoroughly enjoyable.
Of course it is (you weren't referring to metaprogramming in C++, were you?).

Name: Anonymous 2009-07-02 22:35

You have to be a different kind of person to love C++. It is a really interesting example of how a well-meant idea went wrong, because [C++ creator] Bjarne Stroustrup was not trying to do what he has been criticized for. His idea was that first, it might be useful if you did to C what Simula did to Algol, which is basically act as a preprocessor for a different kind of architectural template for programming. It was basically for super-good programmers who are supposed to subclass everything, including the storage allocator, before they did anything serious. The result, of course, was that most programmers did not subclass much. So the people I know who like C++ and have done good things in C++ have been serious iron-men who have basically taken it for what it is, which is a kind of macroprocessor. I grew up with macro systems in the early ’60s, and you have to do a lot of work to make them work for you—otherwise, they kill you.
I'd sure like to see some good, solid code examples of what Alan Kay is talking about here. Then I could truly understand the soul of C++.

Name: Anonymous 2009-07-02 23:17

>>11
Metaprogramming in C++ is just as great as - and possibly better than - metaprogramming in any other language, provided that you enjoy working with C++ like >>7 suggests.

Name: FrozenVoid 2009-07-03 1:56

I've tried C++ before and didn't liked it(except operator overloading(which C is missing)).
The whole Classes,Objects, Exceptions and misc. OOP crap was mostly useless and counterproductive.



________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Tragedy, for me, is not a conflict between right and wrong, but between two different kinds of right.

Name: Anonymous 2009-07-03 3:22

>>13
Ahhhh... you make a good point.

Name: Darkkal !CTaNqTxDio 2009-07-03 5:19

>>2
360 doesnt

i ♥ c#

Name: Anonymous 2009-07-03 5:40

>>2
Actually I heaard that THE GAME is written in C++

Name: Anonymous 2009-07-03 5:48

>>17
No, it was ported to Fjolnir

Name: Anonymous 2009-07-03 6:19

Like a successful religion suppresses its host's desire for logical reasoning, C++ when taught to a programmer can damage his ability to differentiate between basic programming concepts, and the C++ syntax for these.

Furthermore, like MMORPGs like WoW create a feeling of investment, so too can C++ invoke a sense of "This was a lot of work to learn, I don't want to go through that again with another language.", and "It was this difficult to learn, so it must be powerful."

It accomplishes this through the stuff mentioned in >>7. In particular, while the term "language lawyering" certainly can be used for languages like C, perhaps for some argument about some obscure edge case the standard is vague about, C++ is unusual in that it, being more organically grown than hemp, makes this a necessary and integral part of everyday programming. Your growth as a C++ programmer lies not in learning about general programming techniques, algorithms or abstractions, but rather in a never-ending discovering of the language's features and pitfalls. They'll admit as much, as they're rather proud of how it's "not a language you can ever fully know" or some such, and they act smug like a WoW whore about how they're a higher level than you because they started earlier and wasted a lot of time grinding.

It should be clear that while C++ does has a high degree of fitness, it is not necessarily beneficial to its host, and that C++, especially when taught to the inexperienced, can mentally mutilate programmers beyond hope of regeneration.

Name: Anonymous 2009-07-03 9:26

It's really simple. Everyone is (sometimes needlessly so) obsessed with performance of their applications. C++ is the highest level language you can use without sacrificing performance.

Name: Anonymous 2009-07-03 9:33

>>20
C++ is the highest level language you can use without sacrificing
That's very depressing.

Name: Anonymous 2009-07-03 9:49

C++ is the highest level language you can use without sacrificing performance.
This is a call to arms, ye Haskell Nomads! Let's use our state of satori to create some interactive application that'll compete well with C.

Name: Anonymous 2009-07-03 9:51

If you call C++ useless, you don't know a fuckin shit about programming. If you apply for a programming job (not a shitty one), they will expect you to know C++. You should ask that for alternative languages, not for C, C++ etc.

Name: Anonymous 2009-07-03 9:54

For example, I'm a D fan and I use it on my personal projects all the time. But I know that I will never find a D job. C++ is the only choice for serious jobs (unless you find a very stupid company that uses java.)

Name: Anonymous 2009-07-03 9:56

>>23,24
You are using a different definition of useless to the one we are.

Name: Anonymous 2009-07-03 10:07

>>25
Oh, my bad. I get it now.

OOP is not useless. Listing C++ as a "pro" in stytem programming is stupid. Listing C as a "pro" in game programming etc. is more stupid.
For example, XMMS2 guys say "MPD uses C++, we use C, we rule". This is plain stupid, I will never understand them.

Name: Anonymous 2009-07-03 10:11

>>24
It's really unfortunate, as I think D has the potential to be THAT high level language that is competetive to C/C++, but it's not really gaining much steam.

Name: Anonymous 2009-07-03 10:21

>>27
Exactly. but problem is no major company supports it and it is too late for a C++ replacement. I think main usage of D will be indie games. And it is a damn good language for game programming.

Name: Anonymous 2009-07-03 11:46

>>24
My company uses both C++ and Java! That's just what it takes to compete in the real world where useful software is written!!

Name: Anonymous 2009-07-03 12:11

>>29
Haha, this is a digression but my lab actually uses Java combined with C preprocessor elements. We have to run our code through the C preprocessor before compiling -_-.

Name: Anonymous 2009-07-03 12:16

>>29
Shipping adequately reliable software in a cost (time and money) effective manner is the theoretical way of getting software to compete in the real world. Java or C++ are not necessary for this to happen.

Name: Anonymous 2009-07-03 12:26

>>30
Oh my god... hahahah

Name: Anonymous 2009-07-03 12:56

>>30
I think the C pp should be utilized more in other languages. It's a very powerful tool and one of the things that made C a great language

Name: Anonymous 2009-07-03 12:59

>>33
I agree, we only do this because the C pp offered the most efficient way to generate the code we needed. I just wish we didn't have to rely on a method that thoroughly breaks any IDE you'd want to use with Java.

Name: Anonymous 2009-07-03 17:15

>>20
Yes, that is something that C++ programmers actually believe.

Name: Anonymous 2009-07-03 17:49

>>35
That's understandable, since it's true.

Name: Anonymous 2009-07-03 18:49

>>36
This is what C++ programmers actually believe.

Name: Anonymous 2009-07-03 19:00

>>36
Perhaps you had better share your magical compiler with the rest of the world, because most people are still using hand-written assembly for really performance-critical sections.

Name: Anonymous 2009-07-03 23:21

>>38

Well written C++ runs just as fast as well written C.

Name: Anonymous 2009-07-03 23:27

Well written C++
no such thing exists.

Name: Anonymous 2009-07-03 23:34

Name: FrozenVoid 2009-07-04 3:10

>>41 I Always try to make my C functions "inline void()"


_______________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Nature is busy creating absolutely unique individuals, whereas culture has invented a single mold to which all must conform. It is grotesque.

Name: Anonymous 2009-07-04 6:55

>>41

Touché. That C++ feature is very silly.

Name: Anonymous 2009-07-05 14:37

>>1
I find it interesting that you arrived at that conclusion, despite the prevalence of C++.

I don't think you're as familiar with C++ as you would like to believe.

Name: Anonymous 2009-07-05 14:40

>>44
What do you mean by that? please elaborate. I'm a driver and embedded systems developer so I can only talk about low-level programming and C++ is hardly used for that. In fact most of the guys I know hate it.

Name: Anonymous 2009-07-05 15:37

>>45
I didn't say that system programming used C++. I said that it's quite prevalent in the market. Businesses don't like costly and broken things. If C++ were as costly and broken as some would like you to believe, no business in its right mind would use it. Ever.

Name: Anonymous 2009-07-05 15:39

>>46
THIS IS WHAT IDIOTS ACTUALLY BELEIVE

Name: Anonymous 2009-07-05 15:43

>>46
/prog/ is a huge neckbeard wankfest over SICP, they don't know or care about practical applications for programming.

Name: Anonymous 2009-07-05 15:43

>>46
C++ had its time which was the 90s. today with the advent of languages like c# and java however it's become obsolete.

Name: Anonymous 2009-07-05 15:47

>>48
If you don't like it fuck off

Name: Anonymous 2009-07-05 17:33

>>46
If C++ were as costly and broken as some would like you to believe, no business in its right mind would use it. Ever.
They don't. Any business that uses it isn't in its “right mind”.

Name: Anonymous 2009-07-05 17:49

COBOL is also quite prevalent in the market.

Name: Anonymous 2009-07-05 17:53

>>52
It's no longer as prevalent as Java (still not sure if this is a good thing)

Name: Anonymous 2009-07-05 19:34

>>53
(still not sure if this is a good thing)
You might want to actually use COBOL before saying such things.

Name: Anonymous 2009-07-05 20:52

>>54
>>53-san was merely saying that there are better options than Java to boot out COBOL, not that Java is worse than COBOL.

Name: Anonymous 2009-07-05 21:18

>>55
But Java is better than COBOL, and thus it would be silly of >>53-kun to complain.

Name: Anonymous 2010-11-16 3:39

Name: Anonymous 2011-02-03 6:08


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