mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-21 07:31:00 +00:00
1 line
4.7 KiB
JSON
1 line
4.7 KiB
JSON
[{"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304696558.570539, "message": "Is the only solution moving the emit <| |> to another rule that I would raise as an explicit event in the fired of the first rule?", "group_id": 236, "id": 943129}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304696174.0615511, "message": "I am manipulating a variable in the prelude block which stores a lot of data. Later on I emit some javascript and finally set this variable in a persistant var. I don't need the value of this var in the javascript.", "group_id": 236, "id": 942971}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304696398.6279321, "message": "How can I remove it from the js ?", "group_id": 236, "id": 943058}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304696364.622256, "message": "This variable makes the js really fat and it's completly unnecessary.", "group_id": 236, "id": 943050}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304698957.269316, "message": "There isn't a good way to exclude variables (or data sources and data sets) from the emitted js. We've talked about a way to indicate this in code, but nothing official at this point.", "group_id": 236, "id": 943741}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304700330.029758, "message": "variables local to a function are not bled, as long as the value is a derived in the function and not directly assigned from a literal.", "group_id": 236, "id": 943954}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304698971.531847, "message": "even if you moved the emit to another rule, the variable would still be present in the js.", "group_id": 236, "id": 943749}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304699773.8144951, "message": "If I was to handle sensitive data in KRL this would be a problem. Is there any unofficial trick?", "group_id": 236, "id": 943880}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304699811.6523249, "message": "Maybe I should just put the logic in a function?", "group_id": 236, "id": 943883}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304700917.4681699, "message": "I will, but the best way is to try it, then see what is stored there.", "group_id": 236, "id": 944055}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304700883.8795829, "message": "could u give an example of what , inside a function, could be found in js and what not ?", "group_id": 236, "id": 944050}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304700999.8709359, "message": " myfunc = function(){\n\tx = \"foo\"; //simple expression, will be in js\n\ty = datasource:foo(); //complex expression, will not be in js\n}", "group_id": 236, "id": 944064}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304701636.4031119, "message": "y = 'UNTRANSLATABLE KRL EXPRESSION';", "group_id": 236, "id": 944113}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304701380.711565, "message": "is call to a function considered as a complex expression ?", "group_id": 236, "id": 944090}, {"user_id": 763, "stars": [], "topic_id": 34022, "date_created": 1304701624.8469961, "message": "yes. you will see the value of the variable shown like so:", "group_id": 236, "id": 944110}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304721919.055028, "message": "I have a solution to my problem . I used a function to encapsulate the logic in which I was checking some data inside a persistent var. Before the persistent var was shown in the js now it shows only \"UNTRANSLATABLE KRL EXPRESSION\". I wonder what's the use of having these kind of strings inside the javascript but nevermind, I am very happy that I won't end up with 2GB of persistent var inside my browser.", "group_id": 236, "id": 947396}, {"user_id": 30494, "stars": [], "topic_id": 34022, "date_created": 1304722270.6747761, "message": "It might be a good practice to manipulate persistent vars this way when their data is not needed in the javascript enabled endpoint", "group_id": 236, "id": 947431}, {"user_id": 4291, "stars": [], "topic_id": 34022, "date_created": 1304723169.724272, "message": "@loic Thank you for raising this topic. I very much like the idea of NOT load persistent variables into the browser, especially once they become interesting in size.", "group_id": 236, "id": 947547}, {"user_id": 763, "stars": [{"date_created": 1304821058.7145679, "user_id": 30494}], "topic_id": 34022, "date_created": 1304792104.0829639, "message": "I also like the idea, but I'd love a more direct way to prevent sending data down to the browser. Good workaround in the meantime.", "group_id": 236, "id": 952022}] |