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

C++ Sucks

Name: Anonymous 2007-09-10 14:45 ID:qfe8pgUF

C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.

Name: Anonymous 2007-09-11 19:11 ID:PYk7HKwf

In during actual discussion.

Name: Anonymous 2007-09-11 20:12 ID:Ps4Ztxph

>>40
Parrot is written in C, requires C.. it's written in it.  JVM, in C, and so on.  As long as these things are the case it'll be around.  Even ASM is still commonly used in the workplace.  I also see lots of C apps coming out all the time.  Like.. most web browsers, X, XFCE, compiz-fusion, windows, the list goes on.  Most of the apps you know and love are either C, C++, or possibly Obj C.  Sorry. I know you like your high level languages, but thems the breaks.

Name: Anonymous 2007-09-11 21:10 ID:pFH70RNg

>>42
Most of the apps you know and love are either C, C++, or possibly Obj C.
I wasn't talking about C++ or ObjC now, was I?

Parrot is written in C, requires C.. it's written in it.  JVM, in C, and so on.
Well, great, the virtual machine and operating system is written in C. If everyone is writing to the VM and not C, who the hell cares what the VM is written in?

Does the fact that CLI, Parrot, JVM and LLVM let you cut out using C for bridging not make obvious where things are going?

Name: Anonymous 2007-09-11 22:20 ID:V5rPbGc6

>>42 Parrot is written in C, requires C.. it's written in it.
Oh, wow. Yeah, we're all using that. Oh, wait. The only decent Perl 6 (not that it's in use either yet) implementation is written in what, now?

Name: Anonymous 2007-09-11 22:44 ID:Heaven

Nobody cares about Perl 6

Name: Anonymous 2007-09-11 23:19 ID:pZXg1E62

Since when are most browsers C apps?

The only parts written in C are the parts that are meant to be easily usable across many languages (which virtual machines are meant to obliviate, BTW).

Name: Anonymous 2007-09-11 23:22 ID:V5rPbGc6

>>45
Yes, that too.

Name: Anonymous 2007-09-12 0:10 ID:q2SDGspt

>>35 is ENTERPRISE

C isn't bad, treat it as portable assmbly so we can stop hearing the bitching of those OMG PHP JAVA programmers

Name: Anonymous 2007-09-12 0:19 ID:EfB0rLr9

>>48
Yeah, but it'd be nice if we could treat it as a bit more than just (semi-)portable assembly.

I think his complaints are completely justified, and C's one of my favorite languages. It pisses me off that everyone else has all the goodies, which means C is really only good for refactoring hotspots in higher-level code. :/

Name: Anonymous 2007-09-12 0:55 ID:RTHjFDoZ

>>49
So you just need a good library, the language itself is fine.
Or use Objective-C.

Name: Anonymous 2007-09-12 1:44 ID:EfB0rLr9

So you just need a good library
Yeah, exactly.

the language itself is fine.
Which won't fix strings then, due to string literals.

Or use Objective-C.
Very tempting. I'm waiting for 2.0 before I spend the time learning it.

Name: Anonymous 2007-09-12 5:10 ID:WjcqQalR

>>36
Yes, but what about string literals? Changing from C to Pascal strings (or better) would cause problems.
We already have u"...", so we could have s"...".

>>38
Slightly OT, but why not just the length?
How do you tell when you've run out of memory? (Note that these are mutable strings.)

Name: Anonymous 2007-09-12 7:21 ID:Tti723mY

>>52
How do you tell when you've run out of memory? (Note that these are mutable strings.)
I assumed you'd only append stuff with strcat() or whatever, which would do the checking for you. And you'd get automatic logarithmic reallocation with a special realloc() function.

Name: Anonymous 2007-09-12 7:24 ID:4xFntt8P

Once you start dynamically reallocating, that means you need handles and/or garbage collection for anything else that might be referencing those strings.  C FTL.

Name: Anonymous 2007-09-12 7:53 ID:WjcqQalR

>>53
Okay, and how would it do the checking if you only keep the string length?

>>54
Not if the string is like:

struct DecentString {
    unichar *s;
    unsigned int len;
    unsigned int alen;
}

Name: Anonymous 2007-09-12 7:54 ID:4xFntt8P

>>55
Right.  And that's called a handle.

Name: Anonymous 2007-09-12 9:01 ID:WjcqQalR

>>56
Ew. I failed to read your post. I zoomed into "reallocating" and "anything else that might be referencing", then proceeded to write my crap.

Name: Anonymous 2007-09-12 9:30 ID:Tti723mY

>>55
Dunno. Take the string length as the allocated length and then do some magic? I assumed that realloc wouldn't cause any problems and just append memory blocks to the string without changing its address or whatever >>54 is trying to say. Guess I'm not expert enough!

Name: Anonymous 2007-09-12 9:33 ID:Heaven

>>58
realloc always tries to reallocate the memory without new blocks.

Name: Anonymous 2007-09-12 12:06 ID:27KuGAyO

>>1
That's like saying Heart Surgery sucks because you didn't have the grades to get into med school.

Name: Anonymous 2007-09-12 13:03 ID:Heaven

>>60
could you explain your statement in other words
i do not understand

Name: Anonymous 2007-09-12 15:02 ID:Heaven

>>61
C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.

Name: Anonymous 2007-09-12 23:19 ID:27KuGAyO

>>61
Mean it's a good programming if you know how to use it. If you're writing anything where performance matters, it kicks ass but you need skill to learn how to use it. Ppl criticizing it here don't seem to know how to use it. That's not the language's fault.

Name: Anonymous 2007-09-12 23:38 ID:4xFntt8P

>>63
People criticizing it here have used it a ton and have seen its shortcomings when trying to use it for more and more complex systems, then moved on to more capable languages that are better equipped to deal with real-world problems.

Name: Anonymous 2007-09-12 23:40 ID:2dMTeb1e

>>60
More like saying heart surgery sucks because the only tools you have are a butter knife and some dental floss.

Name: Anonymous 2007-09-13 4:14 ID:GPON94dk

I love QT.

/thread

Name: Anonymous 2007-09-13 4:27 ID:Ttfu+E8g

>>66
Enjoy your .mov files and AIDS, faggot!

yeah, trolltech, I know

Name: Anonymous 2007-09-13 7:04 ID:xSn+O1mi

C# > C++ > C
PROGRESS

Name: Anonymous 2007-09-13 7:40 ID:Ttfu+E8g

C OCTOTHORPE < C-- < SEE
CONGRESS

Name: Anonymous 2007-09-13 7:42 ID:pTCp4puE

>>68
>>69
lkjhaasdfflkjh;likmegarrrrrrrrrrrrrrrroijafgjofdglkjjjdddddddddddd9oe9e9e9eeeef893urjdnmklacxzjknasdffffffffffffffiaosdfffffffffffffflhuasdfffffffffffflkjhzxcmnb,zvx,nbmvczxbnm,zxvbmn,vcxmbn,cmnbcvx,bnm,zvxnbm,sadk;ljfaliewhfiuhgvlkhjaklhjadsfljkhwenjljkasdfoiii;a`vlrjhba`ewgv;lkkasgd;lkjwagggg;jjjf;lllllllkkkkkkffffpa`dsflk;jsdflkj;asdflkj;aefoiiipppppppppzzzzzzzzcxvlkjzxcvlk;jzxcvlk;jerwwwwm,wem,amaflkjfl;kjdsoiiiiiiiiiiivcxvboixbixcvoiuxbiuxbvciubcvuibiubxibxcvcvbiucvbouixcbcbviuiuvcbxiuviuvboxibuvxiubv!!!!RDJHF

Name: Anonymous 2007-09-13 8:42 ID:OR7zLtg6

>>70
This is a C++ thread. Take your Perl elsewhere.

Name: Anonymous 2007-09-13 10:59 ID:LJmJ2Y8G

>>C++
REGRESS

Name: Anonymous 2007-09-13 12:18 ID:jp1mRQtV

>>1

Jealous retard who can't code C++

Enjoy your PHP / C# / JavaScript etc. failure faggot.

Name: Anonymous 2007-09-13 12:45 ID:Heaven

>>73
Enjoy your Linux kernel failure faggot.
Fix'd.

Name: Anonymous 2007-09-13 13:34 ID:N/3mhamh

>>73
Any of these three languages have better features than C.

Name: Anonymous 2007-09-13 14:10 ID:rFkYDXfX

>>37



NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL

Name: Anonymous 2007-09-13 14:38 ID:KrJjo58C

// Get a jb

Name: Anonymous 2007-09-13 15:03 ID:eztbcYR1

>>77 jailbait?

Name: Anonymous 2011-02-04 11:48

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