[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why C++ is such piece of shit?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 62
Thread images: 8
File: 51BaccTSZ4L.jpg (38 KB, 399x500) Image search: [Google]
51BaccTSZ4L.jpg
38 KB, 399x500
Why C++ is such piece of shit?
>>
>>55043115
cuse you dumb nigger.
why yu write like nigger.
>>
File: 1hSd7BcMo1.png (18 KB, 260x195) Image search: [Google]
1hSd7BcMo1.png
18 KB, 260x195
>>55043115
Maybe if you didn't touch yourself at night, you could actually learn how to use it properly
>>
>>55043115
Because it tries to be java and fails miserably.
>>
Because it's kitchen-sink: the language

It has no vision, no goals, just a bunch of design committees and bloat
>>
>>55043321

This. C++ should have learned the lessons of Java but instead it was doomed to repeat it
>>
Because it isn't Haskell
>>
C++ is going in the wall at full speed.
There is too much wrong stuff in it and the people who design it spend more time talking about programming than actually programming. I heard they are going to integrate some boost libs into the STL, thats gonna be even worse
>>
It's main audience is 14-year-old "game developers"
>>
File: 1438289968713.jpg (45 KB, 570x487) Image search: [Google]
1438289968713.jpg
45 KB, 570x487
>>55043387
>mfw I started learning C++ at 14 and thought i was the 1337est h4x0r on the planet because of it
>>
How much new software is written in C++? Is it mostly legacy?
>>
>>55043404
Kek, me too and i'm glad i did because it gave me quite a headstart on the OOP front.
>>
>>55043395
>tumblr gif
At least post a fucking webm you tard
This is the 21st century
>>
>>55043412
All your video games. Yes, even the brand new ones. Most indies don't go this way though
>>
>>55043445
where's your webm?
>>
>>55043395
Lol your banned.
>>
>>55043344
>bloat
>most performant language in the world

Good one, /g/
>>
>>55043673
A language isn't performant on it's own; implementations are

The fastest C++ implementations are no faster than C or FORTRAN implementations, and to write C++ that is as fast as C you're essentially restricting yourself to the subset that is C with some few extra niceties
>>
>>55043115
Go home to your VB wife Pahjeet
>>
>>55043702
this
>>
>>55043702
bullshit
>>
File: par90a.gif (6 KB, 464x303) Image search: [Google]
par90a.gif
6 KB, 464x303
>>55044002
Which part?
>>
File: graph3.png (57 KB, 692x702) Image search: [Google]
graph3.png
57 KB, 692x702
>>55044002
>>
>>55044002
*YOU* are full of bullshit.
http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918
>>
>>55043702
C++ isn't slow on its own.
Obviously making more tests will slow your application down, but it is done in order to make it easier for developers and the result is safer code.
C++ main target is desktop applications.
In that market, you use efficient libraries and combine them to make a easy to read core application.
C++ allows this.
C is a much simpler language and that is good.
But there is no reason to force that paradigm to everyone.
>>
File: cpp_vs_java_diagram.png (21 KB, 800x600) Image search: [Google]
cpp_vs_java_diagram.png
21 KB, 800x600
>>55044070
>>55044112
>>55044141
C++ BTFO

Even Java is faster
>>
>>55044358
>Obviously making more tests will slow your application down, but it is done in order to make it easier for developers and the result is safer code.

Tests are removed in the final product.
>>
there are no shit programming languages only shit programmers
>>
>>55043702
Of course if you want more functionally, it usually comes with overhead. Unlike most other higher level languages, C++ does not add overhead unless it had to.

A simple class in C++ will add no overhead for example, comparing to using struct s and passing them around. Java class will add though, so you can say C++ more performant than java, it is not just the implementations.
>>
>>55043321
Pshhh its not like c++ is an older language or anything pshhh how couldnt c++ possibility be trying to be java psssssssssssssshhhhhhhhhhhhhhhhhh


Fuck you.
>>
>>55046085
Why the fuck would a Java class inherently require more overhead than a C++ class?
>>
>>55046200
lots of reasons. java methods are virtual by default. each function call adds overhead. or java objects have run time information so extra memory for each class.
>>
>learning only one language and trying to accomplish everything with it.
>2120 - 104

Not to mention, if you REALLY know C++ you are going to be good programmer in almost any other imperative language in that category.

C++ is great for some things and not so good, even bad for other.

I never use C++ for UI design for example, most of my programs are C++ at its core and Java on the shell and they run good on almost any machine.
>>
>>55043115

C++ isn't that bad.

The main problem it has it that it is such a huge language. It's impossible to "know" C++ because the language is just too big and you have literally 4 differnt paradigms..

In a way it's like PHP, not inherently bad, but they somehow missed the point to stop it.
>>
>>55044112
>time on y axis
>>
>>55043115
Becuase you're shit at it.
>>
>>55046379
Are you retarded? It's because time is the dependent variable for that graph.
>>
>>55044112

>Python 2 is the slowest
>Oh wait, Python 3 is slower

Oh dear..
>>
>>55046178
>psssssssssssssshhhhhhhhhhhhhhhhhh
I can't really hear you, there's a lot of static.
>>
File: dafuq.jpg (21 KB, 236x329) Image search: [Google]
dafuq.jpg
21 KB, 236x329
How am I supposed to accept I've recently taken to learning a language which is a piece of shit?
>>
I like C++
>>
Isn't saying C++ is shit implying that C is shit?
>>
>>55046755
NO.

But C++ isn't shit. This is just a troll thread.

C++ is made worse by terrible, TERRIBLE developers, and Microsoft.

GNU C++ is fucking beautiful.
>>
>>55046786
you make no sense
>>
>>55046798
C++ has a rep as being shit because Java tier developers think they can use it. And most people know or spread the horrible Microsoft standard, which IS shit.

Real C++ isn't shit.
>>
>>55047056
what microsoft standard? as far as I know, visual studio is pretty faithful to standard, other than lacking a couple features
>>
>>55044112
is that pi * 2^n? Or is it supposed to be the product of all integers from 1 to 2^n?
>>
>>55047091
Visual C++.

>as far as I know, visual studio is pretty faithful to standard,

You're wrong. And it's not only having feature or not, it's also how their feature doesn't comply with the standard. Plus all the disgusting Windows exclusive shit, and it's just a bad bad compiler overall.
>>
>>55047104
it is probably calculating pi up to 2^n digits.
>>
>>55047127
what VS does that does not comply with the standard?
>>
>>55047091
Are you guys talking about C#?

By the way, which is better?
>>
>>55047178
C# is better than C++
C++ is better than Visual C++
>>
>>55047177
Deprecating int main and forcing their winapi shit for example.

The whole wchar/uchar bullshit. That's all completely illegal.
>>
>>55047204
Go is better than both.
>>
>>55043115
It's stylistically designed to be that way.

Memes aside, operator overloading was a mistake.
>>
>>55047273
Operator overloading is what is good about C++
>>
>>55047273
No it wasn't. It's useful as fuck.
>>
>>55047212
winmain is not enforced for command line applications. if it is a windowed an application, I am not sure but if you are using windows.h, you are not looking for compatibility anyway.

I never needed wchar, can't comment on that. But it is not like they converted all standard libraries to wchar, it is just a typedef on one of the libraries in windows.h
>>
File: sour1.jpg (24 KB, 210x320) Image search: [Google]
sour1.jpg
24 KB, 210x320
>>55047273
I spotted the java fag.
>>
>>55047056

"No true scotsman" fallacy..
>>
>>55046238
But there's no reason an implementation would have to do it that way
>>
>>55043368
>>55043368
Not everyone wants to be lesbian k ?
Thread replies: 62
Thread images: 8

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.