Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper2

71 karma · joined Aug 10, 2017 (9y ago) · 249 submissions

Submissions

comment 7y ago · link · parent

Oh yes, I'm sure your daughter needs a double dose of feminism, because feminism, is, like, something that our current society totally lacks.

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

> I'm actively preparing to move all of my machines over to BSD

You remind me of all those people who are going to move to Canada "any day now" because of Trump.

comment 7y ago · link · parent

C++ programming.

comment 7y ago · link · parent

> ...something impossible in C++

    vec[3_s & 4] 
is very much possible in C++. It's only two characters longer.

(C++ doesn't have a ':' operator, you'll need to use some other symbol.)

comment 7y ago · link · parent

> have found their next pseudo science

Nah. Like the Rapture, "climate change" is forever. That's the beauty of it, it's the falling sky to end all falling skies.

comment 7y ago · link · parent

> Most defenses I've seen of C++ boils down to something along the lines of "you're using it wrong (tm)".

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

> Additionally it's the only language I've ever worked in that provides ample opportunities to blow off your own foot while copying a string.

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

> C++ is one of the hardest languages to use,

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++'s approach to generic type usage has slowly evolved into the most absurd collection of left angle brackets out there

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

> the cognitive load required

There's no cognitive load required to code in C++. You just don't know the language.

There's no easy tutorials or learning materials for it, but it's not hard.

comment 7y ago · link · parent

> The comic is seriously a great intro learning resource

No, it isn't. It's horrible. It read like advertising copy to sway dumb investors into pouring their life savings into Google stock.

comment 7y ago · link · parent

> given the right subset of language chosen

Yes, if by that you mean "idiomatic C++ as C++ programmers write it".

It's the inexperienced "C/C++" (no such thing, BTW) that are 'choosing subsets', and doing it wrong 90% of the time.

comment 7y ago · link · parent

> C/C++

No such thing.

comment 7y ago · link · parent

> If configuration starts becoming more complex than looking up key value pairs, why not just write it in the programming language you are using?

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

You're forced to run 8 chat apps where just 1 would work better, all of them with their respective security, privacy and battery-destroying performance problems.

How is that possibly not "harm"??

comment 7y ago · link · parent

> Who uses sms for anything but authenticating WhatsApp/signal/telegram?

I do.

comment 7y ago · link · parent

The so-called 'neural networks' have nothing to do with the brain. They're only called that as a branding exercise. Because math is scary and boring, biology and brains are warm and fuzzy.

comment 7y ago · link · parent

The "modern" Javascript parts make me almost physically sick.

Gimme back my plain old browser Javascript. It was primitive, but at least it wasn't actively harmful.

comment 7y ago · link · parent

> I thought Rust had other, better ways to create non-blocking code so I don't understand why to use async instead.

'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

Cooperative multitasking, like it's 1995 again?

No thanks.

comment 7y ago · link · parent

It's a great excuse to claim a label of 'programming genius' without having to explain why you haven't written anything useful or groundbreaking.

comment 7y ago · link · parent

> Simulating the Solar System would be sufficient.

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

> I wasn't as open-minded as I thought I was.

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.

comment 7y ago · link · parent

> Still much better than C++ though.

Well, no. There is zero reason to use Rust if you already know modern C++. Rust's only benefit is being newbie-friendly.

comment 7y ago · link · parent

Yeah, the 3.5" disks are actually 'stiffies', not 'floppies'.
12345
9