News for hackers. Stuff that matters.

danh

Re:Cloact: Minimalistic React for ClojureScript on Friday January 10, 2014 @03:04PM (#7039002)
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.

Re:Cloact: Minimalistic React for ClojureScript on Friday January 10, 2014 @01:16PM (#7038273)
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...

Re:Cloact: Minimalistic React for ClojureScript on Friday January 10, 2014 @12:01PM (#7037688)
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)...

Re:React v0.8 is out on Thursday December 19, 2013 @05:40PM (#6938478)
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

Re:Why did we build React? on Wednesday June 05, 2013 @01:25PM (#5827110)
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.

Re:Richard Feynman and The Connection Machine (1989) on Monday May 06, 2013 @08:31AM (#5661951)
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."

Re:Apple Said to Fire Maps Manager After Flaws Hurt iPhone 5 on Tuesday November 27, 2012 @03:21PM (#4838743)
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.

Re:Show HN: Matches.js -- Powerful Pattern Matching for Javascript on Thursday September 13, 2012 @03:37PM (#4518110)
Something like this would make a great addition to CoffeeScript.
Thou shalt not use the name of software failure in vain.
Re:Spotify launches iPad app on Wednesday May 02, 2012 @01:47PM (#3920278)
It doesn't seem to fix anything, unfortunately, as far as I can tell after a quick test.
Re:Spotify launches iPad app on Wednesday May 02, 2012 @11:59AM (#3919732)
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.
Re:Wikipedia's list of lists of lists on Thursday February 02, 2012 @08:55AM (#3542655)
No problem. It's lists all the way down.
Re:US bars friends over Twitter joke on Monday January 30, 2012 @07:25AM (#3528465)
That is quite a strong reason, though.
Re:Node.js - A giant step backwards? on Wednesday January 25, 2012 @01:33PM (#3511006)
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?".

Also: Xcode 4.2
Re:Why the iPhone 5 never arrived on Wednesday October 05, 2011 @03:08PM (#3077046)
Calling Windows 95 an "abysmal failure" might be a bit too harsh.
And I can't even imagine what Siri and Wolfram Alpha will cook up together.
Re:What happens when Google+ cuts you off? on Wednesday August 24, 2011 @06:53AM (#2920220)
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

Re:Spotify Finally Coming to U.S. in July on Friday June 17, 2011 @03:29PM (#2666754)
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.

Older »