« first day (2731 days earlier)      last day (2215 days later) » 
00:00 - 16:0016:00 - 23:00

12:18 AM
good evening
 
@KendallFrey you as an old man?
 
You know who that is don't you?
 
had to google it
I'm not a car guy
 
also god forbid I ever have hair like that
@Loktar neither am I
 
12:20 AM
it took me until now to load that image
 
that's how crappy my internet is at the moment
 
I recognize him more like that
 
who is he?
 
My dad
James May
from Top Gear
 
12:23 AM
this one's real and scary
 
wat?
that dudes look changes a lot
 
He chopped his hair off and apparently aged 10 years between seasons 1 and 2
 
lol
 
was looking for your waterfall image
found that though.
but yeah that's crazy man he looks really different between all 3 pictures
 
12:26 AM
well the first one is a shop :P
 
hah well alright that explains it
 
12:39 AM
why isn't there a js slack channel?
 
1:08 AM
surely there is
somewhere
 
1:20 AM
is there a way to tell your compnay is monitoring your compnay laptop. my real question is, should you have any expectation of privacy on a compnay laptop?
 
I don't think you should
 
That sucks.! My compnay laptop is so much better than my personal laptop
 
1:38 AM
you could use a liveUSB linux distro on it
 
how would that help?
you mean wipe the system?
 
not wipe the system, booting from a liveUSB, then if there's any "supervising" software on the original system it will not be running while you use the notebook with the liveUSB OS
wiping the system would work too, but I don't know if have the liberty to do it, so a liveUSB is a better idea, since once you switch off you can go back to the original system untouched
 
@Rick find a company that pays you enough to get a better personal laptop 😉
 
it actually depends on what you want to do with it though, I'm considering you just want to browse the internet without having any company software tracking you?
 
OOoor buy a new harddrive for it
get an SSD/M.2 or whatever it takes, put it in install the OS and do whatever
swap the HDD out when you have to do work stuff
 
1:49 AM
@Loktar ou are a genious. I system has 64 gb of ram. I want to run docker clusters on it.
 
ahh yeah probably a pricey laptop then
but yeah idk that's what I'd do personally if I wanted to use it, just remember to swap the other HDD back in before taking it back to work haha
 
I work remotely I don't have to worry about that. However, I have to use my own electricity and internet which is sorta bull if you think about it.
 
you'd be paying gas to drive to work instead
 
ya, but I would have the satisfaction of a water cool, and water cooler conversation. and company supplied bagles once a week. Another con is they all go out partying because they are on the east caost, and get left in the dust. Other than that I can't complain
 
yea, all that sucks
 
2:00 AM
Thre was like no compnay onboarding by the way. it was a sink or swim. The guy I got hired with I think got fired.
 
whew. i read that link differently for a second
 
I just submitted the same site yesterday
 
textoffenders lol
 
Hello, anyone here?
Need some clarification with latest Ajax requests
 
2:08 AM
!!welcome imFSN
 
@imFSN 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.
 
Hey, OK. Thanks
As I was saying, I need some clarification with the latest methods for Ajax requests
The last method is the async await, correct?
 
I need clarfication on why my coworker does not think my jokes are funny.
so many questions so little time
 
That a joke?
 
no I made a joke about trump sleeping with stormy. no a single lol back.
 
2:20 AM
Can you help me?
 
what is it you want to know
 
What's the last method to make vanilla js Ajax requests?
 
the latest method is fetch
 
I think fetch. Is correct?
Ok
 
but I have a preference for websocket ajax is over rated
 
2:31 AM
Why?
Can you show me an example?
 
if you are going to use tcp, than just use tcp don't let the ajax nazies govern how you consume tcp
 
I'm been using jquery Ajax pretty good, but I think to move on
 
yep new Websocket(---> address
 
So I want to learn another technology or new method if you will
It's time to move on...
Any step by step guide to use the fetch method
?
I'm ready
 
2:54 AM
4 messages moved to Trash can
@Rick you don't need to be creepy
 
@ssube I'm being trolled, I need to defend myself :)
 
Farcry 5 is pretty good
you can get it there for like $45
great deal (add the 15% coupon code in and you get 25% off total)
 
3:35 AM
morn
 
4:12 AM
o/
 
 
1 hour later…
5:30 AM
wut
 
5:44 AM
o.O
 
6:01 AM
yo
 
6:40 AM
does js have >>> and <<< like java or c++
 
7:01 AM
nm
 
Does anyone know what format 13{14ck3y3d}! 13{6dd4ee07e7811f17d2b1b33bf3b6f0c1}# follows?
6dd4ee07e7811f17d2b1b33bf3b6f0c1 is TINY as an MD5 hash, but I'm not sure what the first part is
 
7:22 AM
"lackeyed" in l33tsp34k?
 
Hello guys
Need your advice regarding this question:
0
Q: jQuery get categoryid from filter search on URL

HiDayurie DaveContinue on my previous question Now I would like to get categoryid from this below URL: categoryid http://localhost/badar/category/produkterbaru/CT0007?brand=BR0006,BR0010 Category ID is CT0007 Here is the JS $('input[type="checkbox"]').on('cha...

 
good point. I'm following a lead on an insane puzzle. It says to look for the k3y in the CMS. There's a CMS with a bunch of files, so I downloaded all the files, now searching for k3y in all the files
 
7:43 AM
leetspeak
 
8:29 AM
Is there a way to get Sublime to open all files as regular text? I search a directory for a string, it finds files in it, but it's either in hexadecimal format or as an image
 
8:43 AM
Wow, sublime, so retro
 
😒 Why am I getting Cannot call a class as a function when wrapping a stateless component with observer?
@BenjaminGruenbaum I'm looking at you
 
I'm trying to wrap a stateless component with mobx-react's observer
 
You forgot to write extends React.Component?
 
And I'm getting an error
@BenjaminGruenbaum It's a functional component
export const NewsCell = observer((row: Row) => {
    return LoadingOrNone(row, styles.centerDash) || <NewsCellComponent articles={row.value} name={row.original.name} />;
});
 
8:45 AM
How are you wrapping it?
Ah, that looks mostly correct, although that code is ugly :D
 
@BenjaminGruenbaum So is your face though.
 
What's LoadingOrNone? Is that the one you forgot the extends React.Component in?
Or is that in NewsCellComponent?
 
None of them extend React.Component
LoadingOrNone returns either a spinner component or null when there is a value
 
observer works with functional components, your princess is in another castle
If you change it to return <div>Dafaq</div> does it work?
So, I'm curious, what was the brainfart?
 
9:01 AM
@BenjaminGruenbaum No, it doesn't.
Trying to change it to a class yielded an even weirder result even before adding @observer
Uncaught TypeError: Cannot set property 'props' of undefined
From React.
Debugging reveals that this in the base Component constructor is undefined.
I think something get screwed up, I'm going to try restarting webpack and the relevant tab.
Nope, that didn't work
 
lol
Where are you using NewsCell?
 
9:19 AM
@MadaraUchiha I saw that before
alas, I can't remember
debug harder
 
9:33 AM
@MadaraUchiha so, where did you forget the extends React.Component?
Maybe you have the wrong Component?
 
React Table is retarded
 
It accepts a function with the same signature as a component, but then explicitly calls it like a function
 
sounds like it predates es6
 
@Mosho No, no, it's just not a component
 
9:35 AM
lmao,
 
I even tried passing a React.createClass to it
Nope.
 
my intuition was Mosho's too, so just a bug?
 
Also, the prop name it accepts is Cell which implies it should accept a component, but I looked at the source code
Nope.
 
So you ended up wrapping it?
Wait, we don't need to, you can Reflect
 
@BenjaminGruenbaum No, ended up @obeservering one level up.
@BenjaminGruenbaum No I can't, I target IE11
 
9:37 AM
Why would @observeing matter?
Reflect.construct is polyfillable in IE11
 
@BenjaminGruenbaum oberservering
Added @observer to one component higher
Seems to have done the trick.
 
Why would it matter?
 
@BenjaminGruenbaum What do you mean?
 
Why would it matter that you're calling @observer?
 
@BenjaminGruenbaum I returned the retarded function to being a retarded function, and went for an actual component up the chain.
 
9:39 AM
@MadaraUchiha that sounds like it's going to be a footgun to surprise the next dev that looks at that no?
That is, the next guy is going to add @observer and not understand why it doesn't work
 
@observer wraps stateless components in a react class
 
@BenjaminGruenbaum Nah, there's a clear comment explaining why it's there and not there.
 
which is then called as a function
 
@MadaraUchiha PR react-table?
 
@BenjaminGruenbaum He doesn't seem very PR friendly, or mobx friendly
 
9:40 AM
by react table
 
The few issues about react-table not playing nice with mobx were basically answered with "so handle the data on your own and pass processed data to react-table"
 
new record for me
 
Which is kind of retarded, seeing how most of the info is with them. (the current page, the current sort, etc, so you either take everything and implement half the library, or you're stuck with hacks and half solutions)
 
@MadaraUchiha then open issues and shame OP into submission
 
@BenjaminGruenbaum I don't have your kind of free time. Some of us are actually working, you know :(
 
9:47 AM
@Mosho how many tabs do you have open? o.O
 
@MadaraUchiha You'd rather carry a hack around for years as a doc comment then spend 10 minutes to open two issues for the library in hopes someone picks them up?
 
@Ikari around 60
 
=.=
 
@Madara As you've probably realized, tech debt isn't something you can always avoid or work around and you have to accumulate some from time to time - always have an exit strategy though - even if it's far away
 
it's just a long running instance of chrome
@BenjaminGruenbaum preach brother
 
9:49 AM
:D
Also, I find "your kind of free time" funny, as if you don't spend an hour each day deleting shitposts from StackOverflow, watching imgur links and etc. Not being 100% focused all the time is fine - I'm not focused all of the time.
 
> hour
lol'd
 
> hour
:D
 
Does someone know how to solve x3(12.3)?
 
hello
 
10:19 AM
ohai
 
11:15 AM
lul
 
go to bed
 
no breakfast for you tomorrow, young man
 
11:40 AM
:(
 
11:59 AM
I bet it's urgent :(((
 
@MadaraUchiha he didn't say so so I won't answer
 
12:24 PM
@BenjaminGruenbaum I never disagreed with you on that point.
I always disagreed with you on the threshold of "let's add this technical debt" I'm willing to have in my code.
I actively try not to accrue technical debt, and only accept when there's no other reasonable way that won't cost me an extra week or so of development
Pulling the breaks and saying "I could do this now, or I could do it right for an extra day", then taking the extra day, is something I stand behind.
 
@MadaraUchiha right, but when you do accumulate said debt like in the case today, you need an exit strategy.
 
I have an exit strategy, I've detailed what I've done here and why I've done it, and what the alternatives I've thought of. I've also invited people to beat me with a stick if they find a better alternative (after telling me what it was).
Although at this rate, we might end up forking react-table altogether
 
@Zirak wow that's a long time ago
 
@MadaraUchiha you implied you don't want to open an issue because you're busy, I disagree it's a bad return on time
@phenomnomnominal 6 years
I still think of @MadaraUchiha as a room newbie lol
 
@BenjaminGruenbaum That's not what I said
 
12:36 PM
And of @user1596138 and @SterlingArcher
3 hours ago, by Madara Uchiha
@BenjaminGruenbaum I don't have your kind of free time. Some of us are actually working, you know :(
You did, just rudely :D
 
I said that I didn't want to open an issue because I felt that the author is unfriendly
And that shaming them into submission isn't a good use of my time.
 
And how the fuck have I only met @monners (and only like a month ago)
y'all need to come visit.
 
Please read what I was replying to.
 
@MadaraUchiha shaming them into submission isn't the same thing as opening an issue about it and letting others do the shaming :D
@phenomnomnominal come visit!
 
☝️
 
12:38 PM
Hopefully will soon
Submitted some shit to Angular Up
 
You should tell me when you do that, I know the staff
I can at least express interest in you coming, not sure if that'll work
 
@phenomnomnominal you practically live on the moon
 
I submitted one idea already, working on another now
But I think I'll be hanging with Shai at ng-conf, we're meant to be going to Vegas with a mutual friend 😅
 
Hans Zimmer <3
 
@BenjaminGruenbaum I still can't get the table to render properly :/
It's a 2-stage render, most of the data arrives with the first call, and the more expensive data arrives per page in the second call
The first stage renders well, and the second doesn't render until I force a re-render
I even went as far as doing something like
autorun(() => {
  this.setState({ data: [...this.props.rows] });
});
But that didn't work either.
 
@rlemon *berthing, not docking :P
 
@MadaraUchiha is shouldComponentUpdate called on it?
 
@BenjaminGruenbaum I've already checked, it extends React.Component and has no shouldComponentUpdate implementation.
 
1:19 PM
@MadaraUchiha force updates?
 
@BenjaminGruenbaum We don't have any in our code, and neither does react-table
It's even out of react-table's domain, the parent component under my control isn't re-rendering
Even the autorun isn't called more than once (for the first time)
 
Hi
 
Hello
 
What minifier can I use in conjunction with BabelJs?
So, lets say I make a task which transpiles/compiles the javascript with BabelJS, what library should I use to minify it?
 
@tomSurge uglify
Although, what are you using for bundling?
 
1:35 PM
I am at the moment looking at an old project that I had, which needs some es2015+ functionality. I did not use any bundling previously, I had JS files over different directories, and I now need to add new functionality. I want to automate some of it, but at the moment, the only "automation" or "bundling" so to say is done through npm (package.json)
I am a backend developer (mostly software) so I am aware that I am behind (by A LOT) when it comes to the javascript scene
 
@tomSurge You mean you have multiple <script> tags in your HTML for each of the files?
 
Yes lol :/
 
So much has changed the past year, and do not even know where to start
these*
years*
 
You can't sanely minify without also bundling
You'd be running into the potential of overriding globals and variables
So you need to bundle in some way
Are all the files enclosed in IIFEs at least?
 
1:37 PM
Every js file into one js file, correct?
That is what you mean with bundling
 
@tomSurge Yes
(function() {
  // code here
})();
Something like that?
 
:(
 
@Ikari Old project
 
The only "problem" I have with that, is that some of the JS files are specific to only the page they are included in, so bundling them to one file, won't that mess up functionality?
 
@tomSurge The "right way" is to add a serious tool like webpack, and use real modules
webpack also allows for async importing (i.e. import on demand) which you need
But that incurs a bit of a learning curve
 
1:40 PM
Yeah, I am thinking about just scrapping the whole thing and just start fresh with the proper way of doing it
 
+1 for ^
 
@tomSurge How much code are we talking here?
Also (lol) are there any tests (lol)?
 
Not that much to be honest. Like 1500 lines of js code?
Only on the backend (lol)
 
1500 LoC isn't something I'd be totally comfortable with completely scrapping and starting anew without any tests
A good portion of those 1500 LoC are probably bugfixes and edge case fixes
 
Yeah, but this was done ages ago, it is very outdated
Webpack did not exist back then
To expand further, it just seems like such a hassle at the moment
It feels easier to just, bit by bit, migrate to the new way of "javascripting"
 
1:43 PM
JavaScript isn't the toy script language it used to be, it's a full-featured language with some pretty nice features now
 
Yeah, was shocked when I saw all the new tools and new functionality in the language itself
Been living under a cave (web-wise)
 
whispers python is a superior scripting language
/me hides
 
Here's what I think you should do
Add webpack, as an entry point, make a file with just something like this
import './file1.js';
import './file2.js';
import './file3.js';
...
in the correct order (the same one in which they appear as <script> tags)
 
Sure, so make an entry point (for example main.js) and import all the files.
 
Correct
 
1:46 PM
So I get that, but each of those files have different behavior, and adding all of those behaviors for every page, will that not slow things down/give unexpected behavior?
 
@tomSurge Right, so my next question is is there any kind of structure to the code at all?
Even back then we had AMD (requirejs) and the revealing module pattern
 
@rlemon Is that a space elevator?
 
space needle.
but "only lasts ten seconds, then burns up"
 
Elon Musk's new project leaked
 
1:49 PM
gets atmosphere effects up there.
 
TIL you can italicise emojis ☝️
 
☝️
 
they're cursive, so you're cursing emojis
 
@Ikari reusable diapers? @Ikari
 
good job, they're haunted now
 
1:52 PM
cursive !== italic
 
@Luggage DiaperLoop One
 
damnit, I should have said "reusable diapers". Missed that joke opportunity
 
lol
 
@Luggage ftfy fam
 
repings :<
 
2:03 PM
<3
 
I hate you. @MadaraUchiha
 
No you don't
OW today?
 
They must have changed something
 
@MadaraUchiha yeah, sure
 
2:16 PM
foo: >- # strip newlines, strip trailing
  bar
  bin

# parses to
{ foo: 'bar bin' }
foo: >-
  bar
    bin

# parses to
{ foo: 'bar\n  bin' }
significant whitespace is the devil (and not the fun one)
 
which is my problem with yaml
 
@ssube agreed
 
at least it gives you the option to put it all on one line. I use foo: [] shorthand for empties, and foo: {{bar | json_encode}} in templates
 
2:44 PM
@BenjaminGruenbaum if a @computed property returns an array, do I get an actual array on the other side, or an ObservableArray?
 
2:59 PM
@MadaraUchiha I think you'd get an observablearray but to be honest I never ran into it since it doesn't make much sense to return a non-observable from a @computed anyway
 
@BenjaminGruenbaum Here's my situation
I've an observable Map of symbol to coin (classed object with observables)
And a @computed that returns something along the lines of Array.from(this.coins.values())
For a list of all coins (which is how the table accepts them)
It's a map to make it easier to find individual coins to make updates with other calls
Stuff that rely on the @computed getter don't seem to get re-rendered when I make changes to a coin
 
@MadaraUchiha what is being @computed?
It also might be react-table "optimizing", so isolate
 
@BenjaminGruenbaum In the "store"
@BenjaminGruenbaum Nope, already done that. My princess is in another castle.
I already told you, I setup an autorun and it only got invoked once. "Deep" changes to coins, even though they're observable, don't seem to trigger the @computed's observers
 
I'm in the middle of a bug, can discuss later sorr
 
3:14 PM
y. Completed that for you.
 
@BenjaminGruenbaum why not?
 
@BenjaminGruenbaum Also, @computed get kalvin() { return this.celsius + 273.15 }
Here, I returned a number, that's not observable.
 
i thing returning non-observables makes sense for computed.
it returns what you return.
 
3:34 PM
@MadaraUchiha numbers are better?
 
No idea, but the array is definitely not working :D
 
@Mosho because 99 out of 100 times you don't want an atom on the property key but also on the array - an array is returned from a computed because it is mapped or filtered
 
I'll try to make a smaller test case
 
I honestly don't know if it wraps - does it work if you wrap it yourself?
 
@BenjaminGruenbaum I dunno about 99 out of 100
in any case it's not a good restriction
 
3:38 PM
What restriction?
 
not allowing to return native stuff
 
there is none. a computed an return any value, like an observable can contain any value. The computed getter is what is observed for changes, when read, not what it returns.
 
Yeah, the atom is on the property name
!!sterlingpedo
 
2 days ago, by Sterling Archer
fuck that kid
 
3:46 PM
Nah, it does work
I have another problem somewhere else.
 
3:57 PM
Write it down and make a list of these sucky issues you run into
 
and then send it to someone who cares :)
 
00:00 - 16:0016:00 - 23:00

« first day (2731 days earlier)      last day (2215 days later) »