Re:Chat Room In 10 Lines of JavaScript
by lux on Friday March 18, 2011 @01:30PM
(#2341156)
I love all the stuff coming out in the Javascript world lately, especially things making comet-style coding easier. That said, seeing last week's chatroom in 15 loc and this week's chatroom in 10 lines kinda reminds me of the "5 minute abs" infomercials. I wonder when the first Perl-style one-liner chatroom will come out? :)
In seriousness, I'd love to see a comparison between this and now.js and some of the others.
Re:Chat Room In 10 Lines of JavaScript
by bcrescimanno on Friday March 18, 2011 @01:57PM
(#2341258)
10 lines of javascript..so long as you include these other several hundred lines from a library.
It's cool that you can work this way with the PubNub library--but on the web, where all of the code needed actually has to be downloaded by the client, it's completely disingenuous.
Re:Chat Room In 10 Lines of JavaScript
by bcrescimanno on Friday March 18, 2011 @02:18PM
(#2341335)
As I stated, I think it's great that you can use the library to help you do this; but the truth is, to use this chat program, clients have to download and execute far more than 10 lines of code.
In seriousness, I'd love to see a comparison between this and now.js and some of the others.
Does "<iframe src='http://www.pubnub.com/blog/build-real-time-web-apps-easy>... count?
It's cool that you can work this way with the PubNub library--but on the web, where all of the code needed actually has to be downloaded by the client, it's completely disingenuous.
Anything that staves the onset of carpal tunnel for us hackers a little longer is a good deal to me :)
http://nowjs.com/