Better HN
topnewbestaskshowjobs
Log inSign up

HumanDrivenDev

603 karma · joined Sep 13, 2017 (9y ago) · 435 submissions

Submissions

comment 8y ago · link · parent

I challenge the implication that conscientious people should find themselves compelled to be manipulated by the moral outrage crowd. That's exactly the kind of thing they play on.

comment 8y ago · link · parent

Quoting Stalin? Classy. Have any good Hitler quotes you want to share while you're at it?

comment 8y ago · link · parent

Rust gives me a headache. I want to like it, but it just seems so... overengineered

https://doc.rust-lang.org/std/str/struct.SplitWhitespace.htm...

Why would you create a special data type to represent a string split by Whitespace? Lunacy

comment 8y ago · link · parent

Maybe I'm an iconoclast, but I'd respect that person more for not trying to bullshit his way out of it.

comment 8y ago · link · parent

Another example is the American left got into the states rights/seccession thing after Trump with "Calexit".

comment 8y ago · link · parent

Damn, I've made some bad decisions in this career!

comment 8y ago · link · parent

Just clicking on your profile I see you work in London. From what I can tell most programmers don't get paid 'ludicrous amounts' there. Though maybe you have a rare role, or maybe you just have a very low threshold for what you consider ludicrous.

comment 8y ago · link · parent

As far as I can tell as a non-american: people support states rights when the federal government does something they dislike, and they support federalisation when it does something they do like. Most people aren't very principled about it.

comment 8y ago · link · parent

The implication being that OO is the same thing is imperative? I'm in strong disagreement with that!

I've tried to learn rust a few times, but never with much tenacity. It's on my list because it seems to hit a good point wrt expressiveness and performance.

comment 8y ago · link · parent

Chinas rise has been remarkable, and it's great so many people have been able to lift themselves out of poverty. But we really should temper our expectations, and our view of just how well China is doing, which is often sensationalized. The above is just what manages to make it past the censors as well.

I'm not worried about a superpower overtaking the US, I'm worried about a sharp economic collapse causing it to lash out. I'm worried about the global economic consequences if that were to happen.

comment 8y ago · link · parent

Or India, or South Korea, or the Philipines..

China has quarrels with almost every nation that surrounds it. Even nations too far way to be affected by the sabre rattling are starting to question China and their influence (ie the debate in Australia right now).

comment 8y ago · link · parent

> This solution is a bit wordy

I'm not a Haskell programmer, but I understood it. It looks like an ML language but with a lack of | and * for guards and tuples. I like your solution a lot.

The main features which allows you to code this solution in such a safe way are the Maybe and Either types. It's high time OO programmers - and OO programming languages - learn the lessons FP languages have taught us and include these constructs in the standard library. They're just so much cleaner than the usual alternatives (nullable types, checked exceptions) and there's no reason they can't be defined as small objects.

comment 8y ago · link · parent

Is there a formal name for this?

comment 8y ago · link · parent

Talk is cheap, so are Rich Hickeys dime store musings on OOP.

Show us some code, how would you solve it with functions and data?

comment 8y ago · link · parent

So people basically mean a transition table/function, but without the start state or accepting states?

comment 8y ago · link · parent

When people talk about state machines, do they mean deterministic finite automatons? Because i can see a lot of ubiquity in state transition tables in code, but less use in deciding whether to reject or accept a sequence of states which is essentially what a DFA does.

comment 8y ago · link · parent

> Now I want to write compilers and developer tools, but there's no money to be made.

It's sad. One the one hand it's great that we have access to so many amazing compilers for free. But now there's a monopoly of compilers - and by extension, programming languages - by large corporations. They're all kind of the same thing too - vaguely C-like statically typed ALGOL languages with OO and FP features bolted on top. Swift/Kotlin/C#/Java/Typescript/Go, it's all much the same.

I don't think anything novel (a smalltalk, prolog, haskell or scheme) could get any mindshare today, unless a big company lost their mind and tried to push something weird.

comment 8y ago · link · parent

> It is difficult to understand why so many junior programmers use a dozen boolean state variables instead of a state machine, given that they learn it in CS or similar courses.

If you think that's a head-scratcher, the fact that senior developers consistently do the exact same thing must really confuse you!

comment 8y ago · link · parent

Well you must go to classier places than I do (:

comment 8y ago · link · parent

have you ever asked for a receipt where one hasn't been offered?

comment 8y ago · link · parent

Electronics

comment 8y ago · link · parent

Dumping rubbish directly off the coast, on an industrial scale, often happens in Taiwan. You can see this by visiting practically any beach there.

I was in Taidong in October, on the South East of the island which is supposed to be less polluted, and the beach was strewn with washed up plastic.

comment 8y ago · link · parent

It's pretty common to buy something then be asked to pay 5% more if you want a receipt - 5% being their sales tax.

comment 8y ago · link · parent

That's the one.

They've made 3 posts here, all of which are quoting pro-chinese military articles with minimal contributions of their own.

https://news.ycombinator.com/threads?id=wrg91237

Not the first time I've seen stuff like this.

comment 8y ago · link · parent

Defending Taiwan (and Japan) is one area where the US would do exceptionally well in any war. They have no rival on the sea (which is why they are continuously able to conduct their 'freedom of navigation' exercises right on Chinas door step).

Conversely, any land war in North Korea I feel would end disastrously for them - as it arguably did the first time around.

comment 8y ago · link · parent

Did you get your 50 cents for that post, anonymous new account?

comment 8y ago · link · parent

Driving is much less mentally taxing. It's nice to be able to just... drive down the road without constantly worrying about doors being open or cars pulling out from driveways/side streets without seeing you.

I've never been hit by a car and I want to keep it that way, so my eyes are constantly scanning everything.

comment 8y ago · link · parent

I'd hate to ride anything 'supple' on my commute path, which includes a lot of debris and broken bottles.

I do miss riding on smaller wheels though. 26" was much nicer to get rolling than 700c, and there's a lot of stop-start. 26" rigid bike are extinct now though it seems.

comment 8y ago · link · parent

You're absolutely correct, it's the Taiping Rebellion by a fairly wide margin.
1
789
15