Better HN
topnewbestaskshowjobs
Log inSign up

danh

2,035 karma · joined Nov 23, 2008 (18y ago) · 171 submissions

Submissions

1.

Cloact becomes Reagent: Undo is trivial(holmsand.github.io ↗)

2 points · by danh · 12y ago · discuss

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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...

comment 12y ago · link · parent

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)...

5.

Cloact: Minimalistic React for ClojureScript(holmsand.github.io ↗)

118 points · by danh · 12y ago · 44 comments

comment 12y ago · link · parent

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

7.

Bill Gates Is Beginning to Dream the Thorium Dream(motherboard.vice.com ↗)

3 points · by danh · 13y ago · discuss

comment 13y ago · link · parent

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.

9.

Bringing async/await to life in JavaScript(bjouhier.wordpress.com ↗)

1 points · by danh · 13y ago · discuss

comment 13y ago · link · parent

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."

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Something like this would make a great addition to CoffeeScript.

13.

Heap.coffee: Low-Level CoffeeScript(syg.github.com ↗)

5 points · by danh · 14y ago · discuss

comment 14y ago · link · parent

Thou shalt not use the name of software failure in vain.

comment 14y ago · link · parent

It doesn't seem to fix anything, unfortunately, as far as I can tell after a quick test.

comment 14y ago · link · parent

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.

17.

Mozilla about to change video policy(blog.lizardwrangler.com ↗)

2 points · by danh · 14y ago · 1 comment

comment 14y ago · link · parent

No problem. It's lists all the way down.

19.

StratifiedJS: Javascript + structured concurrency(onilabs.com ↗)

53 points · by danh · 14y ago · 7 comments

comment 14y ago · link · parent

That is quite a strong reason, though.

21.

Analysis: Wall Street puzzles over Google's new direction(reuters.com ↗)

2 points · by danh · 14y ago · discuss

comment 14y ago · link · parent

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?".

23.

Literate CoffeeScript(github.com ↗)

2 points · by danh · 15y ago · discuss

comment 15y ago · link · parent

Also: Xcode 4.2

comment 15y ago · link · parent

Calling Windows 95 an "abysmal failure" might be a bit too harsh.

comment 15y ago · link · parent

And I can't even imagine what Siri and Wolfram Alpha will cook up together.

comment 15y ago · link · parent

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

28.

Airbnb: We screwed up and we're sorry(twitter.com ↗)

5 points · by danh · 15y ago · discuss

29.

CSS3 Animation With jQuery Fallbacks(msdn.microsoft.com ↗)

3 points · by danh · 15y ago · discuss

comment 15y ago · link · parent

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.

123456