/irc-logs / freenode / #html5 / 2011-07-09 / end

Options:

  1. # Session Start: Sat Jul 09 00:00:00 2011
  2. # Session Ident: #html5
  3. # [13:13] * Attempting to rejoin channel #html5
  4. # [13:13] * Rejoined channel #html5
  5. # [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'
  6. # [13:13] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  7. # [13:14] * Joins: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust197.wolv.cable.virginmedia.com)
  8. # [13:25] * Quits: aidalgol (~user@114-134-7-23.rurallink.co.nz) (Quit: zZzZzZz)
  9. # [13:38] * Joins: shipit (~shipit@c-67-180-23-104.hsd1.ca.comcast.net)
  10. # [13:47] * Joins: adrianmg1 (~Adium@67.69.60.213.dynamic.mundo-r.com)
  11. # [13:47] <adrianmg1> hi!
  12. # [13:50] <adrianmg1> did somebody work with hCard microformats?
  13. # [13:50] <adrianmg1> just got a little doubt
  14. # [14:28] * Disconnected
  15. # [14:30] * Attempting to rejoin channel #html5
  16. # [14:30] * Rejoined channel #html5
  17. # [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'
  18. # [14:30] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  19. # [14:38] * Joins: Aexel (~Aexel@goldie.knowinservers.net)
  20. # [14:39] * Joins: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk)
  21. # [14:41] * Joins: Bass10 (Bass10@c-76-113-194-7.hsd1.mn.comcast.net)
  22. # [14:47] * Joins: Ramosa (Ramosa@unaffiliated/harald/x-000000001)
  23. # [14:48] * Joins: phishy (~jeff@c-71-192-162-156.hsd1.nh.comcast.net)
  24. # [14:57] * Quits: phishy (~jeff@c-71-192-162-156.hsd1.nh.comcast.net) (Quit: phishy)
  25. # [14:59] * Quits: Ramosa (Ramosa@unaffiliated/harald/x-000000001)
  26. # [15:00] * Joins: zatan (~zatan@5aceb9e6.bb.sky.com)
  27. # [15:02] * Joins: obert (~quassel@host78-20-dynamic.10-87-r.retail.telecomitalia.it)
  28. # [15:19] * Disconnected
  29. # [15:21] * Attempting to rejoin channel #html5
  30. # [15:21] * Rejoined channel #html5
  31. # [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'
  32. # [15:21] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  33. # [15:36] * Joins: cgcardona (~cgcardona@adsl-68-127-138-229.dsl.pltn13.pacbell.net)
  34. # [15:36] * Quits: cgcardona (~cgcardona@adsl-68-127-138-229.dsl.pltn13.pacbell.net) (Changing host)
  35. # [15:36] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
  36. # [15:36] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Client Quit)
  37. # [15:45] * Quits: Aexel (~Aexel@goldie.knowinservers.net)
  38. # [15:46] * Joins: nimbu (~Adium@c-24-18-47-160.hsd1.wa.comcast.net)
  39. # [15:50] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
  40. # [15:51] * Quits: Hautain_ (~Hautain@AOrleans-258-1-43-202.w90-24.abo.wanadoo.fr) (Quit: Leaving)
  41. # [15:52] * Joins: jetienne_ (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net)
  42. # [15:52] * Quits: gavin_huang (~gravof@115.214.244.167) (Remote host closed the connection)
  43. # [16:41] * Disconnected
  44. # [16:42] * Attempting to rejoin channel #html5
  45. # [16:42] * Rejoined channel #html5
  46. # [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'
  47. # [16:42] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  48. # [16:45] * Quits: nimbu (~Adium@c-24-18-47-160.hsd1.wa.comcast.net) (Quit: Leaving.)
  49. # [16:50] * psynaptic is now known as psynaptic|away
  50. # [16:50] * psynaptic|away is now known as psynaptic
  51. # [16:54] * Quits: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk) (Quit: Leaving.)
  52. # [16:58] * Joins: Saadi (~mslfreak@203.81.216.144)
  53. # [16:58] * Quits: Saadi (~mslfreak@203.81.216.144) (Changing host)
  54. # [16:58] * Joins: Saadi (~mslfreak@unaffiliated/saadibrahim)
  55. # [17:05] * Quits: ighisas (~ighisas@122x212x216x66.ap122.ftth.ucom.ne.jp) (Remote host closed the connection)
  56. # [17:12] * Quits: Vinnipeg (~zaytsev_k@PPPoE-78-29-123-125.san.ru) (Remote host closed the connection)
  57. # [19:12] * Disconnected
  58. # [19:14] * Attempting to rejoin channel #html5
  59. # [19:14] * Rejoined channel #html5
  60. # [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'
  61. # [19:14] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  62. # [19:14] -asimov.freenode.net:#html5- [freenode-info] please register your nickname...don't forget to auto-identify! http://freenode.net/faq.shtml#nicksetup
  63. # [19:14] <johnkpaul> ah ok, thank you!
  64. # [19:16] * Joins: dmachi (~dmachi@pool-71-254-68-185.ronkva.east.verizon.net)
  65. # [19:17] * Joins: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp)
  66. # [19:19] * Quits: johnkpaul (~jpaul@pool-173-56-111-82.nycmny.fios.verizon.net) (Remote host closed the connection)
  67. # [19:20] * Joins: _aron (~aron@client-81-98-142-45.cht-bng-014.adsl.virginmedia.net)
  68. # [19:25] * Quits: Aamir (~aamirafri@92.20.94.115) (Quit: Away!)
  69. # [19:25] * Quits: dguttman (~dguttman@cpe-75-85-0-213.socal.res.rr.com) (Quit: dguttman)
  70. # [19:28] * Quits: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp) (Quit: hands busy doing other things)
  71. # [19:31] * Joins: phishbot (~runtalan@unaffiliated/phishbot)
  72. # [19:32] * Quits: sedovsek (~robert.se@84-255-198-197.static.t-2.net) (Ping timeout: 240 seconds)
  73. # [19:33] * Quits: _aron (~aron@client-81-98-142-45.cht-bng-014.adsl.virginmedia.net) (Ping timeout: 252 seconds)
  74. # [19:35] * psynaptic is now known as psynaptic|away
  75. # [19:36] * Joins: sedovsek (~robert.se@84-255-198-197.static.t-2.net)
  76. # [19:40] * Joins: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp)
  77. # [19:45] * Quits: dmachi (~dmachi@pool-71-254-68-185.ronkva.east.verizon.net) (Ping timeout: 252 seconds)
  78. # [19:46] * Joins: jetienne (~jerome@ivr94-6-82-230-255-246.fbx.proxad.net)
  79. # [19:48] * Joins: siddharthasahu (~siddharth@49.202.124.61)
  80. # [19:48] * Quits: MikeSmith (~mikesmith@EM1-112-166-241.pool.e-mobile.ne.jp) (Ping timeout: 240 seconds)
  81. # [19:49] <siddharthasahu> hi everyone
  82. # [19:50] * Joins: dmachi (~dmachi@pool-72-66-194-29.ronkva.east.verizon.net)
  83. # [19:51] * Parts: siddharthasahu (~siddharth@49.202.124.61)
  84. # [21:06] * Disconnected
  85. # [21:07] * Attempting to rejoin channel #html5
  86. # [21:07] * Rejoined channel #html5
  87. # [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'
  88. # [21:07] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  89. # [21:09] * Quits: Saadi (~mslfreak@unaffiliated/saadibrahim) (Ping timeout: 240 seconds)
  90. # [21:09] * Quits: tw2113 (~tw2113@fedora/tw2113) (Quit: Don't follow me)
  91. # [21:10] * Joins: Saadi (~mslfreak@unaffiliated/saadibrahim)
  92. # [21:13] * Quits: NetRoY (~NetRoY@122.178.250.173) (Quit: NetRoY)
  93. # [21:15] * Joins: gniourf_gniourf (~Gniourf@2a01:e35:2433:3b90:222:41ff:fe23:8d8e)
  94. # [21:18] * Joins: patcito (~123@190.42.80.153)
  95. # [21:19] * Quits: Jayflux (~jay_knows@cpc1-dudl6-0-0-cust197.wolv.cable.virginmedia.com) (Remote host closed the connection)
  96. # [21:25] * Joins: Thasmo (~thasmo@d86-33-68-79.cust.tele2.at)
  97. # [21:31] * Quits: _aron (~aron@client-81-98-88-150.cht-bng-014.adsl.virginmedia.net) (Quit: Leaving...)
  98. # [21:32] * Joins: BigKing (~BigKing@p5DD6896D.dip0.t-ipconnect.de)
  99. # [21:32] * Joins: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com)
  100. # [21:35] * Quits: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com) (Client Quit)
  101. # [21:37] * Joins: TheEmpath (~TheEmpath@cpe-98-154-231-236.socal.res.rr.com)
  102. # [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?
  103. # [21:58] * Disconnected
  104. # [21:59] * Attempting to rejoin channel #html5
  105. # [21:59] * Rejoined channel #html5
  106. # [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'
  107. # [21:59] * Set by marienz!~marienz@freenode/staff/marienz on Fri Nov 05 18:43:30
  108. # [22:02] * Quits: mantamunta (~test@95.209.217.104)
  109. # [22:04] * Joins: tw2113 (~tw2113@fedora/tw2113)
  110. # [22:05] * Joins: Saaaaad (~mslfreak@113.203.143.102)
  111. # [22:05] * Quits: Saaaaad (~mslfreak@113.203.143.102) (Changing host)
  112. # [22:05] * Joins: Saaaaad (~mslfreak@unaffiliated/saadibrahim)
  113. # [22:05] * Quits: SaadIbrahim (~mslfreak@unaffiliated/saadibrahim) (Disconnected by services)
  114. # [22:05] * Saaaaad is now known as SaadIbrahim
  115. # [22:06] * Quits: Saadi (~mslfreak@unaffiliated/saadibrahim) (Disconnected by services)
  116. # [22:06] * Joins: bazinga (~mslfreak@unaffiliated/saadibrahim)
  117. # [22:06] * bazinga is now known as Saadi
  118. # [22:07] * Saadi is now known as bazinga
  119. # [22:07] * Joins: wabse (~emil-emil@78-70-139-43-no135.tbcn.telia.com)
  120. # [22:07] * bazinga is now known as Saadi
  121. # [22:08] * Quits: dgathright (~dgathrigh@c-71-204-165-122.hsd1.ca.comcast.net) (Ping timeout: 258 seconds)
  122. # [22:18] <nlogax> write some code for serialization/deserialization. or keep your functions and data separate, like god intended.
  123. # [22:23] <TheEmpath> :|
  124. # [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?
  125. # [22:25] <TheEmpath> you could represent that via RPC to be honest
  126. # [22:25] <TheEmpath> or AMF mapping
  127. # [22:26] <nlogax> i mean if you wanna stuff it into mongodb :)
  128. # [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; } };`
  129. # [22:27] <TheEmpath> in such a case i would store the { "a": 7, "b": 8 } in mongo
  130. # [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
  131. # [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
  132. # [22:28] <TheEmpath> for persistance, at least
  133. # [22:29] <TheEmpath> oops.... foo.prototype.add = function() { ... }
  134. # [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
  135. # [22:30] <TheEmpath> one solution stamps each json with a class propertybefore it sends it client side
  136. # [22:30] <TheEmpath> another is to have a manual map client side
  137. # [22:31] <nlogax> yes, of course there are solutions, just saying there is more than one
  138. # [22:31] <TheEmpath> but in either case, maintainance is a pain
  139. # [22:31] <TheEmpath> just curious if there was an ongoing flame war about said topic
  140. # [22:31] <nlogax> not that i know of
  141. # [22:31] <TheEmpath> phooey
  142. # [22:31] * Joins: snover (~Adium@unaffiliated/snover)
  143. # [22:32] * TheEmpath will bust out the dev tools to measure performance hits on various solutions.
  144. # [22:32] <TheEmpath> SCIENCE!
  145. # [22:32] * Joins: dankest (~dankest@ip68-99-125-185.sd.sd.cox.net)
  146. # [22:32] <tw2113> it works?
  147. # [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.
  148. # [22:34] <nlogax> but if you want to serialize to/from json, i guess it's a bit more work.
  149. # [22:34] <nlogax> and if you won't consider keeping data and functions separate
  150. # Session Close: Sun Jul 10 00:00:00 2011

The end :)