Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rkts
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
rkts
19y ago
Simple solution: change your privacy settings.
92.
▲
by
rkts
19y ago
http://ycombinator.com/hackernews.html "The focus of Hacker News is going to be anything that good hackers would find interesting. That includes a lot more than hacking and startups. If you had to reduce it to a sentence, the answer might
93.
▲
by
rkts
19y ago
Completely off topic, but can we all stop using the word "humans" to make ourselves sound objective and scientific? Unless it's part of a comparison with other species, the word is "people."
94.
▲
by
rkts
19y ago
In ML you can get a similar terseness to that of Haskell, but with support for imperative programming. If we allow the increment function to be predefined (as the Arc example does): let inc a b = a := !a +/ b; !a then foo becomes:
95.
▲
by
rkts
19y ago
Let me give you a real example from a program I worked on. I'll simplify the code. Say you write a function that takes input given by the user, inserts it into a list, and then sends the action across the network. Every item has an ID, so
96.
▲
by
rkts
19y ago
Sigh ... Obviously errors should be able to propagate up the call stack. But that propagation needs to be done explicitly . Simply tacking "throws IOException" onto your function header isn't enough; it's still too easy to mess up.
97.
▲
by
rkts
19y ago
> They supposed to be used for exceptional results that cannot be handled locally. The point is that there is no such thing. Exceptional situations should always be handled locally, and by locally I mean on the very next line. If th
98.
▲
by
rkts
19y ago
> exceptions suck, Hungarian notation rules and so on. Have you actually read his article on this? I think it's very good. http://www.joelonsoftware.com/articles/Wrong.html Joel doesn't say that you should prefix integer variables wi
99.
▲
by
rkts
19y ago
Why is there so much hostility toward Joel here? He writes interesting and popular articles and half the comments just attack him for not being substantive or serious enough.
100.
▲
by
rkts
19y ago
> different forms of moralizing - utilitarian and the categorical imperative - use different brain systems. Whenever a neuroscientist gets involved in these debates, I see a lot of claims like this. "Thinking about x uses brain system
101.
▲
by
rkts
19y ago
Higher-order functions do entail a sacrifice to readability compared with plain loops. The reason should be fairly obvious: loops use indentation and syntax to show visually the structure of what they do, but that goes away when you pack t
102.
▲
by
rkts
19y ago
> His posts about "harm of exceptions" So am I officially the only person who agrees with Joel on this?
103.
▲
by
rkts
19y ago
Awesome. A lot of people revile Steve Sailer, but I think he's one of the best essayists writing today. This quote in particular elegantly sums up the history of philosophy: "To this day, most philosophers suffer from Plato's disease: the
104.
▲
by
rkts
19y ago
Please tell me I'm not the only one who recoils at the inference from "Liberals had more brain activity and made fewer mistakes than conservatives when they saw a W" to "Based on the results, he said, liberals could be expected to more read