[10:19:02] <robertparkerx> is there anything wrong with this: $this->collection[$collection]->deleteOne(array("timeOfDelivery" => array('$lt' => date("Ymd")),array('socketTimeoutMS'=>-1))
[12:48:22] <GothAlice> Apologies for the snark, but right up-front it smacks of PHP. Problem #1: PHP. ;^P Problem #2: consistency of quote use. (I stick to single quotes for machine strings, double quotes for human strings.) Q: Does date() return some form of actual Date object that the MongoDB driver knows how to handle? Lastly, #3: no sort order is defined, so the single record removed may appear randomly selected—but isn’t.
[13:16:36] <GothAlice> Does PHP not support object literals? O_o Always found array() notation to be… ugly and verbose, esp. when you start getting three or four on a single invocation. ^_^
[13:17:58] <synthmeat> all of php is just one messy string template
[13:34:42] <GothAlice> Fun factoid, after PHP introduced SimpleXML, I wrote JSX before JSX. ¬_¬ https://github.com/amcgregor/margin-cms/blob/master/documents/details.xml?ts=4 with <Breadcrumb> implemented https://github.com/amcgregor/margin-cms/blob/master/templates/default/Breadcrumb.php :333
[13:35:48] <synthmeat> it's a shame web lost battle for xhtml. that could've been so awesome.
[13:36:33] <GothAlice> “Standards Mode”, “Compatibility Mode”, “Legacy IE Mode”, “<insert brain damage here>” — could have been. Was not.
[13:38:05] <GothAlice> HTML5, as-is, is superior to XML in a number of ways for the purpose of document mark-up. Rules for canonicalization mean 90% of the HTML people write people don’t need to write. At all. <!DOCTYPE html><title>Hi</title><p>This is a valid—and complete—HTML document.
[13:39:10] <GothAlice> (HTML, head, and body tags are shockingly optional.)
[13:42:49] <synthmeat> i'd love a world where google gives just me a dtd for whatever they want to be present in the page, and i just validate against that.
[13:43:54] <synthmeat> and tw. and fb. ... and then they need to agree on common dtd elements and everything's fine and dandy
[21:54:50] <GothAlice> But separating them out means more steps to make use, e.g. switching the active DB (or having multiple DB handles hanging around). Thus in no way easier.
[21:55:08] <GothAlice> Best case: it's just different.
[21:55:18] <codebam> if I made a schema for reqular sql. what would I need to do to adapt that to mongo/nosql?
[21:56:06] <GothAlice> Noting that validation documents are infinitely more powerful than SQL schema. Given you can use $and / $or combining operators to make parts of your validation optional or conditional.
[21:56:53] <codebam> this is awful. I'm trying to figure out mongo, vue, and trying to write a login page all in a couple days
[21:57:02] <GothAlice> (A validation document / "schema" being, in MongoDB's case, a filter document that must match for the record to be considered valid.)