Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper1

331 karma · joined Feb 16, 2015 (11y ago) · 258 submissions

Submissions

comment 7y ago · link · parent

Non-discrimination and acceptance isn't the same thing. You can't force people to like you, and you shouldn't.

comment 7y ago · link · parent

> I always got the feeling that java was c++ with a bit more religion about OO

No way. C++ was always much more into the functional programming paradigm. (See the STL, for example.)

The connection between C++ and OOP is because OOP was the insane hype at the time when C++ was being invented. The OOP lipservice was mandatory in order to be taken seriously by the fashion-driven programming industry, but real C++ programmers always looked down on OOP and considered it a code smell and crutch.

comment 7y ago · link · parent

> For example, why don’t operating systems support native JSON or SQL by now?

Because the job of the OS is to manage computer hardware resources.

'JSON' and 'SQL' (whatever that means) are not hardware resources.

Next stupid article, please. This one is broken.

comment 7y ago · link · parent

C extensions wasn't the part of PHP that broke the amateur Internet, SQL injections were.

comment 7y ago · link · parent

Java failed as a portable language-agnostic VM for user-facing apps.

You know, the use-case it was originally designed for. (I read the hype for Java 1.0, I was there.)

Nobody at the time could imagine that Java would eventually become the enterprise COBOL replacement.

comment 7y ago · link · parent

> ...we're going to massively regret letting type safety and other features slide.

PHP is memory safe, and yet is a larger source of data breaches and security bugs than C by (rough guess) an order of magnitude.

C is not the bogeyman you're looking for.

comment 7y ago · link · parent

> ...why don't I have Go and Rust compile targets for the JVM, with JVM browser code running my JVM targets and etc?

The JVM is not a true VM. It's heavily coupled to the Java object model and the Java GC.

comment 7y ago · link · parent

> It's all about sales and marketing and, eventually, politics.

Not in this case. Java failed because it sucked from a technical point of view. It traded better 'OO purity' in exchange for worse security, portability and performance.

The end result is that users got something that was slower and buggier for no gain.

comment 7y ago · link · parent

> I love this mentality that "managers" are the only people responsible

Well, the managers are the dudes who are getting paid for being responsible. The 'peons' are correct.

comment 7y ago · link · parent

Really? Facts are now subject to consensus agreement?

Double-plus goodthink, comrade!

comment 7y ago · link · parent

> reusable (or at least, partially reusable) rockets

No such thing. A "reusable" rocket means you waste capacity carrying fuel for the return trip, and so raise the costs.

It's not like you can refuel the rocket once you get where you're going.

This is the reason why nobody uses "reusable" rockets today, not tech. (The tech was available back in the '60s.)

comment 7y ago · link · parent

Yes and no. "No GC" means "no mandatory GC when data isn't shared between threads".

comment 7y ago · link · parent

There's only two possible ways to survive in the commodity phone hardware world:

a) Price dumping and giving out a free OS to Chinese OEM's.

b) Making a "luxury" product to differentiate against Chinese OEM's.

Neither of these two paths was open to Blackberry. Sorry.

comment 7y ago · link · parent

Rust is the better choice, but they're still learning about the real world of error handling, generic library code and performance optimization.

comment 7y ago · link · parent

> All of those are very subjective.

They're not. People vastly more experienced and more intelligent than you came up with them. Learn why they exist before dismissing them.

You won't get anywhere trying to replace C with a "let's go shopping instead" mentality.

comment 7y ago · link · parent

> All these languages are potentially-better systems languages than C/C++

No they are not. C++ has spent decades building "a better C/C++". Any language that ignores those lessons and takes the stance of "learning C++ is too hard, let's go shopping" is doomed to fail.

comment 7y ago · link · parent

Nix does exactly what you want.

comment 7y ago · link · parent

> Is a 'X' the Best Way to Understand Everything?

No. Next question.

comment 7y ago · link · parent

> C++ 17 is still a mess.

No, it is not.

> proper package manager, modules

That's an OS usability issue, not a language problem. Personally, Nix solved this for me.

> type constraints

C++ has type constraints, and ones that actually work. I suspect what you call 'type constraints' is something that can't exist if you understand the difference between 'run-time' and 'compile-time'.

> sane lookup rules for function calls

A very minor issue. If you don't like function overloads, then don't use them.

> thread safety, a proper monastic future type

Please no. The kind of 'thread safety' you want destroys the benefit of using threads in the first place. C++ threading is perfect as it is.

> Also most people won’t see C++ 17 or 14 for another decade.

Frankly, I don't care about these twisted people stuck in enterprise hell.

comment 7y ago · link · parent

> You can't possibly know instantly all the exceptions to handle for a function

And you never should. That indeed is horrible design.

What you do need is a separation between 'exceptions that cause hard failure' v.s. 'exceptions that can lead to soft restarts'.

You can easily separate them using common sense just looking at where your interface is located.

comment 7y ago · link · parent

They're rare because attempts to actually use Haskell in the field result in disaster. When you're hiring random programmers off the street to code your shitty business logic in Haskell, the result is a horrible mess of 'Unsafes, exploding memory leaks and random crashes. It's a train wreck.

comment 7y ago · link · parent

> Haskell and C++ from 1994

What is this, the Guild of Legacy Crap Archeology?

comment 7y ago · link · parent

> I disagree with this, on a very strong and deep sense.

That's because you're inexperienced.

> All possible behaviors should be treated on equal footing, using the control structures of your language.

That's impossible if you're dealing with a system composed of multiple interacting abstraction layers.

An error inside a function precondition is not the same as an error crashing a thread of execution, which in turn is not the same as an error in logical consistency communicating between different services.

The "equal footing" you're talking about can only exist if you're dealing with very simple and linear programs.

comment 7y ago · link · parent

Rust is a nice idea, but as of 2019 C++17 is simply better in every way.

Yes, there's can be benefit to starting from scratch with a different language w.r.t. training new teams with good habits and skills from the start.

But going into Rust just because it's fashionable at the moment is a recipe for pain several years down the line.

If you want a working pain-free solution learn C++17 instead.

comment 7y ago · link · parent

> psuedo-iron-age

It's not, it's just phonetic transcription of modern urban English with some SMS-style typing errors thrown in.

Really disappointed with the crappy low-effort linguistics in that book.

comment 7y ago · link · parent

No, I'm talking about the fact that "noon" has no cultural or practical significance if the solar day changes wildly during the year.
12345
9