HNHacker News
TopNewBestAskShowJobs

danh

2,035 karma · joined November 23, 2008

submissionscomments
danh··on Cloact: Minimalistic React for ClojureScript
Firstly, Hiccup is Clojure (so basically server only). Cloact is ClojureScript, that compiles to javascript (so browser, node.js, etc).

Secondly, Hiccup produces strings. Cloact typically creates DOM elements, through React, that change every time a component rendered. But it can also produce an HTML string using the same data, to pre-render a page on the server using node.js.

danh··on Cloact: Minimalistic React for ClojureScript
In a way. Using regular atoms you can only get a callback when they are modified, but not when they are deref'ed.

You could still use regular atoms, though, with some extend-type magic. But then you risk messing with non-Cloact code in horrible ways...

danh··on Cloact: Minimalistic React for ClojureScript
Thanks, again :)

Yes, exactly, Cloact tries to stay really close to plain React. But since it allows you to separate data from rendering, undo should be quite trivial to implement (if you keep all your application data in a single cloact/atom)...

danh··on React v0.8 is out
With React, you get to choose the parts of your code that integrate tightly which each other. Choice is good.

And if you don't like html in js, you could always embed ClojureScript in ClojureScript :-):

https://github.com/holmsand/cloact

danh··on Why did we build React?
I've been playing with React a little bit, and so far I like the experience a lot.

Rendering is incredibly quick, since React only touches the parts of the DOM that have changed. Components are very lightweight, so you can break down the UI in as many, self-contained parts as you like.

And you can do pretty much anything you like without ever having to use a single selector or DOM manipulation. That means that you only need classnames for CSS.

The only downside I've discovered so far is the extra tooling required to use the embedded HTML, and lacking compatibility with other tools, but I suppose that will become better with time.

danh··on Richard Feynman and The Connection Machine (1989)
Favorite part:

"Since the only computer language Richard was really familiar with was Basic, he made up a parallel version of Basic in which he wrote the program and then simulated it by hand to estimate how fast it would run on the Connection Machine."

danh··on Apple Said to Fire Maps Manager After Flaws Hurt iPhone 5
I think their problem is much worse than just being a question of improving data quality. They seem to get data from a lot of very different sources, and those simply do not fit together.

For example, in Stockholm Apple's map still shows most buildings as lying in the middle of some street. On the other hand, only relatively few businesses seem to be located in some kind of building. There seem to be quite obvious, and systematic, errors all over the place.

danh··on Show HN: Matches.js -- Powerful Pattern Matching for Javascript
Something like this would make a great addition to CoffeeScript.
danh··on Why do web sites and software take so long to build? And why is it so hard?
Thou shalt not use the name of software failure in vain.
danh··on Spotify launches iPad app
It doesn't seem to fix anything, unfortunately, as far as I can tell after a quick test.
danh··on Spotify launches iPad app
Now, if they only could sort out the iPhone app as well. It uses a lot more CPU (and corresponding battery) than other audio players (probably due to its Vorbis use), and skips as soon as the os is busy doing something else.
danh··on Wikipedia's list of lists of lists
No problem. It's lists all the way down.
danh··on US bars friends over Twitter joke
That is quite a strong reason, though.
danh··on Node.js - A giant step backwards?
Allow me to be a little grumpy:

I hate tabloidy headlines with question marks. As in "Queen Elizabeth: Is She a Transvestite?", "The Moon: Is It Made of Cheese?" or "Linkbait: Will It Ever End?".

danh··on Apple’s iOS 5 Update Now Available For iPhone, iPad, and iPod Touch
Also: Xcode 4.2
danh··on Why the iPhone 5 never arrived
Calling Windows 95 an "abysmal failure" might be a bit too harsh.
danh··on Apple Reveals Siri Voice Interface: The “Intelligent Assistant”
And I can't even imagine what Siri and Wolfram Alpha will cook up together.
danh··on What happens when Google+ cuts you off?
A bit off-topic, but now you don't have to follow the G+ name rules if you're famous enough. At least if "famous enough" means "being Madonna". [1]

I don't remember her last name, but I'm pretty sure it is not ".".

[1] https://plus.google.com/101336441946387245415/posts

danh··on Spotify Finally Coming to U.S. in July
I'm a heavy Spotify user because it is so much more convenient than the alternatives. I love not having to care about buying, downloading, uploading, sorting, tagging and generally messing about with files.

Most of the time, I don't even have to make my own playlists: I just find someone else's that looks interesting, mark it for "Available offline", and listen to that for a while.

I'm not interested in "owning" music (whatever that means these days). I am interested in listening to it, and Spotify makes this very easy.

In comparison, the whole "locker" business seems very messy, and rather unnecessary. I can't for the life of me see what the advantage would be.

danh··on Apple's iCloud will automatically store, sync data for free
Pocket Casts is also very good.

http://www.shiftyjelly.com.au/products/pocket-casts

danh··on Thoughts on Learning Emacs
That would be one of the cases of "not pre-installed on".
danh··on Working Best at Coffee Shops
"Ambient sociability" is my new favorite expression. Thanks!
danh··on &q=helvetica
This should probably have been the top result:

http://www.wireandtwine.com/store/products/subtraction-hel.h...

danh··on Linus Torvalds: Pearls before swine
"Tove pissed off Warren Beatty by asking his name not just once, but twice" is the funniest thing I've read in quite a while.
danh··on Microsoft just bought Nokia for $0
It seems that Nokia will "become by far the foremost WP7 phone maker" mostly because everyone else shuns it.
danh··on 10 Questions for John Gruber Regarding H.264, WebM
The author seems to want to frame Google's WebM move as a question of Good vs. Evil (as does Gruber btw.), which is not very helpful. As with most everything, there are both costs and benefits.

The main benefit is that Google's move may reduce the risk that the MPEG consortium goes crazy in the future, and starts to charge every possible user, causing havoc in the process.

The main cost is more certain: a huge inconvenience for content producers that were hoping to get away with going H.264 only, causing havoc in the process.

The interesting question is the usual one: is the benefit worth the cost?

danh··on Google Removing H.264 Support in Chrome
Really? You must be much, much luckier than I. I just headed over to YouTube, disabled the (excellent) YouTube5 Safari extension, and tried 20 random videos. Only two worked (but fullscreen is still broken).
danh··on Google Removing H.264 Support in Chrome
Maybe that is somehow what Google wants? It has cozied up to Adobe to the point of including flash in Chrome itself. And YouTube apparently can't be bothered to make html5 video work reliably.

I can't think of why anyone would want to promote flash, though.

danh··on Mother-effing hsl()
Just use less.js for all your hsl needs in IE:

https://github.com/cloudhead/less.js/wiki/Functions

danh··on Whats New in Emacs 24
Here is the entire list of new stuff:

http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/etc/NEWS

Page 1 of 4Next →