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

C++ hatred

Name: Anonymous 2012-01-08 12:26

Why is C++ hated so much here in /prog/? Many good software are written in C++.

I'm aware that there are some problems in the language and it is considered "hard" to master it, but why do so many people hate it? What harm has it done?

Software can be written much quicker when using some scripting languages like Python. Software can be writte slightly quicker when using some managed language like Java. But when using those languages, the resulting program will require more resources to run. So there is place for C++.

For example, I bet the web browser of 99% people browsing /prog/ is written in C++. It's not perfect language, but it is the best language for complex program with relatively small CPU and RAM requirements.

Name: Anonymous 2012-01-08 12:26

I bet you're mother is written in C++. That's why she's such a slow-moving, ugly pig.

Name: Anonymous 2012-01-08 12:27

lol

U MENA HASKAL

C++ -> sage

Name: Anonymous 2012-01-08 12:28

This is what SEPPLES programmers actually believe!

Remember these two rules:
-If it ain't lisp, it's crap.
-Lisp is shit.

Name: Anonymous 2012-01-08 12:29

>>4
Tell me one good and widely used Lisp program.

Name: Anonymous 2012-01-08 12:32

>>5
I believe the reservation software on orbitz.com is written in Lisp.

Name: Anonymous 2012-01-08 12:36

Name: Anonymous 2012-01-08 12:44

>>6,7
I don't consider those as widely used. Well at least you proved that there really are people developing in Lisp seriously. Weird...

>>7
Thanks for the points. I normally get 0/10

Name: Anonymous 2012-01-08 12:59

>>8
Anytime bro.

Name: Anonymous 2012-01-08 13:00

>>5
The old Reddit.

Name: Anonymous 2012-01-08 13:03

C++ is shit.

For example, I bet the web browser of 99% people browsing /prog/ is written in C++
They usually develop their own class libraries instead using standard ones. And they use only a subset of C++. Thus you end reinventing the wheel. C++ is only useful for very big projects like web browsers, where every megabyte of memory and every cpu cycle is important to compete in a industry where every microsecond in a benchmark counts for marketing purposes.

But also take a look at memory leaks and bug reports on these C++ written browsers. Then you'll see why using that language is just wrong.

Name: Anonymous 2012-01-08 13:04

C++ is bloated OOP C done wrong. It's not compact, it's not as fast as it could be, it's not easy to develop, it's full of pitfalls, feature creep, overly complicated and not portable enough. It gets low-level things wrong and thus ruins the high-level abstractions it tries to give the programmer.

Name: Anonymous 2012-01-08 13:06

>>1
Many good software are written in C++.
They might be as well written in Brainfuck. That doesn't make Brainfuck a good language.
I'm aware that there are some problems in the language
Too many problems.
and it is considered "hard" to master it,
It's not hard to master, it's unnecessarily complex.
but why do so many people hate it? What harm has it done?
The same harm COBOL, BASIC and FORTRAN did: it hinders the development and use of better languages.
But when using those languages, the resulting program will require more resources to run. So there is place for C++.
We need better languages for system programming, C++ is not one of them. Until recently, nobody cared about making better system PLs, because if they did, they would just be discarded for being ``not C++''. And this is part of the harm it has done, along with C, COBOL, FORTRAN.
For example, I bet the web browser of 99% people browsing /prog/ is written in C++.
Again, it might be as well written in COBOL, it doesn't make COBOL any better.

Name: Anonymous 2012-01-08 13:11

>>13
Ok, could you list some of the worst problems that C++ has? Some problems that make it worth hating?

Name: Anonymous 2012-01-08 13:13

>>14
Have you read your C++FQA today?
http://yosefk.com/c++fqa/

It's a little outdated, since C++11 fixes some problems, and introduces some of its own.

Name: Anonymous 2012-01-08 13:13

One word: THE FORCED MANUAL MEMORY MANAGEMENT

Name: Anonymous 2012-01-08 13:18

>>11
C++ is only useful for very big projects like web browsers
So, is there any alternative languages for developing such programs?

Name: Anonymous 2012-01-08 13:19

>>17
Anything with a module system is better suited for large project than C++.

Name: Anonymous 2012-01-08 13:21

>>15
Have you read your C++FQA today?
I read some of the "Big picture issues" there. Most of them are just claims without exaples or proof.

It's a little outdated, since C++11 fixes some problems, and introduces some of its own.
So is there any point in that page in that case? I think not. New projects should use C++11 standard anyway.

Name: Anonymous 2012-01-08 13:21

>>18
Care to give any example?

Name: Anonymous 2012-01-08 13:22

>>11
web browsers, where every megabyte of memory and every cpu cycle is important
LOL!

Name: Anonymous 2012-01-08 13:22

>>16
There are many problems with garbage collection. It isn't suited for most of the projects that C++ is good in.

Name: Anonymous 2012-01-08 13:26

>>19
New projects should use C++11 standard anyway.
And not be able to compile their projects?

Name: Anonymous 2012-01-08 13:28

Alternatives to C++:

Objective-C is much better than C++. And Apple has invented for the latest version of the compiler this nice automatic memory management that inserts free() calls (well, the ObjC release message) at compile time so you end with code without GC.

C# is good too. It compiles to native code using ngen.exe. But unfortunately it's controlled by Microsoft.

Java is shit.

Name: Anonymous 2012-01-08 13:28

>>23
g++ has pretty good support already

Name: Anonymous 2012-01-08 13:34

>>24
Objective-C
No, No, NO! HORRIBLE! Even C++ has nicer syntax.

C#
It's okay I guess... as a language. But the resulting program is slow because of the GC.

Java is shit.
Nah, just slightly worse than C#.

Name: NIGGER 2012-01-08 13:35

Why all da hate, mah niggaz? Learn to accept each other.

A hold tight all mini-van people
It name mini-van people gone to jamaica
One driver a dozen conductor
Yeah! mini-van people gone to jamaica
One driver a dozen conductor yeah!
Where have all the jolly bus gone long time ago
Where have all the jolly bus gone I I I don't know hey
Now mi go a whisper mi nuh fi go ketch a mini-van
Some a hold on pon mi shirt and some a hold on pon mi hand
Some seh tek this mini-bus home seh tek this mini-van
This one to westmoreland this one to portland
This ya one out to trelawny this one to st ann
And the quickest way fi mek a dollar inna dem hand ya know
Mini-van people gone to jamaica
One driver a dozen conductor
Yeah! mini-van people gone to jamaica
One driver a dozen conductor tree!
Where have all the jolly bus gone long time ago
Where have all the jolly bus gone I I I don't know hey
Now mi left from work with one intention
Mi fi ketch a mini-van and go to portland
I will need rest from midday come three young woman
One a hold on mi shirt and one a hold on pon mi hand
Mi haffi put down mi bag and stand up as a man
And tek di conductor dem my position
One a go a westmoreland and one a go a st ann
But my destination is to portland
Give thanks to di mini-bus association
Who set di jolly business out a action
Name mini-van people gone to jamaica
One driver a dozen conductor
Yeah! mini-van people gone to jamaica
One driver a dozen conductor yeah!
Where have all the jolly bus gone long time ago
Where have all the jolly bus gone I I I don't know hey
Now mi go a whisper mi nuh fi go tek a mini-van
Some a hold on pon mi shirt and some a hold on pon mi hand
Some seh tek this mini-bus home seh tek this mini-van
This one to westmoreland this one to portland
This ya one out to trelawny this one to st ann
And the quickest way fi mek a dollar inna dem hand ya know
Mini-van people gone to jamaica
One driver a dozen conductor ya know
Mini-van people gone to jamaica
Where have all the jolly bus gone long time ago
Where have all the jolly bus gone I I I don't know hey
Now mi left from work with one intention
Just fi ketch a mini-van and go a portland
I will need rest from midday come three young woman
One a hold on mi shirt and one a hold on pon mi hand
Mi haffi put down mi bag and stand up as a man
And tek di conductor dem my position
Dem a go a westmoreland and one a go a st ann
But my destination is to portland dem name
Mini-van people gone to jamaica
One driver a dozen conductor
Where have all the jolly bus gone long time ago
Where have all the jolly bus gone I I I don't know
Dem have big one, small one, middle size one
Dem even a new one dem deh quarter million
Seh big one, small one, middle size one
Dem even have a one dem value quarter million dem name
Mini-van people gone to jamaica
One driver a dozen conductor
Mini-van people gone to jamaica
One driver a dozen conductor

Name: Anonymous 2012-01-08 13:36

>>26
Don't let the syntax scare you. It's a very nice language.

Name: Anonymous 2012-01-08 13:42

>>25
Why would anyone want to use that freetard shit?

Name: Anonymous 2012-01-08 13:55

>>25
So you would seriously recommend that a large project would try to use C++11 despite there being no compliant compilers yet? Not only that, you would recommend that a large project should rely on some bleeding edge unstable software that might or might not support parts of the language, and is untested?

Name: Anonymous 2012-01-08 14:16

>>28
But I enjoy coding in C++. C++ has better support and I really don't see any benefit in Obj-C compared to C++.

>>29
Because it's a good compiler. VC11 has pretty ok C++11 support as well.

>>30
Yes.

Name: Anonymous 2012-01-08 14:18

>>26
objective-c has *really* nice syntax, just different.
i tried it for a while instead of c++, and was much more productive

only problem is that its slow, so i switched back to c++

Name: Anonymous 2012-01-08 14:19

>>19
No examples? What. Look at the rest of the FQA.
So is there any point in that page in that case? I think not. New projects should use C++11 standard anyway.
Most of the points are as valid as ever, and, as I said, C++11 introduces flaws on its own.

Name: Anonymous 2012-01-08 14:20

>>31
The problem is that C++ is shit.

Name: Anonymous 2012-01-08 14:29

well, OP, c++ takes GOD's programming language, C, and taints it with disgusting faux-objects and hundreds of pages of horrible syntax extensions.

objective-c is a very nice extension to c, mainly because it is small, but it is unfortunately rather slow.

i have never used c#, because i run linux, but it seems to be a very nice programming language if you overlook that microsoft owns it.

Name: Anonymous 2012-01-08 14:31

>>35
C is not a good programming language. What the fuck are you smoking?

Name: Anonymous 2012-01-08 14:32

http://www.youtube.com/watch?v=KlPC3O1DVcg

C IS OBSOLETE
YOU MAD C-FAGS?
C++ IS KING

Name: Anonymous 2012-01-08 14:41

>>37
Stroustrup
sage

Name: Anonymous 2012-01-08 14:42

>>37
Bjarne tilts me so fucking bad.

Name: Anonymous 2012-01-08 14:43

>>37
C is obsolete, and so is C++.

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