71 karma · joined Aug 10, 2017 (9y ago) · 249 submissions
comment 7y ago · link · parent
Because if some cure isn't working (or even having the opposite effect) of course the problem is that you're not applying it enough, you need to double or triple the dose!
(Sarcasm, if you're the kind of person who needs the hint.)
comment 7y ago · link · parent
Maybe, but that wasn't what I said. The problem is that lots of people know C, but very, very few people know C++.
A big part of the problem is that both languages share one compiler, and people come from C thinking that C++ is just an upgrade with some features bolted on.
It's not. It's a completely different language, and if you approach it as "I'll learn a bit of C and then throw in some C++ features" you're setting yourself up for a world of hurt.
The hurt goes away if you forget C, start with a clean slate and learn C++ as a new language.
comment 7y ago · link · parent
False.
std::string x = y;
There's no way to mess this up.Again, learn the language. There is no such thing as "C/C++". 99% of the problems stem from the fact that people don't understand that C and C++ are completely different languages, despite sharing one compiler.
Learn C++ as itself and your problems go away.
> Lastly `const` what does it do where and why and should everyone ever use it...
`const` is a contract that means "I will not modify this object here". Nothing confusing or complex about it, unless you're trying to shoehorn this concept into C semantics somehow.
comment 7y ago · link · parent
No.
> full of edge cases,
Definitely no.
> it blows my mind every time I pick it up.
I'm tempted to say "programming is not for you", but I'll be charitable and just point out that you've never learned the actual language to make statements like that.
> If anyone tells you they know C++, they're absolutely wrong.
That's a load of crapola. It's impossible to "know C++" in the sense of knowing the ISO standard for C++; but that is also true of any other language with a real standard.
Languages without standards, of course, are worse in every way.
comment 7y ago · link · parent
C++ templates are a purely-functional Lisplike language. There's nothing strange or absurd about it; it's a very vanilla way to approach string rewriting systems.
(It's ugly to read, yes, but then all Lisplikes are too.)
comment 7y ago · link · parent
Because you want to write a config file, not a program?
What next, config files, build systems and unit tests for your config files?
No thanks.
comment 7y ago · link · parent
'async' exists because Python has that GIL bullshit and so Python programmers had to invent that fifth wheel of 'async programming'.
Programmers in other languages then got jealous because they, too, wanted a complex, unnecessary framework that pollutes the whole runtime and serves to differentiate regular programmers from 'rockstar' programmers.
And so async got fashionable and barely-literate coders now think async is magic performance dust that will automatically make your program run 1000% faster.
TL;DR - it's just fashion, give it five years and we'll be reading posts about how async sucks and that it's stupid legacy tech invented by bonehead dinosaurs.
comment 7y ago · link · parent
But that's exactly how it is with our Universe! There's clear evidence that the important and relevant stuff happens only in the Solar System, and the rest of the Universe is just empty procedurally-generated useless filler.
comment 7y ago · link · parent
Don't open it too wide, unhygienic stuff might fall in.
On a related note: why is it that people understand basic food hygiene (don't eat rotten meat, wash your vegetables, spoiled milk is bad, etc.), but can't seem to grasp that the same basic concept applies to mental food too?
You are what you eat, and that applies to what you read and consume in media too.