« first day (2721 days earlier)      last day (2228 days later) » 

4:00 PM
You can't redefine most predefined identifiers, but you can redefine undefine. That's hilarious.
 
undefined isn't a reserved word
true is.
 
"undefined isn't a reserved word. That's hilarious"
 
I think you don’t realize that by making undefined = true you are just making a global field with that name
And in the second, operating on a parameter
 
@KamilSolecki No, I do understand that's what I'm doing.
Well, sort of. Actually, I'm making undefined a variable scoped to function f.
 
nothing scoped there
 
4:14 PM
oh my god... after including react-ace in my bundle, the whole thing amounts to 3.91MB
this is going to be such a pita trying to copy paste into console
 
(function f  (Infinity)  { Infinity = "a grain of sand" ; return Infinity } () )
"a grain of sand"
@GNi33 What do you mean?
 
Hello! I am in need of a plugin that has to display a picture and description and details. I have browsed through many lightbox plugins but they all display the image only. please let me know if there is one available anywhere
 
@azamkhan 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.
 
!!> let foo = { bar: 'baz' }; ((foo) => foo = 'bux' )(foo); foo
 
@Shmiddty {"bar":"baz"}
 
4:17 PM
Anyone know why webpack 4 was released before the docs were ready?
The docs are still for 3.x
 
because making docs sucks
 
@CapricaSix Thanks
 
@azamkhan try lightbox
 
@azamkhan I think she likes you, she doesn't usually talk to most people.
 
My pleasure then.. @Shmiddty
 
4:20 PM
maybe she'll marry you
 
I would like to ask for more questions then..
 
@KevinB I mean, I get releasing a beta before the docs are done, but they actually release multiple versions of 4.x
 
Is the bot available in a sandbox? I should get familiar with it but I don't want to spam this room.
 
More questions more chances to marry her..
:D
 
And the docs are just wrong now, and there are almost zero valid examples for version 4 now
 
4:21 PM

Sandbox

Where you can play with regular chat features (except flagging...
 
@azamkhan I grant you the permission to ask 3 questions
 
@Ikari Nice. Thank you.
 
I would create a plugin for her..
that beats the heart thousand times per minute...
 
sounds... exciting
 
Now please get started. where can I find the plugin for lightbox.
 
4:24 PM
probably via google
1 question down, 2 to go
 
@Ikari So I went there, and almost immediately I was told:
in Sandbox, 2 mins ago, by user1596138
@MetaEd please play in https://chat.stackoverflow.com/rooms/17/javascript
 
I am in the middle of a theme that I am creating for themeforest .. don't worry I will blow the place with my chemically poisonous questions.. :D
 
I don't mind where I go to learn the bot ... but is it here or there?
 
lol he's trolling :P
 
in Sandbox, 2 mins ago, by user1596138
Jk lmao
 
4:26 PM
so funny, abusing new users haha
har har
 
@MetaEd ah, that's a room regular, he's kidding
 
._.
 
@Cereal that's just cyberpedophilia
 
@azamkhan that sounds kind of terroristy
 
user1596138
@MetaEd I said I was kidding
 
4:26 PM
@KendallFrey That's my fetish
 
!!fetish
 
nice
!!info fetish
 
programmers are terrorists
 
@SterlingArcher Command fetish, created by Sterling Archer on Tue, 01 Dec 2015 17:33:40 GMT
 
4:27 PM
nice
 
@user1596138 I see that now. It was drowned out by the box.
 
:D
 
haha nice @KendallFrey
@azamkhan easy does it, please
 
@SterlingArcher ?
 
You guys ever just mindlessly switch between tabs
 
4:28 PM
@azamkhan That's a logical fallacy. Some terrorists may be programmers, but not all programmers are terrorists.
 
nope
 
It's like I went up the tab bar to go back to work, and my body just refuses to click the right tab
 
@azamkhan strong emotion isn't allowed in this chat. Smiling is discouraged.
 
@Cereal sometimes I get off reddit on my computer and get back on it on my phone
 
where is my girlfriend?
 
4:29 PM
like hey, what's up smaller reddit
 
@azamkhan don't be creepy
 
!!tell azamkhan echo Right here, bb
 
@Shmiddty Command right does not exist. Did you mean: riot (note that /tell works on commands, it's not an echo.)
@azamkhan Right here, bb
 
TIL you can make cap speak
 
!!tel Shmiddty protip
 
4:30 PM
@Shmiddty protip
 
inb4 Cereal abuses it
 
Hi!!! @CapricaSix
do you still in mood to marry me?
I want to find an image gallery plugin..
 
Let's not encourage creepy ass behavior lol
 
or creepy any behaviour
 
.
 
4:31 PM
1 message moved to Trash can
 
let's stop now instead of later when it gets worse
 
don't abuse Cap, folks
 
Please.
 
@azamkhan drop it now
 
4:32 PM
@azamkhan We don't want people to repeatedly make creepy comments about marrying bots
 
Or creepy comments.
 
Fine. I'll be good
 
@KendallFrey It's 2018 tho
 
yo guys, can you save me some time. I'm reading up on Flux and Redux. There seems to be some overlap. Which do you use nowadays?
 
mobux
 
4:34 PM
We use redux at work
 
mobux?
 
we use redux, but the good people want to replace it
mobx
 
I can't tell if my eyes are going crazy, or if my monitor is flickering pixels
 
we started using redux a few weeks ago, so far we like it a lot
 
I hear good things about mobx
 
4:35 PM
but mobx is all mutators
 
Oh ok. I thought you were using a Roblox game called Mobux.... I was confused lol
 
mobx is the concept, redux is the enterprise implementation
 
@ThiefMaster despite the rooms position on mobx, I'm thoroughly enjoying the abstraction redux introduces to a codebase
It can be a bit confusing, but it's very clean imo
 
redux can have a lot of boilerplate, which is the next problem to solve
 
@SterlingArcher Do an experiment. Hypothesis: eyes are going crazy. Test: Look elsewhere in the room. Expectation: Whatever you look at will be wonky.
 
4:36 PM
Never really understood what boilerplate meant
 
the header/footer code
 
boilerplate is code that is basically the same with small differences
duplicated across an application
 
you could make an object with new Foo
 
Agreed, the downside of react is also when asking questions, you basically have to post the entire component for others to get it
 
4:37 PM
but in COM, you need the boilerplate
ISomeInterface* interface_ptr = NULL;
HRESULT hr = CoCreateInstance(CLSID_SomeClass, NULL, CLSCTX_ALL,
                              IID_ISomeInterface, (void**)&interface_ptr);
same thing, more code, to fit into the library's standard
 
We try to avoid 'boilerplate' code by util'izing anything that's used more than once
Especially data models
 
when it shows up in every class, it's boilerplate
utils are great, if you can do that. A lot of older C/++ boilerplate is preprocessor stuff or, like COM, using UUIDs for things.
 
basically anything you can reuse by copy-paste rather than some other means
 
lots of boilerplate means it can probably be abstracted
 
Anybody working on blockchain? I started a Solidity room for smart contract programming here. Room 167440 on SO chat
 
4:39 PM
@taco why isn't your name tacocat?
 
@Shmiddty Cat is my surname
 
what's your unsurname?
 
what's your ladiname?
 
@ssube is that c++?
or c
 
either/both
 
4:40 PM
M'lady Name is Fawkes
 
you can use COM from C, but it's not easy
that particular snippet could be either
 
!!s/COM from//
 
@Cereal you can use C, but it's not easy (source)
 
why doesn't coldfusion cfftp just work
 
because it's coldfusion
 
4:42 PM
it also doesn't give meaningful error messages
well, meaningful to me
> java.lang.ThreadDeath
 
Sounds like a thread died
 
what am i supposed to do with that
 
call the morgue
 
before it dies, don't die
 
what is freed may never SegmentationFault
 
4:44 PM
haha cold fusion haha
5
might as well put nails under your eyelids while you blink
 
that tetanuscalated quickly
and that's not the best combination-word
 
s/tet|c.*//g
 
that anus
 
@taco I was reading about a sleep deprivation torture method actually. It uses a double sided fork, and it lodged under your chin. You're then hung upside down or strapped down so that when you go to sleep, your chin moves, it jabs you, and wakes you up
 
4:50 PM
you have weird fetishes @SterlingArcher
 
Apparently the positioning of the forks made it literally impossible to sleep, making it quite the slow but effective torture technique since sleep deprivation is catastrophic to the brain
 
the problem only happens when uploading larger files, ftp works fine with smaller ones. i suspect memory problems
 
@KevinB happens with age
 
posted on March 29, 2018 by CommitStrip

 
@Feeds 4/10
 
user1596138
4:55 PM
@Loktar ^ Doug
 
No, that's Robert.
 
No, that's Rob.
 
Are you sure it's not Bob?
 
!!giphy is this the krusty krab
 
user1596138
4:58 PM
10/10 giphy
 
^
 
Bug squashed. 3 more to go
 
Has anyone here set up webpack-serve to work with es6 modules yet? I can't get babel to work with it for some reason, and get the SyntaxError: Unexpected token import error in node 9.10
 
I had it working
 
My webpack config is written with es6 module syntax
 
5:01 PM
Webpack doesn't compile itself, use require
 
@Cereal note, I'm talking about webpack-serve, not webpack-dev-server
 
@NathanJones so gulp your webpack
 
@rlemon but i can run webpack with the same config, and babel processes it
webpack-serve should be able to do the same thing with the config, right?
 
well shit
this server is configured wrong
 
should i try using .mjs?
 
5:05 PM
aren't they all, if you think about it?
 
it was only allocated 256mb of memory
 
that should be enough for anyone
 
2 to go ^^
 
@ssube bwahahaha
 
@rlemon That's nice
 
5:12 PM
So, this is probably the worst solution ever, but I got it working by creating a separate file that includes babel-register with require(), then requires my webpack config
 
@NathanJones You can probably do something like call your config webpack.config.babel.js or something like that
And if you have babel-core as a dependency, it will use it magically
That's what it does for TypeScript and webpack.config.ts
 
@MadaraUchiha I've done all that, and it works when I call webpack...
but not for webpack-serve
 
Never used webpack-serve :(
 
ftp from this server is soooo sloooooow
i just hit a 300 second timeout on an 80mb file
 
It's supposed to be the successor to webpack-dev-server, and uses native WebSockets
 
oh dear
 
5:32 PM
@user1596138 @Loktar i.redd.it/qv7w050whoo01.jpg
man..
 
anyone ever used react-ace? if I'm trying to set one of it's props to a state variable of the component, it doesn't get used for some reason I don't understand... this is my component for ace gist.github.com/SaitamaSama/9099ecb04b740de73a8e473b9f06b9e5 and react dev tools reports the prop mode as an empty string as well i.imgur.com/FeSE07u.png
and for that, no autosuggestions or syntax highlighting work :(
 
@Ikari You don't appear to set this.state.mode
 
umm.. disregard everything I said... I'm retarded
I shouldn't be allowed to code
 
ahaha crazy people
"N1 Heavy "
 
this 3.1mb bundle literally takes ages to copy and paste and process in console
 
5:42 PM
use robogist
 
Why do you have to copy and paste in the console?
 
I run the webpack build, which spits out the bundle, then I copy it and then open the console of any so chat window and inject the script from there
 
Ohh it runs on the page
Thought it was standalone
 
I feel like, when ramda works, it's unbelievably convenient
 
@Ikari you could have the build auto update a gist file, and robo gist can pull the gist contents for you
 
5:44 PM
oh, is there a gist api I could use then?
hmm, onto the googling spree!
 
Lookit you and your work ethic
 
on a side note, this thing is actually working \o/ (that's ^ ctrl + k)
 
Does the websocket connection have cors or something?
This crushes my plan to put chat in an intellij plugin
 
if you're writing a client, you can ignore cors
 
Man, the late answers/first posts queue is a great place for easy flags
 
Ohh yea. Subbed already
It pairs well with childrenfallingover
 
@rlemon lmao the first post
 
not gonna lie i though this sounded like the most rlemon thing ever
 
I've been looking for this one!!!
 
I like /r/childrenfallingover because (as per the rules) there is no serious injury. just kids being mini drunks
 
5:55 PM
@SterlingArcher welcome to physics, bish
 
that's not very nice of you Kendall
 
what isn't, physics?
 
physics is not nice
 
physics is mean
 
physics is like a cheez doodle
 
5:56 PM
better steamed?
 
physics is actually not very nice to study though :P
 
@SterlingArcher physics are fine, gravity is a bitch tho
 
@ssube please don't ever do that
 
@Ikari studying physics is, like, my fetish
 
steam cheese doodles?
I steamed some cheese puffs as a kid
they were pretty much the same
 
5:57 PM
Do I need to do something special to post to /ws-auth here?
 
@KendallFrey you're weird man :B
 
@Cereal no
be logged in
Mar 20 at 17:44, by rlemon
fetch('/ws-auth', {
  credentials: 'same-origin',
  method: 'POST',
  headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' },
  body: `fkey=${fkey().fkey}&roomid=17`
}).then(res => res.json()).then(console.log.bind(console));
 
You think I'm weird? You've clearly never studied quantum mechanics
 
So you wouldn't be able to do it from outside the page
 
> Paraplane pilot experiences a sudden landing
 
5:58 PM
quantum mechanics makes perfect sense, once you realize we live in a simulation
 
I assume that's what credentials: 'same-origin' means
 
that's what you just reminded me of lol
 
@Cereal never tried.
@BenFortune might know better
he made an electron client iirc
 
@Luggage yeah but no
 
which part?
 
5:59 PM
I get a 404 just doing a post from a script
Which is not the error code I was expecting
 
well you need valid fkey
 

« first day (2721 days earlier)      last day (2228 days later) »