« first day (2892 days earlier)      last day (2071 days later) » 
00:00 - 23:0023:00 - 00:00

12:20 AM
@ShrekOverflow Because it's not relevant anymore
 
@BenFortune that is kinda the satirical point
 
whats coffee script
 
@DavidKamer Seems legit. XP
 
Very official
 
Wow this actually a good song
 
1:48 AM
what kind of music do you all listen to when you code?
 
2:00 AM
Haha
I got a couple Spotify playlists
 
I listen to a lot of Tycho but I'm looking for something to add in
already listen to a lot of Com Truise too
 
1. 70's, 80's, 90's Classic Rock Music (5.5 hours)
2. A new playlist (updated every couple of month; ~3 hours)
3. A 2000's Playlist (prob my fav; 5 hours 9min)
4. A special playlist with songs that are perfect for when your speeding through creating something awesome including a perfectly titled "On Top Of The World" (1.75 hours)
5. Rap (20min; I don't like rap that much)
6. Pandora
@DavidKamer No words? Many people code to no-words upbeat songs. I have always like listening to worded songs :)
 
@JBis I think it partly depends on what I'm working on. I'm the kind of person who really listens to lyrics though
 
Just helped someone who had the FB hacked (P.S. Hate that word). Just a reminder don't type your credentials into a site when one of your friends sends you a message with a link saying "[Enter your first name here] OMG LOOK AT THIS"
@DavidKamer ah. I guess it can be distracting sometimes. Don't have to worry about that as I don't work for anyone XD. Hence:
@DavidKamer If you like 2000s here a good one
 
2:22 AM
@JBis freelancing?
 
OMFG if I have to select the signs on any more fucking recaptcha I am actually going to kill google
@DavidKamer High School :(
 
I don't use spotify... I canceled my account last year..
@JBis ahh. Well you're getting an early start on coding, that's good
 
@DavidKamer I use free Spotify. Aint nobody got money for that.
 
I used to pay for Amazon music and spotify... I was a freaking idiot lol
 
@DavidKamer Well I occasionally do some work. I created a donation page for a little less than a year ago. Then they hired me as webmaster (yippee). Then I fixed my shit code. And just informed them of a huge security issue (I want to go into cyber security). Get this: There hosting provider gave everyone access to everyones files. So everyone on the platform had access to donors info.
@DavidKamer Lol.
 
2:28 AM
@JBis holy crap.. What platform was it? (I'm asking because I'm sort of suspicious of one)
 
@DavidKamer Thanks. Fortunately they teach coding. Unfortunately they only teach Java. Unfortunately P2 they go by the AP standards. See Rant #872
 
@JBis what country? I think most schools in the US are teaching Python now
 
@DavidKamer Its a local one that hosts all the libraries in the area.
 
@JBis oh wow. that's really bad
 
@DavidKamer sigh...US
 
2:31 AM
I should have known it couldn't be the EU because you were able to post a meme lol
 
@DavidKamer Another top notch idea from them apparently in order to allow SFTP they have to give root shell access. After explaining to to them that I refuse to accept FTP (especially since on of the people working on this lives on a college campus and their credentials could be sniffed in a second) they trusted me an account of root shell access...Ofc I didnt abuse it but still
@DavidKamer Doesnt understand joke | Googles it "Oh shit."
fucking idiots even if it gets pass how tf are they gonna enforce that
nock nock Mr. Doe we have a warrant for your arrest for violating Article 6 subsection 9. For posting a meme on the social networking platform: Meme.com.
@DavidKamer You in US too, or EU?
 
@JBis US. There is a lot of unsafe practice in the wild. Honestly anything you don't own or isn't owned by someone that knows something about information security is probably compromised. That's a bleak way to look at it, but it's true.
 
Yeah. I don't love the idea of website hosting. The information they could have if they went rouge or got hacked could be devastating.
Think about it. They have your certificates, db u&p, usernames, password hashes (hopefully not plaintext), etc.
Any encryption you try to make can be read by them.
I host all my own sites.
 
2:47 AM
@JBis I think vps's are the best solution in most situations
 
Unfortunately Verizon blocks port 25. I tried calling them once they thought I was talking about a 25th ethernet port on the back of the router. I almost shot myself.
 
ha. Tech support knows nothing about what Verizon does for security. It's how they protect against social engineering but it's pretty ridiculous imo
 
@DavidKamer Yes I guess, although its a bit more difficult to maintain I think. And correct me if I am wrong, can be more expensive.
Almost beat the senior I helped who didnt know that the spacebar existed. All her emails had no spaces in them.
 
@JBis can be. You could probably host most of your sites on a 5 dollar vps. Even the libraries! It all depends on the amount of traffic
@JBis how is that even possible?
 
Yes. Actually now that I think about it, Googles cloud service has a free tier for ever that isn't awful. I use it as a down detector for my self hosted websites. (Will change DNS if it detects a problem).
@DavidKamer Exactly. It's the biggest button on the keyboard. You didn't think to hit it just once? Yet they all claim they were experts on type writers. News Flash: Qwerty is Qwerty is Qwerty.
@DavidKamer I also use a Google free tier to be used a SSH server for an SSH tunnel to bypass school wifi block. XD. Oh thats another place with geniuses running their security department.
But don't get me started on Rant #26
:)
@DavidKamer Good talk. Gtg. Gotta do some stuff. Cya ltr.
 
3:15 AM
Have fun!
 
 
2 hours later…
5:34 AM
how are all my dudes doing?
 
6:16 AM
Hi! I am working on a Chrome extension that is supposed to insert certain text into Facebook's post box (with user permission ofc). However, Facebook's own client side JS code has a mutation observer, that detects these changes and reverts them. Is there any way to prevent this? Or, for a rather more direct question, is there a place where I can find Facebook's deminified client side JS code, so that I could understand how their code reverts my changes (and thus possibly prevent it)?
 
7:08 AM
Hey folks, I was looking at this code example on the ReactRouter page, and this piece is interesting:
const PrivateRoute = ({ component: Component, ...rest }) => (FUNCTION_BODY))
The component: Component part looks like a type annotation
My IDE didn't complain, but I didn't see them using Flow or TypeScript or anything in the imports: reacttraining.com/react-router/web/example/auth-workflow
Does JavaScript have Type Annotation now?
Posted a question - I have a bad feeling I'm missing something obvious and I'll get downvoted - but I need to know... stackoverflow.com/questions/52351864/…
 
7:24 AM
@AdityaMP It isn't
It's renaming a variable in destructuring
{ a: foo, b: bar } = { a: 42, b: 43 };
console.log({ foo, bar }); // renamed from a, b
 
TIL you can use c-b and c-i to toggle bold/italic
 
7:43 AM
@MadaraUchiha Thanks for the info! didn't even notice this until date! developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
8:21 AM
Hi all, I have created 2 actions one for login and another for logout. How can I integrate both of these actions with asyncstorage in react native ?
 
 
7 hours later…
3:23 PM
Anyone? --v
9 hours ago, by Gaurang Tandon
Hi! I am working on a Chrome extension that is supposed to insert certain text into Facebook's post box (with user permission ofc). However, Facebook's own client side JS code has a mutation observer, that detects these changes and reverts them. Is there any way to prevent this? Or, for a rather more direct question, is there a place where I can find Facebook's deminified client side JS code, so that I could understand how their code reverts my changes (and thus possibly prevent it)?
I used jsnice on the facebook code, and spent over half an hour looking at the various functions (involved in reverting the inserted text) and how they were interconnected, but still I could not make much sense out of it :(
 
Unminifying code is something I used to do as a hobby
It takes weeks to do a single project, probably more on the scale of Facebook.
 
oh :O
 
hello, anyone using reactjs?
 
@Orahmax Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
any advice on where to get started? the html code isn't helping either, all the html classnames have been obfuscated
 
3:27 PM
@GaurangTandon Yeah, I wouldn't recommend this course of action.
You could try replacing the global MutationObserver object
 
hmm i'll try that out
 
 
1 hour later…
4:32 PM
Hello ya wonderful folks! When connecting to a standard MySQL server with NodeJS are there any connectors that are suggested over others? I am trying to discern between "mysql" and "@mysql/xdevapi" found on NPM... It appears that the xdevapi is newer and provided directly by the MySQL organisation but I am finding a lot of buzz words around it like "NoSQL" and such which makes me wonder if I should be using it for normal SQL operations...
SO... Summary... Should I be using @mysql/xdevapi ( "mysqlx" ) for normal SQL operations ( normal as in CRUD operations )
 
 
3 hours later…
7:32 PM
> stab-a-liar
I'd like myself a bike with that
also, this site is getting away with comic sans everywhere. The rest of the design is pretty good. I'm confused
oh god, it's not comic sans, I'm just tired
I'm staying at a hostel for the next 2 weeks
 
Anyone wanna read a draft medium post?
 
you know you don't have to ask
now I have to say "sure" if I want to
and it got me into a rant
 
you got me all worked up
 
not surprised
 
8:33 PM
Anybody have any experience designing a watchdog, keep-alive functionality? I'm thinking to have a C++ program send status updates via ZeroC's ICE, and receive them in a JS application (for ease of deployment). My JS isn't too good, is there a way to send notifications for example, an SMS without deploying a server?
 
9:16 PM
@BenjaminGruenbaum you can't throw before the tick is over, otherwise you could never handle any promise rejection anywhere ever :P
 
9:27 PM
@Mikhail There are third part APIs that allow you to do that, yes.
 
twilio probably?
 
Although you normally still want to have a server, because if a malicious user figures out you're sending SMSs directly from the frontend, they may abuse it.
Yes
 
Well, I'm thinking of having end-users register twilio accounts as part of our rather complicated deployment procedure (the equipment is comparably expensive and takes a day or two to install).
So, the computer that is running the equipment brings up a server. If something terrible happens the C++ code stops communicating with the web page in the user's browser, which will trigger some kind of alarm.
 
@snek I'm in Glasgow and with bad internet starting an 8 day trek tomorrow - but you totally could
That is, you can just throw before the next tick happens and not before all next ticks happen.
Wait for one microtask and not all microtasks
Also wow this got a lot of attention travel.stackexchange.com/questions/122443
Like 8 votes in 2 hours
 
@BenjaminGruenbaum were you in london today?
 
9:41 PM
I was in London 2 weeks ago, I am in Glasgow today
And starting the west highland way tomorrow
 
neat, enjoy
I moved to London 3 days ago, if you want to meet up for some convoluted reason
 
Ah, that would have been great 2 week ago, I asked around if anyone was up for it - only Ben spoke up and it didn't work our because it was quite the drive for him
I'll be in Glasgow until tomorrow and in Edinburgh in a week and a bit, then I'm flying back - I'd love to catch a beer next time I'm around
 
Or, you know @snek could just come visit us in Israel
Ah, you're talking to @towc, lol your avatars look similar with my screen dimmed
@towc is invited for beers too
 
I haven't been in Israel yet, actually
could be fun
 
@SomeGuy when you say bad things about places you've engaged with (like your college) - it reflects on you poorly (even if it's true). I think it's important to have concrete actionable and measurable plans for all of those skills and to break them up to course format
Good initiative overall
 
9:58 PM
@BenjaminGruenbaum you should be more specific about your phrasing
if you said it like that the first time i wouldn't have been confused :P
 
I'm very sleepy :D
 
and common, you can't call exiting on uncaught exceptions node-specific behaviour
thats just how js works
there's nothing left executing so the vm stops
 
@MadaraUchiha how about japan
 
@snek I really want to go back to Japan someday
It was a lot of fun
 
10:01 PM
Does anybody have experience with Webpack?
 
@lucahuy Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@DavidKamer what?
 
As part of a hiring team for an IT department in the Midwest we passed on candidates that were clearly avoiding negative commentary to the point of dishonesty.
 
@DavidKamer that's fine
 
If you feel the need to say something negative it can be a good thing, but I agree that it can make you look bad to some groups
 
10:02 PM
Yes, but if you start off with something negative about some place you chose to associate with for 4 years then it reflects poorly on you.
Also, positive thinking does not mean you can't be honest. You can be optimistic and still a hyper-realist
@snek not in many scenarios - it's not what nashhorn does nor is it what browsers do
 
@BenjaminGruenbaum I agree. It should always have positives but you can highlight negatives too. I didn't think you were saying that but I feel pretty passionate about this issue.
 
@DavidKamer about what issue?
 
@BenjaminGruenbaum nodejs isn't embedded js
it is the js runtime itself
if you have something else running js, it makes sense not to kill the entire process when some vm finishes running
that goes for browsers, micro-controllers, etc
 
@snek Node.js is often embedded in other places (like electron) but even if it was never embedded anywhere Node.js isn't JS, it's just one runtime
 
@BenjaminGruenbaum the refusal to say something bad about someone you've received money from (i.e. an employer).
 
10:04 PM
nodejs doesn't have a place to call up to
it is the js runtime
if there's no more js, its done
 
@DavidKamer publicly? You feel strongly about being able to say something negative about an employer publicly?
 
and we even have a hook you can register
uncaughtException
 
The event loop
That's what it calls up to
The call is coming from somewhere
 
@BenjaminGruenbaum It leads to an overall culture of passive acceptance. Look at this thing with Google and China
 
Otherwise the process would end regardless.
 
10:05 PM
I wouldn't do it
 
@BenjaminGruenbaum you're conflating things
 
@DavidKamer passive acceptance?
 
but I think that we should look less hardly on those that have a strong moral stance against something that an employer might be a part of.
 
when node.js has nothing left to do, it exits
 
You an embrace reality and still not start off by calling a place you chose to engage in bad - that still reflects poorly on you.
 
10:06 PM
and the thing that node.js does is javascript
 
@snek right, but it also exits on uncaught exceptions
Even if it has other things to do
 
uncaught exceptions halt execution
 
Right, even in the middle of it
 
when no more execution is left, node is done
 
Which is unlike some other JS runtimes
 
10:07 PM
the event loop services the js
not the other way around
 
There are cases there is no JS execution left and Node still doesn't exit
 
of course
 
Because there are callbacks
For events
 
you can hook and mess with things
 
Just like the browser and click events for example
 
10:08 PM
quite similar yes
 
@BenjaminGruenbaum I'm not saying airing dirty laundry, but the entire point of silicon valley is moving between companies to acknowledge the good and remove the bad. I'm talking about saying thing like, "I didn't like the way my last company handled x because I think it made y worse."
 
Or like nashhorn, or like espruino
 
or moral issues
 
in these cases, something else is re-starting the js
something that isn't the js
 
@DavidKamer that's a different thing from "horribly bureaucratic, untrained professors, donkey-work for projects/assignments"
 
10:08 PM
if that something else doesn't exist, node exits
 
The reason it reflects poorly is because you chose to spend 4 years that way and are complaining about it
@snek that can be the event loop for Node though
 
its not opinionated behaviour, its literally the only thing to do
 
You get a new connection that "restarts" the event loo
You could as an alternative not exit the process and it'd still be valid - it'd be bad, but valid.
 
@BenjaminGruenbaum oh yeah definitely. Honestly I just wanted to start a conversation with you about this because I'm quite passionate about it and you gave me a good opportunity :D.
 
I'm stuck with Nodejs and Webpack. If I do a build first with Webpack, it runs well. If I compile with node, there are errors.
 
A new incoming HTTP connection or whatever is that "something else"
 
the event loop services the js, not the other way around
 
constructiveness of criticism is the only thing that makes it valid in a situation like that.
 
which is why we can restart execution by registering a certain uncaughtException handler, but tcp connections in the event loop won't work
 
@snek "the js" isn't the goal, writing a program is - it doesn't matter what side services what and what the relationship is - what matters is that connections (or clicks for browsers) need to be handled.
 
10:11 PM
i really wish repl.it would stop being broken
 
Dying on a single failure is an opinion, not dying on a single failure (and logging like browsers for example) is another.
registering an uncaughtException handler stops execution from terminating - it doesn't restart it
@DavidKamer still not entirely sure what's your point - but honesty is very important.
 
@BenjaminGruenbaum My point is that constructive and well framed criticism is ok. The way you say it is more important that the fact that it's negative. There is more granularity to the idea, but that is more or less what I was trying to express.
 
@DavidKamer well, without criticism it is impossible to learn lol
Of course criticism is ok, it's more than ok it's fundamental to making progress - it just shouldn't be personal and focus on what can be done better and not who's wrong
 
Could someone answer my question here stackoverflow.com/questions/52338256/…
 
It is incredibly unkind not to criticize and assess accurately
@lucahuy you need to run babel on your server or use React.createElement(App instead of JSX
Just change <App {...initialState}> to React.createElement(App, initialState); and it'll work
 
10:18 PM
@BenjaminGruenbaum in any case, if you're going to argue that a certain behaviour is opinionated i will argue that it should be disabled by default
 
@BenjaminGruenbaum exactly! It's pretty important to a lot of us in the US right now. I can't speak to other countries, but I know that we have a tendency to attack anyone who has an opinion other than our own. The idea of positivity could take that situation and make it 10 times worse. I don't like the idea of feeling forced to say nice things--it takes away validity and meaning and it's uncomfortable. I completely agree that it shouldn't be about the individual but it should be about the action.
 
@snek by all means go argue that uncaught exceptions should not be terminal by default - I would totally be fine with unhandled rejections being silent if uncaught exceptions are.
 
@BenjaminGruenbaum maybe i'll look into that some time
 
I don't think either should - but I'd rather be consistent and useful than what we currently have.
 
but i don't think its useful to compare uncaught exceptions and rejections that weren't handled within a tick
 
10:20 PM
@snek wait, do you agree that either way (even not terminating) is an opinion and design choise?
@DavidKamer what you're describing just sounds dishonest and unfair
 
if execution can continue without intervention by some higher power than the js, execution should continue
 
@DavidKamer there is a world of difference between criticism as in tough love and just saying nasty things about an employer though - just being negative doesn't help if it doesn't serve a purpose. Being positive dishonestly and ignoring your feelings and needs is a great way to buy yourself years of therapy
@snek right, that's an opinion - I'm not sure if I agree or disagree with it - but it's certainly an opinion.
 
@BenjaminGruenbaum I couldn't have said it better myself!
 
@BenjaminGruenbaum Yeah, for example, I think the guy who was team leader before my current one sucks.
❤️
 
@MadaraUchiha yeah, I heard his employees would suddenly disappear at 1pm on Thursdays and show up late on Sundays :D ❤️
 
10:23 PM
@MadaraUchiha lol, you should just focus on why... That guy could have changed or something. (I realize it's an inside joke)
 
@BenjaminGruenbaum I hear that they still do!
@DavidKamer Benji is the guy who was team lead before my current one
 
@BenjaminGruenbaum if you think what i said is opinionated then i phrased it poorly
 
He made a huge mess, then promptly left the company :D
 
@MadaraUchiha oh yeah, that guy sucks lol
jk
 
@snek I don't believe you did :D
@MadaraUchiha "promptly" - after 5 years :D
 
10:26 PM
promptly.
 
@BenjaminGruenbaum my blanket rule of node design is that it shouldn't infringe on js's design, outside of that i don't care.
so for example if we kill the process on an uncaught exception while there are still microtasks in queue, i would be against that
 
yeah that was a surprising read
 
@snek we totally do that though
 
@BenjaminGruenbaum then i'll add it to my to-do list, and annoy ben and fishrock123 later this year
 
10:28 PM
JS's design is for an host environment - it leaves all these decisions to the platform explicitly. That is, JS by design lets us choose what to do here and how to model things like uncaught errors.
 
the microtask queue will continue in the event of an uncaught execption
 
@snek feel free - I definitely look forward to discussing it and challenging the assumption we have to exit on uncaught errors - the arguments for exiting traditionally (callback nesting and unstable core) aren't too relevant anymore.
 
what if we all just go use elixir
 
@snek I'm pretty sure that's not always the case - but maybe I'm wrong.
@snek we'll end up doing what elixir developers end up doing - switch to Node :D
 
all execptions in elixir are fatal
 
10:29 PM
(Something about supervisors)
 
anyway if an error bubbles all the way up in js, it uses a thing called HostReportErrors
it doesn't stop microtask execution
 
It lets the host environment decide what to do - it has no obligation to continue execution or run enqueued jobs
 
An implementation of HostReportErrors must complete normally in all cases
 
That is by design, JS is designed for embedding - Node wasn't the first server platform to be written for JS
 
@BenjaminGruenbaum really? Can you think of another?
 
10:31 PM
@DavidKamer netscape had one like 10 years before
 
is anyone here good at google tag manager? I'm trying to set up user id tracking for google analytics but i'm missing something in the wiring up
 
oh. Netscape wasn't just in browser. You learn something new everyday lol
 
@snek HostReportError is the actual reporting though - not the reaction. That's like HostPromiseRejectionTracker
 
there's nowhere in the spec where the host learns about the uncaught exception
except via HostReportError
 
Anyway, I really got to sleep - good night everyone - see you all in ~8 days :D
 
10:34 PM
is there a way to jump between the frames of a callstack in a recursive function?
 
there's only one call stack
 
@snek fixed the question
 
new question doesn't make sense either
 
why
 
are you trying to get around stack overflows in recursive functions?
 
10:36 PM
@Rick I'm thinking you could store the function to the outer scope but I've never tried that.. Or pass an array as a parameter that contains the set of function calls, but I've never tried it.
 
@snek Or.... is there? :o
 
well one per agent
 
@snek If you want to do that just make two functions recurse each other, right?
 
@Rick Why?
 
@DavidKamer no, that won't work
 
10:37 PM
@DavidKamer I was thinking you could use a callback
 
i suppose in safari you can do as much recursing as you want though
tco ftw
 
@snek Only a fairly specific kind of recursing
 
@snek you are embarassing yourself stop giving advice.
 
@Rick Well then, there is your problem.
 
@Rick javascript doesn't support big fancy recursive functions
because eventually the call stack will get too big
@Rick play nice please
🤔
 
10:40 PM
@MadaraUchiha i am trying to find the nearest ancestor of a binary tree
 
Yeah, that is unacceptable @Rick. If you can't accept help, don't ask.
This is your only warning.
 
with js we generally use looping instead of recursion
if your recursion happens to be a tail call and you happen to be in safari you can do it, but otherwise its not doable
 
@DavidKamer I think you are a genius. You can store the callbacks inside a global
and then you can index the frames
 
mfw literally suggests looping and gets called an embarrassment
 
@Rick if you don't want to store it in global, you could pass it as an array parameter and just push then newest call on the stack. I don't know it would work, but that is my best guess.
function beep(arr){
 return beep(arr.push(this))
}
 
10:49 PM
no that would def work, but you would have to pass them to all of the recursive or at least the ones that matter.
 
but with your logic along side of it... this seems like a wild idea though lol
 
I am trying not to take up any extra memory. thanks dude you are a genius :)
 
🙄
 
vOv
His funeral.
 
@MadaraUchiha is this a shrug
 
10:55 PM
!!tell snek vOv
 
@MadaraUchiha Command vov does not exist. (note that /tell works on commands, it's not an echo.)
 
Boo
Yeah, it's a shrug
 
for some reason it reminds me of xkcd
 
hi friends,
in a ticket booking application, how does a seat get locked for 15 minutes once clicked and remains unavailable for other users?
what does happen under the hood?
 
you clicking it sends a message to the server
then the server will grey it out for future requests
or something similar
 
10:59 PM
is it stored into a table as it's clicked?
 
00:00 - 23:0023:00 - 00:00

« first day (2892 days earlier)      last day (2071 days later) »