HNHacker News
TopNewBestAskShowJobs

herdrick

2,711 karma · joined February 19, 2007

- github.com/herdrick

- linkedin.com/in/herdrick

- x.com/herdrick

Interests: AI/ML, Startups

---

submissionscomments
herdrick··on Rules for Writing Clojure Programs
(frequencies "abcaaabcccaabrrcb")
herdrick··on How can you reduce your emails by 50% a day?
By responding to fewer of them, more slowly, that's how.
herdrick··on Kill hashtables, get shorter code.
Really? OK, that's interesting. I guess I prefer speakable ones too.
herdrick··on A Case Study of “Designed By Developers:” Stack Overflow
Ah, interesting, thanks.

Well, it looks like I'm wrong about what Tufte meant by information density. In that case Tufte wouldn't say that information density is the only thing. "Every pixel doing work" != good design.

But I definitely heard that exchange on a podcast.

herdrick··on A Case Study of “Designed By Developers:” Stack Overflow
The original UI is quite usable.

When I started using Stack Over Flow, navigation was a headache as the links weren't clear. I'm accustomed to it now.

Those two consecutive sentences would seem to be from different reviews.

herdrick··on A Case Study of “Designed By Developers:” Stack Overflow
(First let me say that I admire Jeff Atwood and his work. That doesn't mean he has made no mistakes.)

Jeff launched this thing by tuning it for what he wanted in a Q & A site. Since he is exactly the sort of early adopter they needed for the first one (for programmers) that worked OK. But now they are launching a fully baked, "Jeff-tuned" product to other populations and I think there will be problems. The problem with an overloaded page is that you've closed off your options - you've made it really hard to iterate. Because every piece of available space is filled with information it's very difficult to test the product with new users.

This happened partly because this is every programmer's instinct, and partly through Jeff's misunderstanding of Edward Tufte's concept of "information density". Somewhere in a Stack Overflow podcast Joel is telling Jeff that there is way too much stuff on the page and Jeff defends that as being an example of information density that Tufte would like. Not true - a vector field has information density: http://www.google.com/images?q=vector%20field When you can apply a single (simple?) rule to understand a lot of data, that's information density. By contrast, Stack Overflow is like any web page in that each element must be examined in turn to be understood. That's why you must eliminate elements ruthlessly, especially when you are starting out.

herdrick··on Kill hashtables, get shorter code.
map is already a short identifier and a real word

This is heresy, but I actually think it might be better if it weren't a real word. I find I benefit from inventing names for functions or data abtractions. It helps to clear the mind of what those things might be.

Plus making map into mp or whatever makes it much more googleable. And don't get me started on Clojure having map and a Map.

herdrick··on GCC optimization flag makes your 64-bit binary fatter and slower
Chill, son

He was perfectly calm. No need for that. Let's keep things polite here.

herdrick··on Kill hashtables, get shorter code.
Right. That's what I said in the footnote, [3].
herdrick··on Kill hashtables, get shorter code.
Sorry, I don't understand what you're asking. The way it works now is: each document is read and summarized into a bunch of word frequencies, once. It looks like each is being read many times, but since I'm memoizing, it only happens once. Is that helpful or are you suggesting something else?
herdrick··on Kill hashtables, get shorter code.
Without profiling it I'd guess it's memoizing the function that does the disk i/o that makes the biggest difference.
herdrick··on Kill hashtables, get shorter code.
That's a pretty old debate. I think brevity does a lot for clarity, and the more you work at making your code brief the better you'll be at reading brief code.

Of course if other people are reading your code then you should consider what current programming practice is. But the current practice in Clojure is, for cultural reasons, to make things really succinct. So you can assume those reading your code are ok with that.

herdrick··on Kill hashtables, get shorter code.
Regarding Haskell, yeah I thought as much. When writing this code I thought, "This would all be better, or maybe nearly automatic, in a purely functional language".

Regarding Arc, there's still a distinction, since as you point out you can't enumerate the domain of a function like you can the keys of a hashtable. (And you also "call" a hashtable in Clojure.)

herdrick··on Kill hashtables, get shorter code.
Yep, that'd be better. I didn't want to have to explain a macro, though I guess anyone bothering to read the code can handle a simple macro. Thanks, maybe I'll change that.
herdrick··on XX Combinator
It's worth trying; I hope somebody does.
herdrick··on Cluster with Clojure
You're right. Good enough now?
herdrick··on Become a farm worker
It's nothing like that. Even the corruption isn't so bad and seems to be improving.
herdrick··on Become a farm worker
Quite true. And people often refer to Mexico as a poor country. False. The average Mexican is better off than the large majority of the world, with a per capita GNP of over $7,000.
herdrick··on Thoughts on Clojure
Really? Can you post some profiling data?
herdrick··on The Way I Work: Justin Kan of Justin.tv
since it is a very marked contrast from the rest of Valley culture

I think you're onto something there. The typical valley firm has almost as much of a uniform as a bank.

The subversive suit. Interesting.

herdrick··on Why Parents Hate Parenting
What they left dangling were the serene Namibian parents. It just seems less painful there and within our own past as well. Maybe the "slavishly respect your childrens' thoughts and wants" was a big mistake. You know, phrases like, "Children should be seen and not heard" and "Children should speak when spoken to" used to be commonplace.

Maybe there's hope for modern rich societies. I've read that in the French culture decisions that are made as much or more for the benefit of the parents. The family goes on vacations that the parents are interested in, enjoying art museums, sophisticated cities, etc, instead of what the kids want: a theme park in the suburbs. Maybe this derives from an attitude that children are born barbarians, that their natural tastes and desires are stupid, and they need to have civilization pounded into them in order. Whereas we in the Anglo-Saxon derived culture put more value on the natural impulses of children.

I think the situation can be improved.

herdrick··on Why Parents Hate Parenting
Here we go. If you thought language flamewars are bad...
herdrick··on The Way I Work: Justin Kan of Justin.tv
Justin wears a suit now?
herdrick··on Software Calculus - The Missing Abstraction
No, I think mostly he's talking about something unrelated and very important. However, his last sentence is exactly as you say: "...In the end, however, an algorithm expressed in prolog can be translated into any of the other languages, demonstrating the eventual equivalence."

And in fact he's totally wrong about logic programming. It is a completely different way to think about things, just like what he's looking for, it just doesn't happen to make for shorter programs. A very good try though.

herdrick··on Dan Weinreb comments on Google's acquisition of ITA
The most astonishingly skillful programmers use lisp more often than average or crummy programmers, but it's still an unusual choice among them. Look at the results of the ICFP programming challenges.
herdrick··on Dan Weinreb comments on Google's acquisition of ITA
> The biggest reason, of course, is what some > have called the "de-skilling" of IT.

I don't buy that. There are countless software shops that are obsessed with programmer skill and productivity, in fact live or die by it, and almost none of them choose a lisp.

herdrick··on Dan Weinreb comments on Google's acquisition of ITA
"I would not expect any new major software effort to be written in Lisp. On the other hand, it’s not clear that ITA would have done that, either..."

So ITA (possibly) wouldn't choose Common Lisp again. I wonder if he includes other lisps in that. And does he agree with ITA on that choice?

herdrick··on Ask HN: Should I launch anyway if unhappy about my product?
Launch.
herdrick··on [dead]
Flag it.
herdrick··on Mike Lee on why he can charge $1,000/hr for iPhone development
Oh man, thanks for that link. Submitted: http://news.ycombinator.com/item?id=1463114
← PreviousPage 11 of 29Next →