3 ms·
Who exactly is voting this up? C'mon, this isn't news. Would it deserve a #1 HN slot if I got some real-time chat working with Ruby and MySQL? No.
by swombat 17y ago
Who exactly is voting this up? C'mon, this isn't news. Would it deserve a #1 HN slot if I got some real-time chat working with Ruby and MySQL? No.
- nexneo 17y ago#1 If you get real-time chat working with MySql alone.
- swombat 17y agoCouchdb isn't a good comparison to mysql - it's got an HTTP interface built in. My point is: It's trivial to put together a chat application with any HTTP backend that's capable of storing and retrieving data. So what's all the excitement about?
- petercooper 17y agoTotally possible. Set up a MySQL server with a public username and password, define some stored procedures to keep the API simple. Share the procedures and invite people to connect using any MySQL client.
- nexneo 17y ago"...invite people to connect using any MySQL client." That is useful.
- petercooper 17y agoThat the HTTP-powered Web browser is a universally popular piece of software has no relevance on its effectiveness. Chatting through a Web browser is as formally arbitrary as chatting through any other sort of client.
- nexneo 17y agoAt moment its capable of removing middle layer (one less moving part, actually two if you count Apache/Nginx) Some pointers, http://github.com/jchris/couchapp/tree/master http://github.com/jchris/couchapp/tree/master http://books.couchdb.org/relax/hosted-applications http://books.couchdb.org/relax/hosted-applications
- swombat 17y agoI can create a chat application in just ruby, that stores everything in a flat text file and serves everything directly from mongrel, with no apache or nginx in the way. Just because it has "fewer moving parts" doesn't make it good or special. Separating unrelated layers is supposed to be a good thing. I seriously doubt that CouchDB is as good a general purpose HTTP server as Apache. UPDATE: This is what I think of when you say "It's got one less moving part": http://skitch.com/swombat/btpj4 http://skitch.com/swombat/btpj4 There's a reason we've split development onto multiple tiers.
- nexneo 17y agoFirst thing comes to mind is CouchDB should not be general purpose HTTP server. You will agree that you can't create real time chat in under 100 lines of Ruby code alone (still you need javascript) This chat application author coded application in 100 lines of Javascript including validation that run on server. I can clearly see the benefits of approach CouchDB took with CouchApps. I also know its not answer to all needs of Webapps.
- Tichy 17y agoActually I would be interested to hear how you would get that done with Ruby.