Hopbot log for 2008-06-28 - Helma IRC channel: #helma on irc.freenode.net

2008-06-28:

[3:00] <midnightmonster> is there any way to build more complicated structures in req.data?
[3:00] <midnightmonster> e.g., name="spork.tines", name="spork.color"
[3:01] <midnightmonster> and get req.data.spork --> { tines:4, color:white }
[3:13] <midnightmonster> answer: yes!
[3:14] <midnightmonster> but it's like this: name="spork[tines]" and name="spork[color]"
[3:17] <midnightmonster> and you can keep nesting: ?name="spork[5][tines]" and name="spork[5][color]"
[3:18] <midnightmonster> and _array still works at the end: req.postParams.spork['5'].tines_array
[20:11] <midnightmonster> random thing I've found: using let myLocalVar inside a loop is slower than declaring var myLocalVar outside the loop and just using it over and over.
[20:15] <midnightmonster> another random performance thing: building a string by concatenating lets of XML.toXMLString(), making a new XMLList(string)--effectively parsing it all over again--and appending that to a parent is sometimes (but not always) faster than parentXML.appendChild(XML) over and over

 

 

In the channel now:

Logs by date: