the digitalmouse

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jan 8, 2020 14:00
so i'm guessing there are no arrow function warriors awake just yet? :D
Jan 8, 2020 13:48
quality*
Jan 8, 2020 13:48
just get a higher qulity scanner? :D
Jan 8, 2020 13:45
so true
Jan 8, 2020 13:45
thumbs up
Jan 8, 2020 13:45
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 :(
Jan 8, 2020 13:43
apparently QR codes can store up to 3kB.. according to this article qrcode.meetheed.com/question7.php
Jan 8, 2020 13:41
and google is fairly useless for what i'm trying to do >.<
Jan 8, 2020 13:40
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!
Jan 8, 2020 13:40
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).
Jan 8, 2020 13:33
greetings progams! and happy new year
Jul 8, 2017 11:52
@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
May 18, 2017 19:05
xD
May 18, 2017 19:04
@ndugger ah well that explains a lot
May 18, 2017 19:00
what? people didn't descend on my SO question like wolves smelling fresh meat? :D
May 18, 2017 18:50
greetings, programs! o/
May 18, 2017 12:15
@KarelG the digitalmouse embeds himself in the SMBv1 protocol and waits for someone to click on a magic diet link
May 18, 2017 12:12
greetings, programs! o/
Apr 21, 2017 09:39
has anyone developed an open-source version of this chat engine yet?
Apr 21, 2017 09:38
@KarelG i guess so, but no clue when the guy reads it. :)
Apr 21, 2017 09:29
whoops.. i replied to something asked yesterday >.<
Apr 21, 2017 09:26
@corvid try paletton.com
Apr 20, 2017 12:41
@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.
Apr 20, 2017 12:40
@MadaraUchiha close enough :)
Apr 20, 2017 12:36
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.
Apr 20, 2017 12:32
i joined a company where 3 guys use semicolons and braces everywhere, and one guy older than i is used to not using them for one liner if statements.
Apr 20, 2017 12:32
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.
Apr 20, 2017 12:25
up to the guy that developed the parser
Apr 20, 2017 12:24
the braces were part of the return, in my mind
Apr 20, 2017 12:23
@MadaraUchiha funny enough i first read that as "return a literal object with one property ..." then corrected myself
Apr 20, 2017 11:42
@GNi33 standards are good
Apr 20, 2017 11:26
english uses semi-colons... no reason to not use them in programming languages too :D
Apr 20, 2017 11:23
@Cerbrus just have make the parser smart enough to know the difference :)
Apr 20, 2017 11:23
@GNi33 can use semi-colons with python too, if i recall
Apr 20, 2017 11:22
@MadaraUchiha could use EOL or even the braces to define contents/scope of the function or statements
Apr 20, 2017 11:21
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.
Apr 20, 2017 11:18
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/
Apr 20, 2017 11:12
There's nothing sacrosanct about a semicolon. A smarter parser can easily detect the end of a line without the semicolon.
Apr 20, 2017 11:10
BS4 is trying to be all hip and ES6-esque
Apr 20, 2017 11:02
sounds like a Secret Squirrel thing
Apr 20, 2017 10:00
wow put everyone to sleep already :D
Apr 20, 2017 09:44
..., 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.
Apr 20, 2017 09:44
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...
Apr 20, 2017 09:32
greetings, programs! o/
Mar 31, 2017 10:12
@Cerbrus SYN-ACK
Mar 31, 2017 10:01
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
Mar 31, 2017 09:48
no, we are here... respectively speaking
Mar 31, 2017 09:06
greetings, programs! o/
Jan 17, 2017 13:40
later kids! time to head home from work. o/
 

Web Developers

Room to discuss javascript and jquery, php and mysql issues. b...
Apr 20, 2017 09:34
greetings, programs! O/