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

Pages: 1-4041-

what's so bad about c++?

Name: Anonymous 2007-06-16 14:35 ID:yG+Jc4DX

what's so bad about c++? maybe i'm missing something, but after two years of c, c++ looks very nice.

Name: Anonymous 2007-06-16 14:36 ID:rReltTgc

Everything.

Name: Anonymous 2007-06-16 14:37 ID:v6ueloxt

Lack of optional automatic memory management. Failed overcomplicated set of features of which everybody uses his own practical subset, which differs from everybody else's. Templates (the failure of the language to provide dynamic typing).

Name: Anonymous 2007-06-16 15:04 ID:e3TW3ohJ

it has some good stuff. if you are into super efficient stuff but want a bit more power than C, it's good.
But still, it's a fucking mess. what do you think about D?

Name: Anonymous 2007-06-16 15:09 ID:v6ueloxt

If you are into super efficient stuff go for C.

Name: Anonymous 2007-06-16 15:21 ID:e3TW3ohJ

but c++ is more powerful, even if you use a subset of it

Name: Anonymous 2007-06-16 15:31 ID:Heaven

>>6
Expressiveness is not equal to power. Besides that, "powerful" as a description for a language tells you almost as much as "enterprise" does.

Name: Anonymous 2007-06-16 15:34 ID:e3TW3ohJ

powerful as in less code + clarity + more safety.

Name: Anonymous 2007-06-16 15:37 ID:e3TW3ohJ

>>8
(only if you use a subset)

Name: Anonymous 2007-06-16 17:31 ID:Heaven

In terms of speed, C is at most 5 to 10 percent faster than C++. Those few cycles aren't worth the trouble dealing with all those C hassles.

Name: Anonymous 2007-06-16 18:11 ID:Heaven

>>10
what hassles?

Name: Anonymous 2007-06-16 18:18 ID:OlRc0pea

C has hassles. C++ cures some of them, keeps the rest, and introduces a whole pile more.

Moral of the story: don't use either without good reason.

Name: Anonymous 2007-06-17 3:28 ID:Heaven

Hell, why stop there?

Computers are a hassle: don't use them without good reason (porn).

Name: Anonymous 2007-06-17 11:43 ID:sA4FafnY

>>10
They are definitely worth the trouble when you are paying for time on a supercomputer.

Name: Anonymous 2007-06-17 12:39 ID:Ja2wUjAS

>>6
If you want speed, who cares? Also >>7.

>>8
powerful as in less code + clarity + more safety.
(only if you don't use it)

>>10
It's C++ what's a hassle to do. C is trivial. If you learnt C++ first, then got scared with C, you don't know C (or C++) at all. Read K&R.

Name: Anonymous 2007-06-17 19:45 ID:iQJh7VGx

combine C and C++ into CC++! lol

Name: Anonymous 2007-06-17 20:12 ID:0UOb3jOh

>>14
You should use FORTRAN for the optimal supercomputing performance.

Name: Anonymous 2007-06-18 1:23 ID:Xh3MDjsZ

Use C#.

Name: Anonymous 2007-06-18 1:33 ID:tOdK2t5A

>>15
I did that, I learned C++ first and then C.

Been using C ever since, somehow.

Name: Anonymous 2007-06-18 3:59 ID:2Zvmge8x

Use only a subset of C++ for maximum clarity. This means no multiple inheritance, use templates sparingly and try to minimize the number of classes your program uses.

Name: Anonymous 2007-06-18 6:47 ID:FsqEF8nd

>>18
go headbutt a bullet

Name: Anonymous 2007-06-18 6:57 ID:OQ6oAmcm

>>18
No.

>>20
That's great, if only everyone did it.

Name: Anonymous 2007-06-18 15:46 ID:mvh+ry43

>>20
So basically use C?

Name: Anonymous 2007-06-18 21:05 ID:B5jwI7V0

>>10

You're pulling those numbers out of your ass.
You know that most C++ constructs don't come with any extra runtime cost, right? And that those that does are clearly documented, and usually you need to do something that cost as much to do the same in C (like using function pointers to emulate virtual methods)

>>20
Alternative: learn to code
Every feature of every language can be put to bad use. A programmer that sucks will manage to write shitty code no matter how many language features you forbid him to use.

Most, if not all the shitty C++ code I've seen seldom used any C++ feature that doesn't exist in java.

Name: Anonymous 2007-06-18 21:16 ID:1+70Jidh

C++ is shit

Name: Anonymous 2007-06-18 22:21 ID:Q+EfxAzp

>>24
the truth is that if you don't want to cope with incomprehensible compilation errors, you better stay away from some c++ features.

Name: Anonymous 2007-06-18 23:18 ID:kwoyrx6F

A programmer that sucks will manage to write shitty code no matter how many language features you forbid him to use.
Perl loves you too.

Name: Anonymous 2007-06-19 1:07 ID:zzGmfcIb

>>24
pascal

Name: Anonymous 2007-06-19 1:32 ID:YSJh5AXF

COBOL!

Name: Anonymous 2007-06-19 2:39 ID:ldH+gR2I

Learn Sicp

Name: Anonymous 2007-06-19 5:38 ID:/O9Tmcf6

C++ seduces you into writing methods and other useless crap that you'll never use, but "could see how someone could". Only you're the only person who ever sees that code, so.

Also, template AIDS.

Name: Anonymous 2007-06-19 5:49 ID:/kumtvn2

>>24
(Note: I'm not >>10.) Even though C++ should come at little extra cost, the object paradigm tends to produce less efficient code, and encourages overengineering and bloat.

As for the features, sure, all can be put to good or bad use, but some are almost always bad, while some are almost always good. And out of these features, few pose a significant advantage over plain C. I suggest to disallow the ones that are almost always bad from the general public, allowing them for EXPERT PROGRAMMERS only.

What I really mean is that everyone, >>24, should stick with today's special: C++--.

>>31
Templates bite. They are somewhere between a feature and a misfeature, a fart coming from a language which doesn't support dynamic typing.

Name: Anonymous 2007-06-19 9:35 ID:4nJc4rRF

>>24
If you need to know, those numbers are from Stroustrup's The C++ Programming Language, and I'm inclined to believe the man knows what he's talking about.

I'm also aware that using only C features in C++ will not make the code any slower than equivalent C code, but why you would program in C++ if you do not use its defining features is beyond me.

Name: Anonymous 2007-06-19 12:26 ID:/kumtvn2

>>33
C++--, today's special

Name: Anonymous 2007-06-19 18:25 ID:ldH+gR2I

>>34
Syntax error is today's special? Wonderful.

Name: Anonymous 2009-01-14 12:19

LISP

Name: Anonymous 2009-03-06 13:29

The homosexual jew nigger it is and   probably write an   interpreter for it   function mber Number.

Name: ​​​​​​​​​​ 2010-10-24 1:45

Name: Anonymous 2010-11-15 18:22

Name: Anonymous 2010-11-26 11:31

Name: Anonymous 2011-02-03 0:30

Name: Anonymous 2011-02-17 20:25

dubz

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