Attached: mc++fl-on.png (1114x640, 121K)
If modern c++ could speak it would beg for death
Thomas Perry
Cooper Sanders
from ?
what's next?
Jackson Hall
wtf I love Python now
Grayson Miller
even javascript looks better if used correctly desu
Jayden Hernandez
i'd beg for death if i was riddled with gnu cancer too
Charles Bailey
Just use it as C with objects.
Sebastian Perry
looks beautiful desu
java is even more verbose without lacking most of the functionality
Ryder Taylor
t. brainlet
Tyler Lee
I'm not sure if you brought up Java because you think it's also another name for JavaScript.
Juan Parker
What are some C11+ features that you'd actually use? The only thing I can think of is auto in iterator initialization.
Owen Powell
>looks beautiful desu
ask me how I know you have aspergers
William Diaz
All of them.
Colton Sanders
>useless, poorly formatted code written to show as many features as possible in a few lines
>lol look what a shit language
What's the point of your post?
Cameron Watson
>C11 and above features
>auto in iterator initialization
Aaron Mitchell
auto is from c11, pretty sure
Grayson King
>lambda expressions
>constexpr
>auto type deduction
>defaulted/deleted functions
>nullptr
>smart pointers
>range-based for loop
>override
>final
>variadic templates
>static_assert
Off the top of my head
William Cooper
> cat test.c
int main() {
auto a = 1.0;
return 0;
}
> clang -std=c11 -Wall test.c
test.c:2:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
auto a = 1.0;
~~~~ ^
Nolan Lee
99% sure he means C++11
Camden Gutierrez
oh no no no
look at the top of his head
Jaxon Powell
>lambda expressions
awful syntax for slight organization/convenience boost, not worth
>constexpr
marginal pointless improvement
>auto type deduction
you must be joking
>nullptr
>smart pointers
ok
>range-based for loop
perfect example of fixing what aint broke
>override
>final
crutches for brainlets
>variadic templates
i hate having to read that shit
Colton Ramirez
my aspergers are irrelevant, baka
Evan Sanchez
>I'm retarded
Thanks for the feedback user
Adam Sanchez
why user?
Nathan Lopez
at least c++ has muh performance to justify its ugliness, JS has nothing.
Mason Cooper
I'm this point I'm way too deep into the Stockholm syndrom to feel anything about C++'s syntax.
I ascended to a superior plane.
Xavier Flores
>override
>final
do people still use OOP in 2018, for real?
Joshua Gray
>superior plane
James Powell
no it's not. it means you lack normal human sociability levels and thus have a deficit in understanding what makes a presentation appealing to other people, a necessity to anyone who wants to have a career in the arts.
Mason Richardson
Bentley Lewis
No thanks. No matter how much they try to bloat c++, it will always have a good subset inside it at least. All you gotta do is tell your retarded coworker who keeps telling you to use auto to go fuck himself.
Mason Robinson
Stop with the autistic "my subset of C++" nonsense and just use C.
Nolan Nelson
void pointers need to be casted
it's a trash subset
Henry Roberts
>auto
That's done at compile-time
Isaiah Powell
>stop using what makes the language good and use shit
Landon Taylor
>doing less work with no penalty at run time
blasphemy
Justin Watson
>tell your retarded coworker who keeps telling you to use auto to go fuck himself
8/10 if troll
2/10 if pasta
Cooper Mitchell
auto is a good way to make the code incomprehensible.
Jaxon Walker
No one is making you use it like that though.
Jeremiah Hughes
>Use language poorly
>Language bad bad!
Anthony Morris
Every single programming language needs to be written in a certain style. Especially C, because for every reasonably competent C programmer, there are thousands of brainlets who think that manually managing memory makes them smart.
Cooper Richardson
More importantly, why do these exist? Both final and override should be default attributes.
Logan Lopez
C++ may be filled with insane overengineering but some changes like the addition of shared_ptr/unique_ptr are unequivocal improvements that you're missing out on by adhering to "C with objects"
Justin Clark
Unless you're explicitly doing type-driven development (something only Idris can do, so basically never in a real project), auto trumps explicit declarations.
Alexander Russell
Because you're missing on features that make your code cleaner, safer and more expressive.
Thomas Butler
If you're not writing non-OO code in languages specifically made for OO you're fucking doing it wrong.
Chase Sullivan
>>variadic templates
>i hate having to read that shit
the point is you don't have to read it, most of the template bullshit is for library devs to make life easier for the user
>t. library dev
Alexander Fisher
meanwhile i'm writing in C# and have no idea how hard it is to manage memory but it sounds pretty daunting.
Leo Diaz
>C++
>language specifically made for OO
when will this meme die
I know people who wrap literally everything in a class instead of a namespace, and then still put that inside a namespace, insisting that free functions were only included in the language to make C programmers happy
drives me up the fucking wall it do
Nicholas Reed
OO Is a dead paradigm
Brayden Jenkins
override exists so that you don't accidentally overwrite a parent method. There is a reason why java and python and other OOP use override annotations on methods.
Logan Gray
>Override
>Not OOP
>mfw Polymorphism is no longer consider OO
Brayden Brooks
Did you even read what I said?
Easton Thompson
That just sounds like buzzwords.
Are you a syntax salesman shill?
Brayden Morales
>not decltyping to completely unrelated variables that happen to have the same type
Jace Perry
based
Luke Rivera
why would i read what you said when i can just write a comment
Brandon Wright
Honestly it depends. Some tasks simply don't bide well with OOP so it makes sense to do whatever is more efficient and readable. That said, saying C++ was not C w/ OOP is a tad silly, as it was literally orignally called "C with Classes" and got renamed to C++ later on.
Ethan Cox
Elaborating, i think anyone who strictly follows "best practices" without thinking about why they are doing them are failed programmers. A good programmer knows when to break said "good patterns" when following the pattern becomes less readable/efficient to program.
Good and bad patterns are more like stereotypes, in most cases they are right but they are not absolute.
John Gutierrez
those are larping java faggots who think OO means absurd class hierarchies and endless layers of bullshit
Adrian Roberts
wot if u don't make one class per method / property and inherit them to make a single class one file at a time you're fucking doing it wrong, retard.
Benjamin Morales
variable init in if is very useful
if(auto i = something(); i.valid() {
i.f();
...
}
Joseph Wood
Why is this better than auto i = something();
if(i.valid()) {
i.f();
...
}?
Tyler Myers
>do people still use OOP in 2018, for real?
how do you dynamic dispatch without it? Polymorphism without classes would be better, but few languages support that
because i isn't visible in the outer scope (no variable name clutter and it's clear it's only needed in one place) + dies outside of if (no resource waste) + only takes one line
Jordan Foster
Lel you fell for Bjarne's prank
Kayden Johnson
Pic related
Levi Ramirez
why not just post a link you stupid nigger
harmful.cat-v.org
by the way a lot has changed in C++ since then
it's a good language, maybe the best
Ian Anderson
Jackson Allen
>it's a good language, maybe the best
the single biggest problem imo is lack of covariance for smart pointers
Jose Thomas
yeah that's kinda my point
luckily I was able to find a Scott Myers article about encapsulation to wave around drdobbs.com
>single class one file
they do this too
you may be able to guess but their code includes no template metaprogramming
Leo Bennett
>Javascript is Java
This is the state of neo/g/
Gabriel Ramirez
You write java scripts in java but you write javascript scripts in javascript
James Butler
Dumb anime poster
Jacob Stewart
Thanks for the laugh OP.
However, you forgot to include the align keyword, bit fields, structured bindings, contracts, the use of ' as a delimiter for binary literals, and parameter packs.
Christopher Walker
>trump
stopped reading there
Jacob Anderson
who the fuck uses that shit for anything but OS type programming
Bentley Moore
People don't actually use any of this shit outside meme examples.
Henry Nelson
>who the fuck uses that shit for anything but OS type programming
Nobody imo. Unless someone knows otherwise.
All the job postings for C++ that I see are involved in close-to-hardware level programming, OS/CPU/etc
Aaron Rogers
>he doesn't use C++ for web programming
Luke Gutierrez
auto in C and C++ are completely different
Daniel Butler
I hope you're joking user, and not actually retarded
Lucas Miller
c++ can be a beautiful language if you're not a brainlet
Camden Butler
Now correct me if I'm wrong, but those smart pointers are literally just template object instead of C++ language features.
Henry Wood
They are just templates yes. The only language features they rely upon are templates, move constructors and destructors.
Levi Price
>tfw I'm c++ programmer
>mfw I read this thread
stay salty brainlets
Asher Baker
C++ could be a lot simpler without losing any of its expressive power. Bjarne himself admits to that.
Jose Smith
haha all this shit looks like motherfucking gobbledygook to me
Brayden Gutierrez
Yeah. That's true. In my humble opinion everyone hates cpp because it's bread and butter of the industry and involves real engineering and THINKING.
Caleb Perez
Everyone hates c++ because it is more complex than it needs to be. I'm ambivalent because I recognize that it's still the most flexible and powerful language in its particular domain despite the design flaws.
Michael Mitchell
There's nothing complex about it, newer C++ versions just add irrelevant amounts of "features" which don't actually do much.
The most beautiful design is the one that is one which is as minimal as possible but not more.
Jeremiah Long
C++ looks ugly I don't like it
Ayden Martinez
Dead as in used in literally every other big project? Kys freetard
Julian Kelly
"If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor and when was the last time you needed one?"
And that's just C++98.
11 alone doubles the size of the language.
Isaiah Torres
Kek, I wonder if we could make a chat bot that uses only C++ keywords (and derivations)
Sebastian Cruz
nothing can be beautiful with that garbage font
Hunter Clark
My, take a look at that spaghetti code
Julian Long
Being complex is not a flaw. It's up to programmer to choose which features to use or not. You can write pure C code in C++ theoretically, or you could write a full-blown OO code.
With C++ you don't have to lock yourself down to one paradigm because it's good for everything, and it has also unlimited performance potential (i.e. matching C), which makes it the best language period.
There are probably even garbage collector libraries for C++ if that's what you need.
Wyatt Carter
i really really like that font. what is it?
Luis Cruz
A lot of NPCs think that JavaScript is Java for websites because it has Java in its name.
Aiden Wood
>[[depricated("abc"]]
what the fuck?
Henry Watson
isn't this C++17? also i believe there's a syntax error in your code