« first day (2733 days earlier)      last day (2207 days later) » 

6:00 PM
@rlemon hah that's pretty cool
I want to print the mask actually and wear it for Halloween
 
there was a question in anime.SE asking if running naruto style actually made you any faster
 
sure slows down getting laid
 
I think you need to dislocate your shoulders to properly run naruto style
 
Hey guys, do you recommend any of the rooms for React talks? I'm having trouble finding an answer to a question I asked yesterday on stackoverflow, no answers yet
 
@Masood Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
6:02 PM
@Masood here, mostly
 
@ndugger only if you're a baka ass gaijin
 
I don't know what those words mean
because I'm not a weeb
 
gaijin = foreigner
 
@Ikari It's really not, it's really fucking sad.
 
baka = idiot
 
6:02 PM
you = nerd
 
@Ikari xenophobe
 
0
Q: How to store and pass the user input value using <button> tag in React.js?

MasoodSo I'm trying to get the value from the user and show it on the screen, but it seems my code doesn't pass the value from my Input class to the main class. Nothing happens when I click Submit. here is the code for my main .js class: import React, { Component } from 'react'; import UserInput from ...

 
@ndugger no u.
 
prove it
 
@Luggage cv-pls ?
;)
 
6:03 PM
If you like. :)
 
yeah thanks thats my question
 
target employees are known for their lack of ability to understand how deep and complex the modern anime is
my favorite scene of death note is where L figures out Light was Heisenburg the whole time.
 
he's still watching blues clues
 
@Trasiva man... that still makes me feel sad
 
6:05 PM
@Masood <UserInput changed={this.manipulator}/> This line is missing userName={...}
 
lol, workplace is one of the funniest SO sites
56
Q: What to do about a colleague playing pranks on a manager?

AlexeiI have the following situation at work. A colleague I work with sometimes plays pranks on a young manager. They've known each other for 3-4 years and the manager has the habit of forgetting to lock his laptop when leaving the office and the colleague does small pranks like sending funny e-mails t...

 
@Ikari Big...brother....Ed...Ward.
@ssube I saw that earlier and I just shook my head.
 
Also, the userInput() component never uses the props.changed you pass it.
 
that happened all the time at my last place
 
@ssube I'm deeply surprised and disappointed the first response isn't "stop being a little bitch", but the first answer is "literally not your fucking problem" so I accept it as a close second
 
6:06 PM
leave your computer unlocked, somebody is almost guaranteed to email the team
"I'm a delicate flower" was the favorite
 
my favourite scene from deathnote was when luigi killed miyomoto's pet dragon
 
@ssube god what a stick in the mud
those are tame pranks
 
we'd "pink" people that left workstations unlocked
 
I expected to read "changed status to I LOVE MLP!"
 
or screw with mouse settings
 
6:07 PM
@Trasiva ;-;
 
@Luggage we "owned" people
 
yeh, although when it comes to sending stuff from the boss' PC, keeping it tame seems ok
 
someone forgets to lock pc? change background and lock it for them!
 
changing their background is fun, it frequently took a day or two for them to notice
 
> I want to tell on my coworker because he is breaking the rules and making too many memes with a manager
 
6:08 PM
That person must be absolutely insufferable to work with.
 
I like to change my coworkers' backgrounds to shirtless pics of david hasselhoff when they leave it unlocked
 
@rlemon Switch CTRL+Z with CTRL+S in their editor shortcuts.
 
@Ikari Damn rain, am I right?
 
wtf
 
@MadaraUchiha Calm down, Satan.
 
6:09 PM
the only person who took it too far was a coop named george. Dima was also a coop and on a previous occasion asked which bars don't ID because he had a date that wasn't of age. so George changed his screen saver to the text "BACK OFF DIMA! IM NOT A MINOR!"
that was the only time management got involved.
 
@Luggage what do you mean? it should trigger the manipulator() method in the App component, right?
 
@hilli_micha That's like, the evillest thing I can imagine
 
@ssube We used to take screenshots of the desktop, set icons to hide, then set the background to the screenshot
In school
 
@Trasiva yeah, it's definitely the rain. yep.
 
@Cereal There's a more elaborate version of this
 
6:10 PM
HI guys, wanna ask what is the definition of "state" in the context of web apps?
 
@Masood yea, it needs to be passed down to the <input> inside of UserInput
 
@Cereal we did that in HS to quickly hide our gaming
 
@hfbachri_ Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
because you could hotkey to the desktop
 
Take the screenshot, open mspaint, flip it, set to background, hide all icons, hide start bar, take the picture of the cursor, flip it too, set it as the default pointer, then CTRL+ALT+UP to flip the screen
 
6:11 PM
@Luggage Thanks I'll try to figure it out
 
Everything looks perfect, including the cursor, but the mouse moves in reverse and nothing is working
 
we pulled a LOT of pranks with the computers in HS
because the IT guy was a moron
 
@MadaraUchiha jesus
 
Seriously though, flipping CTRL+Z with CTRL+S is probably the evillest prank I can think of doing to someone
 
ohhi
 
6:12 PM
you could access the machine he used to 'reset' all of the computers and set a scheduled task.
 
give them some new git aliases
 
edit edit, ctrl+s, code changes, wat, ctrl+z, bad changes are saved :D
 
we made every pc shut down at the same time one day
 
@rlemon I put bios passwords last day of my senior year on all the PCs.
 
put games and music on most of the pcs
 
6:13 PM
I’ve had a first delinquent interested in buying my skoda \o/
 
@hfbachri_ for example, a checkbox has two states, checked, and unchecked?
 
@Trasiva ours didn't have a strong password on the ftp server, which they used to upload the school webpage.
 
but not all state information is necessarily tied to a dom element
 
@rlemon Niiiice
 
we were not totally evil. flipped and minor photoshops to most pictures of teachers
 
6:13 PM
@Trasiva ez, just have to reflash the bios
 
@kevin
 
@MadaraUchiha even better was the mouse configuration tool that used to come with windows, you could calibrate it to move in any direction
 
they didn't notice for like a year
 
@KevinB He's probably referring to state in the context of an SPA
 
@Ikari On all 30 machines, yep.
 
6:14 PM
:P
 
@KendallFrey or the times when alt + arrow inverted the screen with certain gpus
 
@KevinB I want to make State Transition Diagram. Really confuse to decide the states
 
@KamilSolecki Did... did you just describe the prank I was replying to?
 
@KendallFrey there was no software involved, it literally flipped your screen
Not changed mouse
 
6:16 PM
You did, didn't you
 
@Ikari The weeb. It's overwhelming
 
Did I?
hmmm
maybe
 
5 mins ago, by Madara Uchiha
Take the screenshot, open mspaint, flip it, set to background, hide all icons, hide start bar, take the picture of the cursor, flip it too, set it as the default pointer, then CTRL+ALT+UP to flip the screen
 
that's not even weeb at that point. it's cringe :B
 
same thing
 
6:17 PM
@KendallFrey oh well maybe I did
Who knows
 
Why did TJ Miller call in a false bomb threat?
 
in my defense, I did not read
 
@MadaraUchiha fakeupdate.net is perhaps worse
 
gj neal
 
@KamilSolecki that's not a defense it's a confession :P
 
6:18 PM
> In my defense, I was drunk when I ran over those children.
 
@KendallFrey I require a lawyer I won't say no more
 
> I thought if I told the judge I was drunk, he would let me off.
 
@Ikari That hurt so much. You now are required to go to the Gaza Strip wearing a dress made of bacon.
 
No, the children were drunk. Thats why I ran over them.
 
s/let/get
 
6:19 PM
@Zirak @SomeGuy @towc @KarelG @GNi33 @FlorianMargaine @BenjaminGruenbaum thanks baes
 
ur welcome
 
lol ok don't google "gaza stripper"
 
brb googling
 
now I really need to google it
 
exactly what I hoped for
 
6:21 PM
ohkay... that was...
 
@ndugger <3
 
borat doing a table dance ++
 
@BadgerCat also, congrats. If it was closer to MN, I'd throw you a party
and sean isn't invited
 
throw it harder
 
@KendallFrey fockin nuts, man
 
6:21 PM
yes there were
 
ohh fuck off. I need to start naming my sketches
:(
 
oh man, my local store has not only changed its layout, they changed the whole staff!
 
no more lamps :(
 
I think I just discovered prop hell
 
I will now have to yet again escalate my privileges to get to the backdoor whenever I want
 
6:24 PM
@KamilSolecki local.store = new Store()
 
I pass a function like 7 components deep, and then use it to pass an objectall the way back up to the top
 
now I will have to ask them to bring stuff for me
 
@KamilSolecki getting married?
 
which always takes ages
@ssube oh lmao
 
@Cereal Yup, sounds like props hell
 
6:25 PM
@Cereal lol, you should see the prop chain in the WebsocketHandler in that plugin thing
I literally have to push handlers to an array from countless components deep
 
yo @MadaraUchiha @Zirak @KamilSolecki looks like the Uprising update is here, fancy some PVE? ^^
 
I did so much reflection today that I could as well become a mirror
 
also, /cc @SterlingArcher
 
@Ikari I'm still downloading the 15GB update
 
6:28 PM
or a Spring bean
 
well, same here :P
 
Brillant Paula Bean
 
It's not really that bad. It's just that there's a modal somewhere you don't expect a modal to be
but it has to be there, otherway way too much stuff updates
Oh well, job security
 
@Cereal abuse context
 
Doesn't context keep changing?
 
6:29 PM
Butter Dean
 
@Cereal You're not thinking with portals.
 
context only just now changed
so no
 
This is one of React's biggest weaknesses in my opinion
You don't have (and can't really have) dependency injection
 
I don't mind passing props down, it makes sense to me
Let me read about this contexy
 
@Cereal It doesn't
Passing props down just to pass them further down is a terrible pattern
 
6:35 PM
you don't need DI to solve this. I'd rather have a single store to pull state from manually, rather than DI any day of the week
 
well, you can do <Component {..this.props} /> which doesn't really give me much of a pita, imo
 
However, most of my experience with DI is from spring, so maybe I'm just burned out on shitty code
 
@ndugger Have you ever done a decent sized app with that approach?
 
I pass a translation object from root to every single component :^
 
yes
 
6:36 PM
Because I have had the displeasure of maintaining one
 
it's relatively messy, but I don't think DI is the answer
 
The order of execution bugs you get there are astounding
 
@MadaraUchiha Benji giving you his messes to clean up?
;)
 
I like to know where exactly my props/state/data is coming from
and DI makes that difficult
 
> Context is designed to share data that can be considered “global” for a tree of React components, such as the current authenticated user, theme, or preferred language.
The examples are literally the use cases I'm complaining about right now
 
6:37 PM
@ndugger You don't know shit with a singleton god store
 
Passing props down a million layers lol
 
@Cereal The reason it can be considered "global" is because it is, at heart, a global variable
 
@MadaraUchiha I mean, I guess you could argue that, but my main "features", or pages, or tabs, or whatever generally only change their own relevant states.
 
Not as global as window perhaps
 
We've come full circle
 
6:38 PM
@ndugger Until, one day, they don't anymore
 
Sure
 
But it's only global for a 'tree'. So you can control it's scope
 
And then you're fucked
 
just don't hire bad developers
problem solved 10/10
 
So if I just wrap the entire app in UserContext.Provider, I can use that anywhere by wrapping whatever in UserContext.Consumer?
 
6:39 PM
@Cereal Correct
 
it's much more like DI than the previous context api
 
Oh boy, here I go refactoring again
 
s/refactoring/killing/
 
@ndugger It's really really not.
 
says one guy with a blue username
 
6:40 PM
if props are like function arguments, context is like a closure.
 
Can you pass up the tree?
 
One of the main features of DI is that you don't care where shit comes from, as long as it's provided for you
 
how would you pass up the tree if the tree is rendered top down
 
@Cereal you can call functions on the object you con in context
 
@MadaraUchiha that's like... the mission statement
 
6:41 PM
that's not how react works
 
@Luggage Ooooh, smart
 
With a component that's got Whatever.Provider in it, I'm now even more constricted than before!
 
@ndugger if there's anything I've learned over the years of programming, it doesn't matter how it's supposed to work
 
I'm bound to a specific import Whatever and I can't even fake that if I wanted to
At least with the old context, I could have passed a fake from above, now I can't really even do that
 
DI is the devil's milkman
 
6:42 PM
Whew. Lotta PRs today
 
@ndugger When you do it in Java with XMLs, sure
 
context isn't DI, but it can be a mechanism to pass down your own DI container or whatever
 
@Luggage If you pass your DI container you have a service locator
 
@MadaraUchiha it can be both
almost all of them are
 
function whatever(loggingService: LoggingService) {
  loggingService.log('foo');
}

// vs

function whatever(diContainer: DIContainer) {
  const loggingService = diContainer.get('loggingService') as LoggingService;
  loggingService.log('foo');
}
 
6:44 PM
stackoverflow.com/questions/49760850/… judging by the neural network bot and the w3schools running and the deleted user our KOS friend is lurking around
 
The first one is great, because whatever doesn't care where the logging service comes from
 
context doesn't have to be more than it is, as I think it makes sense as the "other" way to pass data to components that isn't directly from the parent. It's an abstraction of react that I can use for my own purposes.
 
@MadaraUchiha or you could just, you know, import it
but what do I know
 
The second one not so much, because now I have to setup a universe where I have a real diContainer that returns a fake logging service
 
@MadaraUchiha the second one is necessary for anything distributed, though
 
6:44 PM
@ssube What do you mean?
 
@ndugger he wants to be able to swap out mocks for testing, etc
 
consider a circular dependency
the second one works, the first one can't handle that
 
@Luggage you can mock imports, I think in jest? It's been a while, but I think I recall doing it
 
ohh, ok
neat. I don't know much about tests :)
 
@ndugger you can, it has some downsides
 
6:45 PM
I don't know much
 
mocking entire modules is also much more involved than mocking a single method or something
 
@ndugger But now do it with react props
 
that's a brute force solution to poor code
 
react is so 2017
 
Now you're just trolling
 
6:46 PM
also jest with module mocks leaks so bad
 
@MadaraUchiha was the account deleted by mods or is the user asking a question then deleting his account after to circumvent things?
 
Hello, Christ is Risen!!!
 
trolling is my default state that I revert to once I've either lost an argument or have lost interest in the topic
today it's both
 
@SterlingArcher Wha?
 
user9626725
0
Q: Where did I go wrong constructing this AI?

user9560378So I successfully constructed an AI, (again, I know) here: https://www.w3schools.com/code/tryit.asp?filename=FQ7TEXJCUSRK I moved it to w3schools because the auto-run was getting a little laggy. So it trains without throwing any errors. As for the error rate, I have no clue. When I go to test...

 
6:47 PM
@Pheo Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@MadaraUchiha @Ikari holy lmao reddit.com/r/anime/comments/8b5n3c/…
 
I think DI is awful, you think it's great
 
@MadaraUchiha uh, that ^
 
DI is great, but it's not react's job. I'm fine using it's API as-is.
 
@Pheo We don't appreciate drive-by question links without participating in chat
 
6:48 PM
@KamilSolecki oh, it's the glorious High School DxD
 
between context and decorators I can make it look like whatever I want
 
my version of react doesn't have a createContext method
How new is this
 
very. context recently changed and added that method. 16.3, i think?
 
user9626725
@ndugger You should see the question @SterlingArcher was asking @MadaraUchiha
 
or 16.0
but context exists in older react, just a different api.
 
6:49 PM
This is stressing me out
Okay, so if you have a login somewhere down the tree
 
what version are you on?
 
16.2
If you have a login somewhere down the tree
But you want to pass the resulting user from the top of the tree
 
@MadaraUchiha I suspect socks? But I can't confirm.
 
^ that
 
@Pheo I... what?
Are you or are you not the same user who asked that question?
 
6:50 PM
It's obvious who that is, nobody else uses fucking w3schools to share code
 
user9626725
We all know that the ban was ended today.
 
@Pheo you are not welcome in this room, mod ban or not.
 
I don't see how you can accomplish this with context
 
Ahhhh, he's TheOneWhoMade
I didn't make the connection
 
6:51 PM
@BenFortune let's scrape some URLs and see
 
@BenFortune true dat
 
@MadaraUchiha sorry I should have said that, thought you knew.
 
I bet you there are people who use it and their code is baaaaaad
 
@ssube I can't bring myself to do it
 
lol
 
6:52 PM
oh god
 
@MadaraUchiha the profile on main was the same as before
 
why do people come to the chat when no one likes them?
I don't understand the mentality...
 
I mean
 
@Loktar idk, why are you here?
 
I still come here.
 
6:53 PM
jkilu
 
yeah @SterlingArcher why do they
 
don't steal my joke
 
:(
 
fuck you lemon juice I was gonna say that
 
we all were
 
6:53 PM
@rlemon I don't remember all you daves' and debbies' profiles
 
but I feel bad. Loke is my homie
 
@BenFortune the second dude has some bad codes
 
@Zirak >:( you're lucky I'm at work
 
user9626725
@SterlingArcher So be it. I will leave.
 
@rlemon so it's good that you said it first
 
6:54 PM
@MadaraUchiha I remember the strangest things.
 
Let me help you
 
well whatever I like you guys
 
Felt good to get that out of your system, huh? lol
 
s/u/a/
 
@MadaraUchiha He's still banned for 20 days, under the profile "kuma"
Go full nuclear
 
6:54 PM
@MadaraUchiha so it's against TOS to make an account to get around a ban. how does it feel that the account is made to get around a deletion?
 
@BenFortune link?
 
> a[0] = 0 + a[0];
lmao
 
its a shame hes such a jerk, I really dig his profile pic
 
6:55 PM
steal it from him
 
KOS is a wonderful tool
 
so are you
 
What if I created a profile to get around being identified?
 
@SterlingArcher You're a wonderful tool
 
'awww guys
 
6:56 PM
See, everyone thinks I'm a water droplet, but I'm mostly humanoid in appearance
 
holy joke copying batman
 
@rlemon My latency is higher, he copied me
 
wat
 
I don't think you're a water droplet
 
@BenFortune no, just colonize his joke. make your ancestors proud
 
6:56 PM
@ndugger wow that means a lot thanks
Can't stop the zuck train
 
@ssube ping privileged
 
@Vap0r I'm ready to open up about my feelings
 
did you assume my ping?
 
Nah, I calculated it
 
oh, that's fine then
 
6:57 PM
omg the dugger vapor love sub-plot is about to be revealed
 
@ndugger I don't know if I'm ready will you wait for me?
 
I mean, I was going to say that my feelings are that I hate you, but yeah, this can wait
 
@hilli_micha regardless of how ndugger feels, you are still the ugliest boy in all the villages
Oh no then I'm ready
 
please stop harassing me over the internet, that is illegal
 
He's the best boy
 
6:58 PM
Self-hate is important nick, and I'm a reflection of you
 
guys please stop spamming and being off topic. this is a professional chat
 
Address your issues nick
 
Nicholas is just the result of fancy clicking
 

« first day (2733 days earlier)      last day (2207 days later) »