Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tr4nslator
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tr4nslator
16y ago
Because I'd rather write my programs in a Lisp like Javascript?
2.
▲
by
tr4nslator
16y ago
Actually, a bunch of us are working on taking the pain out of async programming. Here's my approach, using (fab)'s chained continuations: http://www.flickr.com/photos/tr4nslator/4532445014/in/set-72...
3.
▲
by
tr4nslator
17y ago
"Traditional Chinese characters are widely used, and are the de facto writing standard in Hong Kong." from http://en.wikipedia.org/wiki/Languages_of_Hong_Kong#Written_...
4.
▲
by
tr4nslator
17y ago
You can even do that in half the bytes by making use of all unary operators together: -~+[] -~ is a good proxy for ++ when incrementing unassigned variables.
5.
▲
by
tr4nslator
17y ago
I think this should probably point here: http://jashkenas.github.com/coffee-script/#scripts The salient point is that CoffeeScript now automatically compiles any code in a script tag with type text/coffeescript. Pretty cool.
6.
▲
UTF-n: Brainstorming alternate text encodings
(jed.github.com)
9 points
by
tr4nslator
17y ago
|
5 comments
7.
▲
by
tr4nslator
17y ago
The Japanese government is not unique here. Earmarks and pork are just as big a problem in the United States.
8.
▲
by
tr4nslator
17y ago
Do you anticipate that the use of WebSockets will improve performance? If so, can you estimate to what degree?
9.
▲
by
tr4nslator
17y ago
I actually think this is less magical than most approaches, since there's no pre-compilation or "with" scoping magic. Sinatra's hello world is awesome, until you realize that a lot of the cool stuff is scoping magic that you have to throw
10.
▲
by
tr4nslator
17y ago
Indeed you can. (fab) is 100% async: http://gist.github.com/287475#file_hello_async.js
11.
▲
by
tr4nslator
17y ago
Indeed, CoffeeScript was built on Ruby, and its REPL on Narwhal.
12.
▲
by
tr4nslator
17y ago
It's vaguely lispy, but without all that nesting. Multi-line functions work okay, but it's definitely cleaner to name them and put them somewhere else so that your code ends up looking like a site map: http://gist.github.com/287475#file_he
13.
▲
by
tr4nslator
17y ago
Yeah, a (fab) function just returns itself. It's like jQuery's chaining, but using argument signatures instead of object methods to delegate work. The last (fab) is just a way to indicate the chain is over so that a listener can be returned
14.
▲
by
tr4nslator
17y ago
Hey all, I just launched a dead-simple web framework on top of node.js. It uses (abuses?) a lot of the dynamic nature of javascript to create a jQuery-inspired DSL that's pure javascript, allowing you to create really concise web apps like
15.
▲
(fab) - A pure javascript DSL for building async web apps
(fabjs.org)
86 points
by
tr4nslator
17y ago
|
26 comments
16.
▲
by
tr4nslator
17y ago
.live() : DOM event handling :: CSS : DOM styling
17.
▲
by
tr4nslator
17y ago
The latter was just from my framework of choice until now, Tornado.
18.
▲
by
tr4nslator
17y ago
Server-side Javascript frameworks seem to be in the midst of a Cambrian explosion right now. I just pushed my own today: http://github.com/jed/fab/
19.
▲
by
tr4nslator
17y ago
Actually, I'm pretty sure this is another version of the Picasa scrollbar, which has been around for a few years: http://news.cnet.com/i/bto/20090102/PIcasaMac-main_610x449.p...
20.
▲
by
tr4nslator
17y ago
Or for a more quantitative approach, with 1.7 Chinese characters per English word[1] and an average English word length at 5.1 letters[2], then somewhere around 420 characters. (But of course, it really depends on the nature of the text.) [
21.
▲
by
tr4nslator
17y ago
Actually, I think their solution is pretty elegant; any task that takes that long is abstracted to its own HTTP request, which itself can be blocking without blocking the original request.
22.
▲
by
tr4nslator
17y ago
I'm pretty sure they're not using much metadata, but instead using collaborative filtering based on the libraries other iTunes users. "Apple's proprietary recommendation engine that uses collaborative filtering and iTunes' built-in rating s
23.
▲
by
tr4nslator
17y ago
You might want to create your own original "feedback" image for the tab on the left. Yours[1] appears to have been copied from uservoice[2] (probably a leftover from deciding to use their feedback or use your own, am I right?). [1] http
24.
▲
On Leaky Abstractions and Objective-J
(cappuccino.org)
52 points
by
tr4nslator
18y ago
|
46 comments
25.
▲
by
tr4nslator
18y ago
Check out the jQuery Metadata plugin: http://plugins.jquery.com/project/metadata It lets you choose where to define this kind of custom data: in an arbitrary attribute, as a class within the className attribute, or in a script tag.
26.
▲
by
tr4nslator
18y ago
Yes, that is why it's not a translation, but a localization (you know, for the locals).
27.
▲
by
tr4nslator
18y ago
It's a lesson in the difference between translation and localization . In this case, Google's approach confuses the latter for the former, because its corpus contains parallel texts that have not only been translated (into a different la
28.
▲
by
tr4nslator
18y ago
Is this cheating? http://www.google.com/search?q=00000000000000000000000000000...
29.
▲
by
tr4nslator
18y ago
That's a good point. Fixed.
30.
▲
by
tr4nslator
18y ago
I'm having trouble recreating this. What's your OS/browser?
More ›