603 karma · joined Sep 13, 2017 (9y ago) · 435 submissions
comment 8y ago · link · parent
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
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
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
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
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
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
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
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
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 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.