« first day (2613 days earlier)      last day (2333 days later) » 

12:00 AM
@towc also why drugs
 
Hi guys! Whats up? I'm starting a new job as a js developer next year and I'm super excited and nervous because my skills are just mediocre. Greetings from Germany!
 
@kamikater 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.
 
@kamikater mediocre where and how?
 
just not so much experience
 
@kamikater congrats buddy!
 
12:02 AM
thx
 
Heil javascript yo
 
omfg
 
Too soon?
 
no heil here please, thats forbidden here
:D
 
shame shame, Sterling
@kamikater find some open source project that interests you (or that you use) and contribute a patch
it's great experience
 
12:03 AM
this is the scene btw:
 
Lmao sorry bro, I couldn’t resist
 
@towc he's not a priest, just a psycho cannibal
 
It's funny because I'm no native german
 
I’m about to make my first clever tinder joke from somebody’s name
 
the priest is a different part of the movie with bruce willis
 
12:04 AM
I’ll keep you updated
 
s/from.*//
 
thanks ssube. I'm already reaing tutorials and stuff
 
exploringjs.com is a good read, if you haven't
it's meant for folks who know how to program in general and know some JS
 
Thats's me!
 
Damn ssube savage
 
12:05 AM
@ssube oh
well, he looks happy
 
Actually I have to do some AngularJS stuff too, and that p**** me off bc I just started to learn Angular, not AngularJS
 
@towc I feel like the movie is pretty clear that he's absolutely nuts and downright evil
 
@ssube but happy
 
@kamikater don't fuck with angular, it will piss you off
@towc a person like that can't be happy
 
look at his face!
you don't fake that shit
 
12:06 AM
a psychopath can fake any emotion
 
I like typescript. reminds me of Java
 
TS is the best
 
@ssube in order to keep itself alive, right?
 
Well I HAVE TO do AngularJS
 
he should have known "happy" was not the best emotion
 
12:07 AM
@towc no, clearly not. He was already dead.
it was just a last desperate attempt to manipulate his killer
it just didn't work
 
I'd like to think he was just happy :/
thanks for ruining sin city
 
that makes it better dude
the bad guys in that movie are sick and selfish
in such different ways
 
The joke went right over her head
 
Java, shudders.
 
sometimes when I feel in pain or really down, I think of him and say "I should try to be like him. Just, ya know, without all of the crazy stuff"
 
12:09 AM
I’m pissed it was fucking clever
 
@towc he was nothing but the crazy stuff.
dude ate people
that's what you're turning into
 
well, when I thought he was actually happy... he was happy, so we was that
now you ruined that
 
you're welcome :D
 
guess I'll need to hold off on the leg of this homeless guy I found and rethink my life choices :/
no but really, for some reason I thought he was a priest
 
!!s/off on the leg of//
 
12:12 AM
@KendallFrey guess I'll need to hold this homeless guy I found and rethink my life choices :/ (source)
 
I lied looks she loved it
 
I think I started watching the movie a few episodes in, and didn't get the backstory for that character, and somehow assumed he was a priest
 
I don't get it
 
Hahaha jk I fooled you guys
 
lol dude
it took me like 3 times to get that
 
12:12 AM
LOL
 
who runs out of coke?
 
Poor people?
 
oh gross
 
Right?
 
@SterlingArcher is her name Adeline?
 
12:13 AM
Last person I met named Adeline was like 80 years old
 
lol right
 
@towc yes lol
sorry I’m drunk
 
@SterlingArcher yes :)
 
I'm fixin to be
 
I give no fucks on tinder when Ive been drinking lol
 
12:14 AM
You get none either, apparently
 
you give no fucks, you get no fucks
that's how it works, I think
 
it's an inverse relationship
 
@KendallFrey damnit
 
Weeeellllll let’s not go that far
 
@ssube No, that would be poetry
 
12:15 AM
poets don't have relationships
they're too busy being assholes
 
And poor until 209 years later
 
s/be/bon/
 
The ultimate college fund
 
@SterlingArcher you know what's not creepy and actually super great? On any message you can react to on messenger, react with a normal smiley face
and then send a big smiley face sticker
 
Wtf is a sticker
 
12:16 AM
are you a 4 year old using mommy's tablet?
 
@SterlingArcher push the smiley button and hold for a bit, so it enlarges
 
Is that like facebooks emoji?
Ew what
 
I think that's called a sticker
but yeah, big emoji
 
one time I was hitting on somebody on snapshot and made the mistake of using one of their emojis
 
which I think is not a real emoji
 
12:17 AM
@SterlingArcher I found the guy who failed kindergarten
 
fucking thing was practically fullscreen
convo over
 
@towc s/smiley button/you know what/
 
I don't know what
 
IT'S A PENIS JOKE MATEI
 
wait, does it go bigger if you push and hold it?
that sounds painful
 
12:18 AM
inb4 I just introduced towc to masturbation
...I should probably leave
 
I don't know how to respond to that
 
@KendallFrey I’ll have you know I skipped a year of preschool I was so advanced tyvm
 
I also skipped a year of school as a kid
 
@SterlingArcher what are you drinking?
 
smartypants bros
 
12:20 AM
I skipped 2 years, jokes on you :P
look how I'm turning out
 
I’m chasing beer with shots of vodka
 
(2 years in the italian system)
 
I did not skip any years
 
Wait sorry chasing vodka with beer
 
@SterlingArcher I'm listening to some Neil deGrasse Tyson graduation speech
 
12:22 AM
the weather report keeps changing :/
 
Unless he’s drunk I’m not interested until I’m smart again tomorrow
 
I think I'll just have to wake up at a decent hour, see if the sky is covered, and wear a raincoat
or well, pack it
 
> if sky is covered
 
I had a different sentence in mind :/
 
12:24 AM
> dammit guys, who forget to put saranwrap on the sky?
 
@ssube you forgot the else statement
 
wat
 
@SterlingArcher do u youse elses?
 
if (sky.is(‘covered’))
Else’s are for people who can’t catch conditions
 
if you don't start making sense you're gonna catch these hands
 
12:26 AM
Girl I will beat you in an elevator
 
@SterlingArcher one can't both chase vodka AND catch conditions
unless you're super talented
 
No but you can catch the herp pretty quick
Wait shit idk how to delete on mobile
 
you can
 
@SterlingArcher wat?
 
WHAT DO
 
12:28 AM
bout what?
 
elevator thing, I guess
 
Oh lemon you’re late I tried a name pin and it didn’t work
Also I almost offended germany
 
I'm not sure that was a pun
 
where should I start reading from?
 
@SterlingArcher how old is this "Germany"?
 
12:29 AM
Thats it meet me in the elevator ssube
 
does she know you're married with kids?
 
@SterlingArcher you know they have cameras now right
 
I want them to see
 
they don't have zoom
 
you like it when they watch?
 
12:30 AM
sorry
 
@rlemon honestly buddy I’m not sure. I let you doen
@ssube you say that like there’s another way
 
Oh, you still here guys. Am already deep in speakingjs.com/es5/index.html
time to sleep, bye! and thanks to ssube for something whats seems to be the bible of js
 
Shouldn’t that website be called typingjs
 
12:46 AM
Hey People, can someone of you help me make little thing race condition proof? Because I had quite a few. And I am not so sure how to tackle it.

https://gist.github.com/phumberdroz/3b0834676b7983cc2074f2b046c95910

This script reads from 375 files and parses them and creates sessions (connecttime, disconnect time, ip, account used)
These sessions get saved but because of the nature of the file some information is spread across multipile rows and there for i insert the info when i get it.
To manipulate the session i access it via the key but due to the async nature of JS the index sometimes
 
1:00 AM
does anyone use react-form ? react-form.js.org I am trying to update a field based on the value in another field and can't for the life of me get it working.
 
 
2 hours later…
2:47 AM
i figured it out, the doco was out of date
 
 
1 hour later…
4:01 AM
My personal project went from 5.6MB to 800KB by ditching react and a third party component kit and swapping to my own WebComponent + ShadowDOM + VirtualDOM solution
 
mornin
 
4:30 AM
@ndugger interesting
what about performance
 
4:53 AM
^ As per my college, this is good code. :[
 
:P
the dangling commas are just golden xD
my condolences
 
Good day everyone
 
Wes
@Loktar carl is immune :B
 
how can I achieve this
import modal from 'vue-semantic-modal'

export default {
  components: {
    modal
  },
  data() {
    return {
        showModal: true,
        confirmed: true
    }
  },
  methods () {
    confirm () {
        this.confirmed = true
        this.showModal = false
    }
  }
}
inside the <script></script>
I tried to use the var modal = require('vue-semantic-modal); but I don't know how to deal with export default
Thank you in advance
 
5:17 AM
@Mosho I have no idea yet. I’m still flushing out the core. I think I have a lot of logic branches that never get touched. I need to clean it up, then I’ll start benchmarks
 
@ndugger it looks pretty good, easy to read
try {
        if (existingElement.tagName.toLowerCase() !== newElement.tagName.toLowerCase()) {
            removeNode(existingElement);
            return createNode(newElement);
        }
    }
    catch (e) {
        if (existingElement.tagName !== newElement.tagName) {
            removeNode(existingElement);
            return createNode(newElement);
        }
    }
though that's a little odd
 
That’s some of that logic branch stuff I mentioned. It’s been rewritten twice by just piling on. It needs some cleanup
 
did you consider typescript
 
Ugh. No, but maybe I should. I just loathe writing interfaces, lol
 
you don't have to
you can rely on inference and add interfaces when you feel you would benefit
for example, the value returned from createNode would automatically have the right interface/type
 
5:21 AM
Wouldnt you have a lot of “any” or “object” types strewn about if you don’t write interfaces?
 
not really
in your case at least, I believe
 
I can look into it
 
adding type information to your functions should be all you need
simple enough, don't have to think about what "interfaces" you need in the big picture
rename your files to ts (or enable js compilation), enable the noImplicitAny flag and go through the errors
I did it a few times, doesn't hurt
 
I’ll tackle that after I do some benchmarking
 
5:42 AM
@Wes lmao
better not be
 
Wes
i need to rewatch it with subtitles i missed a lot again
i want to kick eugene in his teeth and force him to eat them
 
morn
 
5:56 AM
morning everybody
Has anyone ever used ampproject.
I just wana know, Is it any good? Is there any real benefit to it...
Is what they say true or not.
 
as an end user, I hate amp pages
 
Hi all
I have a basic observable question
Suppose, I did observable.next(data) even before subscribing.
Would that subscribe function calls for that called next?
I am trying to replicate the issue here and it sometimes calls and sometimes doesn't
Observables are so confusing
 
6:11 AM
@littlepootis What do you mean?
 
 
2 hours later…
7:49 AM
Heyo
 
hi
Kamil, are you having a huge snow storm at your place?
it is raining "Imma going to work from home" notifications here 😲
 
whoa
Its all cloudy but no sight of snow
although
I was in Warsaw yesterday
and it was snowing
just a little bit though.
 
traffic is having a heart attack in Belgium. Like usual :D
 
8:11 AM
Morning
 
8:39 AM
@MadaraUchiha TS brainfart
 let segmentLength: number | null = null;
Error:(15, 7) TS7034:Variable 'segmentLength' implicitly has type 'any' in some locations where its type cannot be determined.
Y?
  function setSegmentLength(lengthInMilliseconds: number) {
    segmentLength = lengthInMilliseconds;
  }
Error:(45, 29) TS7006:Parameter 'lengthInMilliseconds' implicitly has an 'any' type.
 
@BenjaminGruenbaum Cannot reproduce
 
Yeah, I think it's webstorm mocking me
 
8:57 AM
@MadaraUchiha how are you feeling?
@MadaraUchiha vscode is showing a JS import inside TS with red squigglies below it - but Webpack finds the file, y?
tsloader uses the project tsconfig.json - the import is a JS file
 
@BenjaminGruenbaum Better, thanks. Walkable.
@BenjaminGruenbaum Do you have allowJsImport enabled (or something like that, don't remember how it's really called)
in your TS config
 
No, I don't
If I do, TS OOMs lol
 
In that case, you have two options
 
@MadaraUchiha oh, did you have an accident or something? :(
 
either enable it, and add 64GB of RAM
Or add a .d.ts file for each JS file you'd like to import.
@KamilSolecki Fought a bear. You should have seen the other guy.
Also, Nitzan gave me his Fulla Schiit to try out
I'm loving it so far :D
 
9:09 AM
Unbearivable.
 
Fellas, what do you/your company use for CRM?
 
@MadaraUchiha it doesn't work when enabled
@MadaraUchiha nice
 
@BenjaminGruenbaum What what's enabled? JS imports?
 
@MadaraUchiha yeah, tsc itself figures it out even without the flag, it's vscode that complains
It's a webpack baseUrl thing
adding the following made it compile, but not work in webstorm:
 "paths": {
      "src/*": ["src/*"]
    }
 
9:31 AM
Instead of "paths" try to use "include"
 
Still works with webpack, still fails with vscode
 
Hi
^ Any help with the above small gist based on Observables in typescript?
 
@MadaraUchiha worth mentioning that the file is index.js in a folder called config and is being required as src/config
 
@BenjaminGruenbaum I think TypeScript has hiccups with index files ATM, try naming it config.js and require as src/config/config.js
We encountered similar problems that were solved when file was renamed away from index.
 
I am using combineLatest as there are other Observables as arguments which work fine..
@MadaraUchiha any help?
 
9:46 AM
@MadaraUchiha didn't help
 
(Angular) : I might be missing something here but why would I want to add sync=true when lazy loading modules ?
export const routes: Routes = [
  { path: 'lazy', loadChildren: './lazy.module#LazyModule?sync=true' }
];
the docs were not that clear ( to me)
 
10:02 AM
is there a way to reset a timeout apart of cleaning and setting again?
 
no
 
object.value returns undefined in all browsers if value is not in object?
I mean, I don't know how to check that compatibility
 
if the standard is followed, then it should
 
10:41 AM
Imma 😡 on Cisco
 
Hello
I'm having doubt on "Data table specific column filter with multi select drop down" ?
Could anyone help me ?
 
!!welcome BalasureshAsaithambi
 
@BalasureshAsaithambi 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.
 
> multi select drop down
I hate such things :P
 
@KarelG I mean, choosen select
 
10:54 AM
@towc how is the browser support of vue.js? It only mentions not supporting IE <= 8
 
11:15 AM
@KarelG all other modern browsers are supported, afaik
I don't know about older versions of safari
but older versions of anything else are just not around because they update automatically
should work fine on opera mobile and the others
 
11:29 AM
How do you deal with modifying data for specific user before returning it from API? For example a "game" has a mission list and player submissions. A player shouldn't see missions until game starts, also some details of the missions are for admins only. Player should only see his own submissions. And so on. Is there some defined good practise for this problem? I'm talking about MongoDB in this particular case
Or should data be split into many collections and then assembled as required?
 
splitting the information seems to be the way to go
which doesn't prevent to generate the user specific composite object server side, as long as it's short lived (the equivalent of a dbms view)
 
@towc thanks
 
@DenysSéguret Thanks. So ideally I should not delete any properties from objects? Only assemble them from different collections?
 
That's a better practice in my opinion. It lets you refer to object in a non ambiguous way
 
11:45 AM
Yeah this sounds like a better way to me as well. It just adds complexity in other ways, so I thought maybe there are other ways. Let's say a game has missions, missions have submissions and answers (answers are for admin viewing only). This creates 4 different collections. Having missions inside the game, and answers inside missions would seem like a more "MongoDB-way" approach. Or maybe I should use a relational database in this case?
 
Is there a way to check whether the user arrived at the current page by pressing back button?
 
What's the second parameter this? $("option:selected", this);. I cannot find such a thing in the documentation.
 
@Andrius I don't think the choice between sql and non-sql storage should impact the concern of object perimeter.
 
Context
 
11:51 AM
It means the current object.
 
@Shafizadeh it's the same as $(this).find("option:selected")
 
I see, thx
 
And it's mainly useless. You could use jQuery and never use this second parameter
 
Man my internet is laggy
 
@DenysSéguret agreed, but actually I'm confused, why $("option:selected", this); and $(this).find("option:selected") are identical? In the first one it's just this, in the second one it is an jquery object $(this). Odd ...
 
11:55 AM
Many operations in jquery involve wrapping. And sometimes rewrapping, just in case...
$($($(this))).find(selector) is the same, just more expensive (more $==more expensive)
 
@rlemon +1
 
return this.constructor(context).find(selector);
Is the line you're after
 
11:58 AM
who's the author of jQuery? Has he any activity in SO ?
 
Jake weary
and no he isn't. He's an actor
 
Oh, what the hell ...!
 
Psh, my answer was more fun
 
You should totally ping him any time you have a question regarding what's the second parameter of a function
 
12:01 PM
@DenysSéguret good for him :-)
@rlemon also when you are kidding, you should use a blink emoji
 
@Shafizadeh But he is not the only one, there is a whole team working on it.
 
kidding with an emoji isn't kidding
 
:-)
 
@mega6382 he made the important stuff
 
@mega6382 yeah I know
Also what about you @DenysSéguret? You have lots of repo and it's interesting for me to know what's your job? And how old are you ..
 
12:03 PM
(and don't try me on the stupid jQuery mobile
I'm an old bearded monkey stand
 
:-)
 
hey I had a question about why geolocation won't work: stackoverflow.com/questions/47720854/… . - Now after a few days it suddenly started working. (I didn't change a thing, literary) . What should I do with the question?
 
@paul23 at the very least add a comment to tell just that. Then, either you can understand what happened (-> answer) or you can't (-> close)
 
@DenysSéguret Added an update
Follow up question would be "why is the geolocation update frequency so slow while the native android geolocation updates many times a second, and how can I force it to update the heading many times a second".
But I get the feeling the answer is going to be: "sorry you can't do that in a sandbox like javascript in browsers".
the heading/geolocation updates like every other second; while I wish to use the website as compass and thus should act "smooth" and update while a person is turning.
 
12:22 PM
@William some internal stuff, non-public
 
@paul23 This looks like a good valid question for SO
 
I am trying to async save document to Mongo. I am using this stackoverflow.com/a/31349824/1939163 code, pasted it on my controller, it returned me person.save is not a function.
 
> I am using this code, pasted it on my controller
no modifications ?
did you really read the code (in both question and answer) ?
 

« first day (2613 days earlier)      last day (2333 days later) »