how about... compression on the data, QR that, then reverse on the otherside? well ok as soon as i typed that it probably would not work for static non-lossable data :(
i think it has something to do with curried arrow functions, but still getting my head around that. any prodding in the right direction is appreciated!
brain dead tis morning. trying to use arrow functions to filter an array using two criteria. with one i know it's as straightforward as output = myArray.filter(x => x.id === external_id) and that works great for filtering out ids like a key search. but what if I need to filter the array from two external keys, like an oid and cid (to make the filter return only one match).
@littlepootis i think i just met your IRC counterpart with the nick pootiscoder. although he seems more of a troll than an actual contributor to society
@KarelG i mean they define the rules for parsing their language, whether strictly or not. not my problem in the sense that i do what is required or not for the language and project at-hand.
heh. I go in behind the guy periodically (he knows) and add the braces and semi colons. :D he retires this year so the group as a whole decided to stick to one standard. we also had to adjust from doing things like: if(true) ... to: if( true ) ... something the older guy did and we liked it 'cause it looked cleaner.
i've spent equal time over the past 40+ years with semicolon and non-semicolon languages so the 'return the object' felt equally as valid as 'return, and oh by the way here is a label with an expression'... i sense it comes down to personal preference when you have the option, or the requirement of the language you use to follow that syntax. also depends on the team you are with.
my point was that ; is just how JS and a variety of other languages determine EOL or 'end-of-statement' because the parser is written that way, often just inherited behavior from an older cousin or what the developer was used to.
Python, Lisp, Clojure, Lua, Pascal, Delphi, and dozens of others survive quite well without the semi-colon. Embrace, rejoice in not having to type one extra character per line, and grok the fullness of well formatted and documented code! \o/
..., as if node crashes then restarts a couple of seconds later. But within that few seconds the browser has given up on the server (client.js tries to make a socket connection) and stops.
hm.. anyone understand what 'Program node server.js exited with code 1' actually means? got a node server.js file offering up a Vue.js-laden index.ejs/client.js combo to the browser. On our internal developer server everything is shiny and works as expected, but once we push it out to a production server facing the outside world, we start getting the above exit message...
I'm partial the the JS framework Vue2 lately. really quite nice for quick single page webapps, or you can split up your code into 'components' when you have a team of developers