Options:
- # Session Start: Sat Jul 09 00:00:00 2011
- # Session Ident: #html5
- # [13:13] * Attempting to rejoin channel #html5
- # [13:13] * Rejoined channel #html5
- # [13:13] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [13:13] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [13:14] * Joins: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust197.wolv.cable.virginmedia.com)
- # [13:25] * Quits: aidalgol (~user@114-134-7-23.rurallink.co.nz) (Quit: zZzZzZz)
- # [13:38] * Joins: shipit (~shipit@c-67-180-23-104.hsd1.ca.comcast.net)
- # [13:47] * Joins: adrianmg1 (~Adium@67.69.60.213.dynamic.mundo-r.com)
- # [13:47] <adrianmg1> hi!
- # [13:50] <adrianmg1> did somebody work with hCard microformats?
- # [13:50] <adrianmg1> just got a little doubt
- # [14:28] * Disconnected
- # [14:30] * Attempting to rejoin channel #html5
- # [14:30] * Rejoined channel #html5
- # [14:30] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [14:30] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [14:38] * Joins: Aexel (~Aexel@goldie.knowinservers.net)
- # [14:39] * Joins: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk)
- # [14:41] * Joins: Bass10 (Bass10@c-76-113-194-7.hsd1.mn.comcast.net)
- # [14:47] * Joins: Ramosa (Ramosa@unaffiliated/harald/x-000000001)
- # [14:48] * Joins: phishy (~jeff@c-71-192-162-156.hsd1.nh.comcast.net)
- # [14:57] * Quits: phishy (~jeff@c-71-192-162-156.hsd1.nh.comcast.net) (Quit: phishy)
- # [14:59] * Quits: Ramosa (Ramosa@unaffiliated/harald/x-000000001)
- # [15:00] * Joins: zatan (~zatan@5aceb9e6.bb.sky.com)
- # [15:02] * Joins: obert (~quassel@host78-20-dynamic.10-87-r.retail.telecomitalia.it)
- # [15:19] * Disconnected
- # [15:21] * Attempting to rejoin channel #html5
- # [15:21] * Rejoined channel #html5
- # [15:21] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [15:21] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [15:36] * Joins: cgcardona (~cgcardona@adsl-68-127-138-229.dsl.pltn13.pacbell.net)
- # [15:36] * Quits: cgcardona (~cgcardona@adsl-68-127-138-229.dsl.pltn13.pacbell.net) (Changing host)
- # [15:36] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
- # [15:36] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Client Quit)
- # [15:45] * Quits: Aexel (~Aexel@goldie.knowinservers.net)
- # [15:46] * Joins: nimbu (~Adium@c-24-18-47-160.hsd1.wa.comcast.net)
- # [15:50] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
- # [15:51] * Quits: Hautain_ (~Hautain@AOrleans-258-1-43-202.w90-24.abo.wanadoo.fr) (Quit: Leaving)
- # [15:52] * Joins: jetienne_ (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net)
- # [15:52] * Quits: gavin_huang (~gravof@115.214.244.167) (Remote host closed the connection)
- # [16:41] * Disconnected
- # [16:42] * Attempting to rejoin channel #html5
- # [16:42] * Rejoined channel #html5
- # [16:42] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [16:42] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [16:45] * Quits: nimbu (~Adium@c-24-18-47-160.hsd1.wa.comcast.net) (Quit: Leaving.)
- # [16:50] * psynaptic is now known as psynaptic|away
- # [16:50] * psynaptic|away is now known as psynaptic
- # [16:54] * Quits: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk) (Quit: Leaving.)
- # [16:58] * Joins: Saadi (~mslfreak@203.81.216.144)
- # [16:58] * Quits: Saadi (~mslfreak@203.81.216.144) (Changing host)
- # [16:58] * Joins: Saadi (~mslfreak@unaffiliated/saadibrahim)
- # [17:05] * Quits: ighisas (~ighisas@122x212x216x66.ap122.ftth.ucom.ne.jp) (Remote host closed the connection)
- # [17:12] * Quits: Vinnipeg (~zaytsev_k@PPPoE-78-29-123-125.san.ru) (Remote host closed the connection)
- # [19:12] * Disconnected
- # [19:14] * Attempting to rejoin channel #html5
- # [19:14] * Rejoined channel #html5
- # [19:14] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [19:14] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [19:14] -asimov.freenode.net:#html5- [freenode-info] please register your nickname...don't forget to auto-identify! http://freenode.net/faq.shtml#nicksetup
- # [19:14] <johnkpaul> ah ok, thank you!
- # [19:16] * Joins: dmachi (~dmachi@pool-71-254-68-185.ronkva.east.verizon.net)
- # [19:17] * Joins: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp)
- # [19:19] * Quits: johnkpaul (~jpaul@pool-173-56-111-82.nycmny.fios.verizon.net) (Remote host closed the connection)
- # [19:20] * Joins: _aron (~aron@client-81-98-142-45.cht-bng-014.adsl.virginmedia.net)
- # [19:25] * Quits: Aamir (~aamirafri@92.20.94.115) (Quit: Away!)
- # [19:25] * Quits: dguttman (~dguttman@cpe-75-85-0-213.socal.res.rr.com) (Quit: dguttman)
- # [19:28] * Quits: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp) (Quit: hands busy doing other things)
- # [19:31] * Joins: phishbot (~runtalan@unaffiliated/phishbot)
- # [19:32] * Quits: sedovsek (~robert.se@84-255-198-197.static.t-2.net) (Ping timeout: 240 seconds)
- # [19:33] * Quits: _aron (~aron@client-81-98-142-45.cht-bng-014.adsl.virginmedia.net) (Ping timeout: 252 seconds)
- # [19:35] * psynaptic is now known as psynaptic|away
- # [19:36] * Joins: sedovsek (~robert.se@84-255-198-197.static.t-2.net)
- # [19:40] * Joins: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp)
- # [19:45] * Quits: dmachi (~dmachi@pool-71-254-68-185.ronkva.east.verizon.net) (Ping timeout: 252 seconds)
- # [19:46] * Joins: jetienne (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net)
- # [19:48] * Joins: siddharthasahu (~siddharth@49.202.124.61)
- # [19:48] * Quits: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp) (Ping timeout: 240 seconds)
- # [19:49] <siddharthasahu> hi everyone
- # [19:50] * Joins: dmachi (~dmachi@pool-72-66-194-29.ronkva.east.verizon.net)
- # [19:51] * Parts: siddharthasahu (~siddharth@49.202.124.61)
- # [21:06] * Disconnected
- # [21:07] * Attempting to rejoin channel #html5
- # [21:07] * Rejoined channel #html5
- # [21:07] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [21:07] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [21:09] * Quits: Saadi (~mslfreak@unaffiliated/saadibrahim) (Ping timeout: 240 seconds)
- # [21:09] * Quits: tw2113 (~tw2113@fedora/tw2113) (Quit: Don't follow me)
- # [21:10] * Joins: Saadi (~mslfreak@unaffiliated/saadibrahim)
- # [21:13] * Quits: NetRoY (~NetRoY@122.178.250.173) (Quit: NetRoY)
- # [21:15] * Joins: gniourf_gniourf (~Gniourf@2a01:e35:2433:3b90:222:41ff:fe23:8d8e)
- # [21:18] * Joins: patcito (~123@190.42.80.153)
- # [21:19] * Quits: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust197.wolv.cable.virginmedia.com) (Remote host closed the connection)
- # [21:25] * Joins: Thasmo (~thasmo@d86-33-68-79.cust.tele2.at)
- # [21:31] * Quits: _aron (~aron@client-81-98-88-150.cht-bng-014.adsl.virginmedia.net) (Quit: Leaving...)
- # [21:32] * Joins: BigKing (~BigKing@p5DD6896D.dip0.t-ipconnect.de)
- # [21:32] * Joins: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com)
- # [21:35] * Quits: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com) (Client Quit)
- # [21:37] * Joins: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com)
- # [21:40] <TheEmpath> i got me a doc in MongoDB with a property that is a DBRef, I'm pulling it form the DB and sending it straight to Javascript in its raw JSON... but alas, I cannot map this blurb of JSON automatically to a useful Object in Javascript that has delicious methods that make that blarb of JSON highly useful. Any known solutions or discussions about this lack of mapping?
- # [21:58] * Disconnected
- # [21:59] * Attempting to rejoin channel #html5
- # [21:59] * Rejoined channel #html5
- # [21:59] * Topic is 'Welcome, amigos :: Ask any question about html5 & Friends. || Author Spec: http://dev.w3.org/html5/spec-author-view/ || Full spec: http://whatwg.org/html5 || Also: http://html5rocks.com http://diveintohtml5.org http://mzl.la/9giLwR http://html5homi.es'
- # [21:59] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
- # [22:02] * Quits: mantamunta (~test@95.209.217.104)
- # [22:04] * Joins: tw2113 (~tw2113@fedora/tw2113)
- # [22:05] * Joins: Saaaaad (~mslfreak@113.203.143.102)
- # [22:05] * Quits: Saaaaad (~mslfreak@113.203.143.102) (Changing host)
- # [22:05] * Joins: Saaaaad (~mslfreak@unaffiliated/saadibrahim)
- # [22:05] * Quits: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim) (Disconnected by services)
- # [22:05] * Saaaaad is now known as SaadIbrahim
- # [22:06] * Quits: Saadi (~mslfreak@unaffiliated/saadibrahim) (Disconnected by services)
- # [22:06] * Joins: bazinga (~mslfreak@unaffiliated/saadibrahim)
- # [22:06] * bazinga is now known as Saadi
- # [22:07] * Saadi is now known as bazinga
- # [22:07] * Joins: wabse (~emil-emil@78-70-139-43-no135.tbcn.telia.com)
- # [22:07] * bazinga is now known as Saadi
- # [22:08] * Quits: dgathright (~dgathrigh@c-71-204-165-122.hsd1.ca.comcast.net) (Ping timeout: 258 seconds)
- # [22:18] <nlogax> write some code for serialization/deserialization. or keep your functions and data separate, like god intended.
- # [22:23] <TheEmpath> :|
- # [22:25] <nlogax> TheEmpath: consider this: `foo = { get bar() { return Date.now(); } }`, how should this object be serialized? and how do you get it back?
- # [22:25] <TheEmpath> you could represent that via RPC to be honest
- # [22:25] <TheEmpath> or AMF mapping
- # [22:26] <nlogax> i mean if you wanna stuff it into mongodb :)
- # [22:27] <TheEmpath> your example treats classes as a collection of functions with no data. perhaps something more hybrid like `var foo(a, b) { this.a = a; this.b = b; } foo.prototype.add() { return this.a + this.b; } };`
- # [22:27] <TheEmpath> in such a case i would store the { "a": 7, "b": 8 } in mongo
- # [22:28] <TheEmpath> upon retrieval, the server queries mongodb, gets a list of such documents, passes them to the client via a transport protocol in which i then have to manually map or write my own automapping agent
- # [22:28] <TheEmpath> im simply curious if the problem has been given any serious discussion as i see this being a common issue with html5 design
- # [22:28] <TheEmpath> for persistance, at least
- # [22:29] <TheEmpath> oops.... foo.prototype.add = function() { ... }
- # [22:29] <nlogax> i did not use any classes in my example. but ok. then if you want to go from { "a": 7, "b": 8 } back to an instance of you `foo` object, there is not a single obvious answer
- # [22:30] <TheEmpath> one solution stamps each json with a class propertybefore it sends it client side
- # [22:30] <TheEmpath> another is to have a manual map client side
- # [22:31] <nlogax> yes, of course there are solutions, just saying there is more than one
- # [22:31] <TheEmpath> but in either case, maintainance is a pain
- # [22:31] <TheEmpath> just curious if there was an ongoing flame war about said topic
- # [22:31] <nlogax> not that i know of
- # [22:31] <TheEmpath> phooey
- # [22:31] * Joins: snover (~Adium@unaffiliated/snover)
- # [22:32] * TheEmpath will bust out the dev tools to measure performance hits on various solutions.
- # [22:32] <TheEmpath> SCIENCE!
- # [22:32] * Joins: dankest (~dankest@ip68-99-125-185.sd.sd.cox.net)
- # [22:32] <tw2113> it works?
- # [22:33] <nlogax> in other, similar languages there are various serialization/marshalling modules. but then you usually get a binary lump that you can store, for later deserialization.
- # [22:34] <nlogax> but if you want to serialize to/from json, i guess it's a bit more work.
- # [22:34] <nlogax> and if you won't consider keeping data and functions separate
- # Session Close: Sun Jul 10 00:00:00 2011
The end :)