« first day (2640 days earlier)      last day (2533 days later) » 

00:27
aaaaarrrggghh
my head is spinning
do less drugs
i havent had any
im trying to get the type system in a parser
hmmmmmmmmmmmmmmmmmmmmm
00:49
@Wietlol Why do you want the type system to be in a parser?
because it makes it easier to use
im slowly adding features, but now my type system is horrendous
const weirdDebounce = (fn, ms) => {
    let running = false;
    let resolve;
    let promise;
    return async function(...args) {
        if (running) return promise;
        running = true;
        promise = new Promise(r => resolve = r)
        await new Promise(r => setTimeout(r, ms));
        const result = await fn(...args);
        running = false;
        resolve(result);
        return result;
    };
};
calls 1 fn per ms milliseconds, resolves every call with the result when it's ready
?/10
sqrt(-25)
is that good
squirt
00:59
@ndugger I'd rather not
I’m drinking champagne out of the bottle while eating a microwave dinner and watching Dodgeball
#blessed
I’m also cataloguing all of my wilderness survival gear. I think I have a problem. I guess I’m collecting survival gear now...
I have more than I thought, but I’m gonna get more. I want a foldable solar panel. Saw one on amazon that looked cool
I have some military grade stuff too from my father that civilians aren’t supposed to own
01:18
fuck this is a great idea
uh oh:
$ sudo apt-get install filezilla
...
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
this is when I know I fucked up, right?
@KendallFrey that wouldnt work
either of the players has to be able to solve the puzzle in time
i think, in many cases, noone would win
@Wietlol They have two whole minutes
02:02
I'm doing this MOOC
and the lecturer keeps saying "uh" every few words
it's driving me crazy
02:48
weiners
03:02
why is 16%3 = 1?
@paulywill 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.
ahhh sorry lack of sleep
what's the story behind the angry unicorn logo on the room rules page? i've seen that sticker before...lol
not sure, but SO does unicorn-themed stuff pretty often. 16 % 3 is 1 because 16 / 3 has a remainder of 1
 
2 hours later…
04:53
Howdy
@MoonEater916 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.
05:44
@KendallFrey That was a pretty interesting page! If you've read Our Mathematical Universe, do you recommend it?
I drank a table full of mimosas today and had a power blackout in another state
I accomplished quite a lot
Sounds like the start of a great weekend
I got a seg fault
in nodejs
and then a kernel panic :/
I looked at memes all day
I thought you were trying out Rust
06:02
That was last night
did you stop ?
Yeah, it’s not the language I was hoping it was. Too many quirks
What are you looking for my friend ?
Javascript 2.0
Dart :trollface:
06:05
Lol
@ndugger on a serious note what are the features you are looking for, problems you are trying to solve, is there are domain ?
I usually resort to python when I don't have to have JavaScript or Performance
I basically want rust with classes. I want to be able to (in the future) compile to wasm with access to the dom, but also classes so I can use custom elements
Rust has access to dom even today
and if you are looking to compile to WASM there are a plethora of languages
Yes, but classes are required for custom elements
not really
06:08
Yes really in the current form of the spec
link ?
I am pretty sure required is an overstatement, most likely in WASM you'll either be able to get around (me digs the source code stdweb)
I’m on mobile, so you’ll have to find it. All I know is that in its current form, custom elements requires es classes
You can’t even use legacy methods of inheritance with functions; classes are a hard requirement
Thats just BS (if thats the spec)
classes are just an abstraction / sugar in js
I’m pretty sure it is. Welcome to the future
Not the future, feels like 1995
this feels like someone from Sun / Oracle wrote it, either that or they really don't want you to touch DOM in WASM
06:13
Welcome to the present
me reads the spec
I think it has to do with the fact the HTMLElement’s constructor is all jacked up
06:59
@ndugger that might occur in native land
but then a binary interface would be better :P
sup guys
07:20
Agreeing with ndugger
 
2 hours later…
09:41
@TinyGiant Why? There's async iterators in the language
async function delay(n) { ... }

async function* infiniteRange() {
  let i = 0;
  while (true) {
    await delay(1000);
    yield i++;
  }
}

(async () => {
  for await (const n of infiniteRange()) {
    if (n > 10) { break; }
    console.log(n); // counts every second
  }
})();
09:59
@ndugger Honestly, I think React 16's <Fragment> is a better solution
Seeing something like that in custom elements could be nice.
i.e. define the shadow root without there having to be an actual root element
 
3 hours later…
12:31
Good day.
When React component is described as function, then basically entire function is same as render method of component that is described as class?
12:53
The question was basically about conditional rendering, that is described here reactjs.org/docs/…. Example describes only function style component and it is a bit unclear where should one place return in class to achieve same result. Should it be in the beginning of render method?
@Eugene Correct
function SomeComponent() { return <div />; }

// equivalent to

class SomeComponent extends React.Component {
  render() {
    return <div />;
  }
}
Thank you. So the first assumption was correct as well?

> When React component is described as function, then basically entire function is same as render method of component that is described as class?
@Eugene Yes
Great.
You can use a function component when you don't need state or React lifecycle hooks (like componentDidMount())
12:57
Yep. Got it. Thank you.
13:47
  public signupUser(usertype:string,email: string, password:string,adress:string,name:string,Phonenumber:any){
    if (usertype == "0"){
      return this.http.post('http://iceonwheels20171117020935.azurewebsites.net/api/Customers',{
        email: email,
        name: name,
        pasword:password,
        adress:adress,
        Phonenumber:Phonenumber,
      })

    }

    else if (usertype == "1"){
      return this.http.post('http://iceonwheels20171117020935.azurewebsites.net/api/Drivers',{
So I have this code snippet, but the router.navigate only works sometimes, when both if statements don't trigger because the form validation denies it
I'm not sure why and how am I meant to fix it
 
1 hour later…
15:09
TIL of <base>
15:27
Anyone here uses react-intl in their apps?
16:00
what backend would use with react native?
@Jurassic 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.
// Why this class doesn't work?
class dimension {
	constructor(costBuy, costUpg, prodBase, bonusUpg = 0.5, incrBuy = 0.1325, incrUpg = 1.35) {
		this.baseCostBuy = Decimals(costBuy);  // This is a function from a library I have. This let me make really big numbers.
            //...//
	}
}
var game = new class {
	constructor() {
            //...//
		this.dimensions = [
			new dimension(10, 100, 1),
		];
	}
    //...//
};
alert(game.dimensions[0].baseCostBuy);
var game = new class {
and you never instantiate game
even if that would have worked
nvm, I read that wrong
funny lookin tho
Anonymous classes?
Anonymous classes are a thing, yeah.
16:08
Weird
... I am trying to make a class that I will only use one time. I mean, I'll only have one "game"
singleton?
why are you making it a class then?
wouldn't a plain object be just as useful without the confusion?
16:09
@Wietlol poop
@jAndy I was following this suggestion, so I thought I shall use class for this things...
@EnderLook for me it works
except that Decimals is not defined in JsFiddle
@Wietlol It's from a this
So... "game" musn't be a class?
still, if i change
this.baseCostBuy = Decimals(costBuy);
to
this.baseCostBuy = costBuy;
it works for me
16:12
oh
(also tested with alert, but imho, for JsFiddle, using document.body.innerHTML is more user friendly to read js stuff)
maybe define "doesn't work"
@jAndy or anyone with relevant knowledge: have you ever seen a pale bodybuilder that actually looked decent?
My real code (a bit more larger) doesn't work. I am checking it
#define "doesn't work" -> "doesn't work"
@towc body builders don't look decent, imo
16:16
@Wietlol The last line doesn't execute
then maybe something crashed your script
an error was thrown, or whatever
there's likely an error being thrown
"doesn't execute" can have many reasons
coming from which interpreter you use, which application is supposed to deal with the alert, which js version you use, what happened before that line, etc, etc, etc
most of it, you wouldnt give a shit about, but might still be relevant
Well, it didn't work, but after re-write the code know it works... I am not sure which was the error...
im not a js guru, but i suppose node.js handles alert differently for example
maybe even ignores it
16:18
there is no global alert in Node
should get a ref error
ah, well, there it is
I found the error... it seems that in the original code (not the sumary I post here) I didn't wrote new... :)
old
19 hours ago, by ndugger
I decided recently that I won’t put any more packages up in npm, or yarn for that matter. Pull my shit from github using release tags instead
Not that anyone other than myself even uses my packages
oh, huh
acknowledging that you are useless is step 1
:p
16:59
sciencealert.com/… @KendallFrey @rlemon @ssube so pretty!
17:11
@Wietlol I created my own router so I didn't have to use express. I use it for all of my personal projects, but most people decide to just use express
It's a pretty good router, though, and even supports promise-based middleware
17:42
where can i find (html) templates for angular 2+ apps???
 
1 hour later…
18:45
dat massive... massive... MASSIVE eyebrows
you guys just can't handle the future of human evolution
 
1 hour later…
20:06
@towc what do you mean pale? like white?
Jay Cutler, Frank Zane, Dennis Wolf, Dorian Yates, Markus Ruhl, Branch Warren, Arnold Schwarzenegger, (endless list following)
20:33
pale means no tan
well, kind of the opposite of a tan
@SomeGuy I haven't, but maybe I should.
@jAndy all quite tanned
well I didn't read the whole convo and I don't know what's it about, but even quite "natural" tanned guys use tan on stage. That's just a simple principle of light and shadow (aka contrast)
oh, there's no convo
I was just kinda curious
I want to try to keep pale-ish, and wanted to see how muscly guys pull it off
rewatched a school cabaret, and noticed that I basically looked like one really weird mush of muscles, and noticed that if I wasn't so pale it wouldn't look nearly that bad
but I don't like the idea of not being pale
stage bodybuiling is all about making muscles visible as much as possible, therefor you need "dark'ish" colors to create a hard contrast. That's why I was saying that even a pretty black guy most likely also uses tan/oil/conditioner on stage
20:44
:/
but of course... the black guy has a slight advantage on normal days
yeah, was hoping to find some rare examples of paleness that still managed to rise above
but guess not
pretty much impossible. Load any picture of a muscular guy in photoshop or gimp, turn the contrast very high and very low.. and you totally get the point
so, is there a way to look pretty good as a pale guy at all, without using makeup?
I just often see tanned people as fake or pretentious and similar
as if it was its own makeup
of course a guy like Jay Cutler does also look jacked without any tan.. if you are trained and jacked, it will be seen. Just not as good if you create that big contrast
20:48
which, as you said, in body building, it is
but yea.. a little natural tan helps. Just go out for time to time and let the sun do the job :P
that's exactly what I'm against :/
going out in the sun?
not against the sun. I like the sun. I'm against using the sun to try to get a tan
I hate people who lay on the beach to get a tan
or who try to show their tans off
that's just bitchy
"hey look at me, I'm so useless to society". Ofc there's entertainment value when it comes to bodybuilding, but I wouldn't get any close to competitions anyway, and I'm not into bodybuilding either way anyway
but bodybuilders seem to know what they're doing :P
yeah I kinda agree. But then again, it's a very natural reaction from your skin to adapt to that radiation. I guess in old days where clothes were not a big thing, everybody looked pretty damn tanned :P
20:53
well, thanks :)
if someone comes to mind, do tell
or even just a paritcular pic
:D
I mean.. that looks pretty standard tanned to me
can't tell if tanned or just really good lighting
or even postprocessing
of course its pretty good light there, as I said.. all about the contrast/opticals
there's some tan, but still, that's kind of just ugly
also, any in which they have their shirts on?
mainly curious about the necks, and what kind of clothing they pick to go well with the arms
I'm not going to go around shirtless
I really don't want to show off, I just don't want to look ridiculous :P
@jAndy omg where did you get that picture of me from
20:57
I mean.. if you got anything any close to that mass, you looked jacked in any light and any clothes :P
@BenFortune I shot it :D :D
gross
It looks uncomfortable being that bloated from so much muscle
I don't like this kind of porn. Please post different pics
@BenFortune fantastic
@jAndy well, you see, the guy on the left seems more decent than the guy on the right
I'd rather be left-guy than right-guy, I think
I'd chose neither of the two tbh, I like be in good shape but also functional, athletic and fast
21:10
yeah, you have a really good balance going on
but I guess balance doesn't win contests
@BenFortune well he can just insta kill you with a punch
21:46
@towc I can't tell. So far, no balance didn't win, just finals. I always thought balance and condition wins you (natural, amateur) contests, I will have to confirm this year
balance gets you women; looking like a freak gets you trophies. your choice.
that's the point, you can't look freak'ish on natural (off-season tested) amateur contests. Either you get caught on cheating and even if not, you'd never win if obvious drugs are involved
21:59
Since i'm banned from overflow, u'm going to ask my question here :D

It's such an headache to make my design cross browser compatible and atm i've run into some issues with browser scrollbar and fixed positioning. What i have is
prntscr.com/hxd350
It's a screenshot from Chrome and as you see it's perfect :D Thats the way i want it to be but now i'm struggling with firefox, idk why but with fixed position firefox positions scrollbar on top of my element. i can't change width because then it would mess up my chrome view. Does anyone have ideas how to fix it??
"Since i'm banned from overflow, u'm going to ask my question here :D " - great intro
@jAndy uhm, what's "non-natural"?
also, congrats :D
any other vegan competitors?
putting needles into your ass is non-natural :P being on the juice, drugs, hormones, pretty much what happens on stage for 95% I'd assume
juice is a euphemism, right?
teehee 'hormons'
aren't most of those illegal anyway? Except for silicone maybe
there you go man I know you love those sims
lol pretty crazy peripheral
@Loktar can you hook it up to factorio?
lol
damn it's pricey
USB though could probably remap everything and play Dark Souls
that one youtuber should grab one
@david Your audience gotta relate with the struggle for them to listen to your problem.
22:20
@Loktar Yeah but I don't own a train sim :/
@drpzz I don't relate because I don't ask shitty questions that get me banned.
yeah thats my first acc, i asked stupid questions when i started out like how to change height on an element etc :D
@drpzz having multiple accounts to get around a ban is a punishable offense
someone's going to call the internet police on you
Atm i'm totally just totally clueless on why the chrome still hasn't taken over
towx
22:28
sux for u
@towc stackoverflow suggests to make a new account when you get banned :D
2
@drpzz source?
Multiple accounts by one user are "OK" as long as they aren't being used as "sock-puppets"
Circumventing a ban isn't OK though
sock puppets are okay unless you're using it to, like kendall says, circumvent a ban. or you are voting on your own shit
22:34
yeah i returned after 6 months, asked a question got no response and now i can't ask questions anymore. Thats why i created another acc
There's no point to improve stupid questions also
well, that is against the rules
rule breaker
I'm calling the cops
My bad. https://stackoverflow.com/questions/48087491/changing-the-tags-with-the-text-between-the-tags
I got response but i didn't get any downvotes nor upvotes and i still got a question ban.
@rlemon I know man, shh
Anyway, i'm an attention whore and i would like to get your opinion on my dash design.
 
1 hour later…
23:46
I’m not a fish

« first day (2640 days earlier)      last day (2533 days later) »