« first day (2644 days earlier)      last day (2529 days later) » 

20:00
then<T> (fn: (...) => Promise<U>): Promise<U>
I have no idea
maybe not for then
that's confusing
So when will TypeScript get it's own cool tag on the chat topic?
class Promise<T> {
  then<U>(success: (value: T) => U | Promise<U>, fail: (err: Error) => U | Promise<U>): Promise<U>;
}
@BenjaminGruenbaum Something like that ^
I wasn't so far off, lol
20:00
TS has generics?
@MadaraUchiha what about the types of errors?
@BenjaminGruenbaum I don't think that TS has that kind of support (in its build in types, that is)
But then<U, E extends Error> pops to mind
What I mean, then<U, E> and the callbacks need that type.
Also fail is obviously optional
Also then should work with subclasses so SubPromise#then returns a SubPromise
20:02
@BenjaminGruenbaum I think in TS it returns PromiseLike which is basically "IDGAF what type of promise it is, the interface is promise-like though"
Yeah, you can pass null to either or pass none - .then() has a meaning.
@BenjaminGruenbaum how would you do that in any language?
@MadaraUchiha yeah but the challenge is to type promise correctly - that's just the game we're playing now.
@ndugger TypeScript has a type this inside of classes.
@ndugger you have a this type.
20:02
oh, interesting
@BenjaminGruenbaum Don't think it's possible, else they would have done it in TypeScript.
Can also in swift and C#
it's conventionally used like python's first-arg this
@MadaraUchiha it's annoying to use but it's possible. It's for the same reason TypeScript doesn't have checked exceptions (in fact, it's the promise analogy of checked exceptions)
@ssube No, we mean something like chainableFunction(bla: any): this
20:04
then(foo: any, bar?: any): any; // drops keyboard
oh, not (this: X)?
@ssube That is also possible, but you can explicitly say that a function returns this
yeah
My BetterRecord example I linked a couple hours ago uses this
Because Immutable structures return themselves (with some values altered), the return type of setIn() and co is this.
that gets really interesting when you have a Partial<this>
20:06
I want Omit<T> to be a thing :(
I'm pretty sure wanting that is a smell
looks up lodash types for .omit()
rather than omit X from T here, T should be a composition of a few mixin types
or you have a type that extends T with X
imgur.com/gallery/0m4MT Pornhub statistics 2017
cc @rlemon
@ssube Here's a concrete example I have from today
We use react-intl
react-intl's components accept and id, which is a string
I want to be stricter than that, I have a list of IDs as a type (derived from the translation JSON)
20:08
@MadaraUchiha yeah ideally it'd be a string union
@BenjaminGruenbaum It is a string union on my end
But the component accepts string
@SterlingArcher The time spent on site statistic is a hoot.
I would like to create a new component, whose prop types are Omit<TheirComponentProps, 'id'> & {id: MyListOfIds}
idk the traffic/hours of day timeline was hilarious
interface Promise<T> {
  then<U> (success: (resolve: (value: T) => this<U>, reject: (value: T) => this<U>) => this<U>, failure: (error: Error) => this<U>): this<u>
}
I have no idea what I'm doing
20:10
@MadaraUchiha You could implement Omit
that's too many generics
if MyListOfIds is a subtype of 'id', that's fine
Apparently after work is primetime for many people xD
@BenjaminGruenbaum Not really
otherwise, Omit could break the class
20:10
I could give it a type of never
@SterlingArcher rick and morty porn?
But that's not very useful in my case.
you can't just leave things out after the fact
@Luggage idk if that's worse or better than fidget spinner
@ssube It is, but even if it isn't, that's on my hands.
20:10
Do you guys like Post Malone?
Omit is essentially what TS is designed to prevent :P
I messed with the types.
@ndugger is that a sequel to Ho Malone?
Also the Fidget Spinner data is a bit of a kicker. I knew about the Rick and Morty searches
@ndugger Yeah, he's so chill
20:11
And Ho Malone 2: Lost in New York?
@SterlingArcher "step mom" dropped 2 places to 4th? wtf
Post Malone makes some pretty fucking great music
@MadaraUchiha what's the type of string & ('foo' | 'bar')?
"States that last the shortest" XD
20:11
@KendallFrey It's sad that people just don't hold family in high regard liek they used to
@BenjaminGruenbaum (string & 'foo') | (string & 'bar')
I know it's not your thing
LOL They have stats on traffic changes during the Solar Eclipse, are you kidding me?
but he's good
Which is also what you see in the type error if you pass neither 'foo' not 'bar'
20:12
@hilli_micha dashboards are fun
Which is why I didn't just do TheirTypes & {id: MyTypes}
@ndugger I'll check him out later, I'm raging out to gojira atm
@MadaraUchiha if that's the case, I think that's a bug/wrong
It's super chill music; not hype inducing like your usual hardcore
the 'foo' | 'bar' type is already more specific than string
20:12
Oh by the way, I don't know when it happened, but generic components work now!
my music chills me out tho
lol, time spent per visit.
Russians are fast.
@SterlingArcher I just got this joke
good joke
:D
subtle, right?
perfection
20:15
oh my god the indian porn statistics are a goldmine
How do I check the existence of a property in JS?
there's indian porn?
I don't even want to know
.hasOwnProperty?
canadians love Kim K apparently
@KendallFrey confirm?
20:16
Or can I do some type of object.property == undefined check?
@SterlingArcher meh
@Vap0r x in object, object.hasOwnProperty(x), object.x !== undefined
various ways
@Vap0r or 'property' in object, but they do slightly different things
I'm deeply disappointed the Indian stats does not include bobs.
there are no indians named bob
20:17
> average boobs/person: .6743
@towc @ndugger thanks
I googled "indians named bob" and I got this image:
in is safe if you have a pojso (like JSON.parse), but not generally
@ssube pojso?
piece of json?
I googled "indian named bob", and I swear to god the third result was the
wikipedia page for "Bob Lemon" (cc @rlemon)
20:18
a "plain old" object, without a bunch of prototypes methods and such
only 68yrs of porn uploaded?
Why the hell is the top search of Brazil freakin' Overwatch?
They have statistics on porn watched during the eclipse im crying
Alright cool how do you negate it? Wrap it in parens?
@KendallFrey I get that too en.wikipedia.org/wiki/Bob_Lemon
20:19
@ndugger true
bob lemon the indian
Or "not in" (lol)
@hilli_micha overwatch porn was huge before it came out
or do you mean the american indian?
@Vap0r yeah, !(x in object)
20:20
@ssube Yeah but it's weird that Brazil of all places has it all concentrated, none of the other regions have it as a major item, but BAM Brazil
anyone other than the northern half of the US has weird taste in porn
I guess. Of all the niche genres, the characters were realistic enough that I never thought it was that weird
nvm, Russia was big on Overwatch too
> <s> You must need a really high IQ in order to jack it to rick and morty porn. </s>
the Rick and Morty stuff is way weirder
20:20
Actually I've seen some damn good Rick and Morty porn
10
well, good parody, not good porn
morty + summer is what I get off to
s/a really high IQ/to be really high/
I knew about the Rick and Morty stuff so I'm not too weirded out by it
you have to be dangerously high to whack it to adult swim
!!s/(\<s>)|(\</s>)/$1<marquee>$0</marquee>/
20:21
@SterlingArcher Could not process input. Error: unterminated parenthetical on line 5961
@ssube Don't give me ideas dude..
what on earth did I just write
My parents caught me watching anime porn when I was young and I think they'd have preferred if I was gay
2
drug talk is to be discouraged :cough:
@hilli_micha Mr. Pickles, I dare you
20:22
I'll tell you how it goes.
or King Star King
love the 4pm spike for "favorite times to watch porn"
that's the weirdest show I've ever seen
wait I'm fucking stupid
Mr Pickles and Superjail are probably 3 and 2
20:22
I assume it's standardized for each timezone
!!s/s/marquee/g 40778253
@SterlingArcher <marquee> You mumarqueet need a really high IQ in order to jack it to rick and morty porn. </marquee> (source)
@SterlingArcher man those comments are gold
> mumarqueet
oh fucking h*ck I give up
20:23
@SterlingArcher crazies, not stupid
also true
lol
> I feel like I single-handedly influenced some of these statistics.
> single-handedly
( Í¡° ͜ʖ Í¡°)
user1596138
Lol avatars take soo long to update
> mumarqueet
20:24
lol
I always have to use two hands
> single
stop inventing animals dude
@Jhoverit that might be too much power for one person
20:25
@Jhoverit no memes allowed in chat
stop being a mumarqueet
@SterlingArcher no jokes allowed in chat
no mumarqueets allowed in chat
there are no relevant results for google-ing mumarqueet
buy the domain then
20:26
@SterlingArcher I thought you said this chat was indexed
@SterlingArcher finally, a name that isn't taken on npm
@SterlingArcher I get a bunch of muslim women when I do an image search for it
I'm still figuring out how the hell Fidget Spinners work in porn.
@SterlingArcher It just hasn't been around long enough to be considered clbuttic
@hilli_micha I can't tell you in here
20:27
@hilli_micha think 'tail'
@KendallFrey did you just have a stroke
I assume.
Humanity has gone too far.
20:28
wait, how do they get the age of pornhub visitors?
I get pornhub members, but visitors?
they track you
haha!
Love it @KendallFrey
@towc Yes, various forms of analytics make an assumption of your age and gender based on other websites you browse.
bah
20:29
towc your ip, user agent, etc, and be compared to that form advertisement data from other sites.
to get a 'likely' match
@towc that's also a topic
I'd have bet ~50% of pornhub visits were from underages, but they can't legally say that
Wow please never gamble
why are India's numbers skewed so far? Is their culture even more oppressive than I previously thought?
I'd take that action
20:29
maybe this is why searching in google doesn't work?
Another edition of "towc says something unanimously wrong"
@SargeBorsch what
@SargeBorsch it's also why whatever you're going to ask us about isn't working too
JavaScript code won't work on your site if you don't have JavaScript enabled
Not with that attitude
Correct
20:30
google doesn't need js to return searches
Anyone who browses the internet with javascript disabled in 2018 is either 50 years old, or doesn't understand how websites work
@SterlingArcher that's what you think
And you're right
@ndugger I do that when I go to my darknet porn sites so the FBI can't track me
I'm always right even when I'm 60% wrong
user1596138
@ndugger Did I post a meme I didn't know about
@Vap0r if you're worried about the FBI, you should stop looking at what I can only assume is illegal from that context
@Jhoverit your avatar is a meme
user1596138
20:32
It isn't.
it's the next natural evolutive state of a meme
Wouldn't it suck to be the person at the FBI who has to parse all that crap?
@ndugger it's not illegal I just get off from the kink of thinking the FBI is watching me
The sites themselves are fairly vanilla
I'm sure there's fake fbi porn for you to look at
"We suspect this guy is looking at illegal porn, you have to go through ALL of his porn."
20:32
sucks to be the one looking at all the hentai all day
@hilli_micha unzips pants... ready
@SterlingArcher STOP. NO, don't give the internet any ideas.
user1596138
> Assassin’s Creed Rogue Remastered Coming March 20th
user1596138
Okay that game just came out
user1596138
What the fuck
user1596138
20:33
It sucked, too (runnability)
When are they gonna remaster the first one?
maybe they too out the parts that sucked?
I want them to remaster COD MW2-3
@Vap0r I think you have that backwards
20:34
I miss that game.
it's just the intro, some parkour, and the credits. No plot, nothing
I want them to remaster runescape
@KendallFrey ?
@ndugger they did, the released old school runescape
the best runescape
20:34
@SterlingArcher they did, didn't they? But you could only get it with the special edition of Ghosts or some shit
more like wrongscape
there is no good runescape
user1596138
@SterlingArcher At least that's old
@ssube dude what
shut up, you're just poor.
user1596138
20:35
You can't just remaster a game you just released lmao
enjoy your bronze armor, ugly
user1596138
> CoD Black Ops 3 Remastered
sorry, armour*
@Vap0r If you kink is the FBI watching you shouldn't be using the darknet
20:35
Every CoD is just a remaster of the previous one, since people only play the multiplayer anyways
garbage franchise
s/a remaster/another scope/
@KendallFrey I mean it's common knowledge the darknet is broken at this point I thought
MW2 was honestly really fun, especially online.
user1596138
@ndugger Actually they changed drastically..
I played a LOT of MW2.
user1596138
20:36
The original fanbase does not like it now for that reason
Carnegie Mellon taught them how in like 2013
on that Q3A engine up through Black Ops or so
I stopped playing after the first world at war or something like that. It was just a bunch of shitty recycled assets repainted to look different
I still play Black Ops zombies
not playing COD is for poor people
zombies is fun
the new CODs are garbage, too much future.
@KendallFrey I think that's why we had a SilkRoad, Darkmarket and Alphabay shutdown all in the span of like a 2 year period
it ain't fucking here
drinking beer and playing MW2 is also fun
user1596138
20:36
Remind me not to buy into his trolling
I haven't tried WW2 multiplayer though
Battlefield 1 was pretty good. Campaign should have been longer, but it was decent
@Jhoverit whose?
WW2 Multiplayer is alright. It has a Zombie mode that's pretty nifty.
user1596138
Duggers lmao
20:37
@Jhoverit don't buy into @ndugger's trolling
you're welcome :)
the WW2 zombie graphics are crazy intense
user1596138
Saying he quit playing CoD at World at War haha
I wish BF1 had zombies
Black Cops was good
it needed a mode that you could sit down and repeat
20:38
It's not trolling; I'm hardly the only person with the opinion that the CoD franchise is a bunch of recycled garbage used to pump out as much capital as possible
But just the first one
That was a huge controversy for a long time
lol blops 3
the plot was "you're in a dream in the future but you're dead and they're dead but not really and then the robots come"
also trees
runescape has a better plot
I mean, that sounds better than the actual game
20:39
> cut trees aquire money
I still think a Call of Duty: Medieval Warfare would be a hit
@SterlingArcher it's called Mount & Blade
I played through blops 3 in coop in like a night
VR motion, 5 kill streak gets you a fucking trebuchet yo
or Chivalry
Paz
Paz
20:39
Hi, Got a small problem involving Canavs. Help?
https://jsfiddle.net/npz66mjw/
Mount & Blade was on sale for the xbone a while back
Paz
Paz
Instead of seeing all of the blocks in gray, i see the first one black
I'm still pumped for M&B2.... can't fucking wait
I'll sink so much time into it
I played neopets for the plot
quit trying to copy my star worthy comment you nerd
u can't be as cool as me
20:40
@Paz you're calling fillRect before fillStyle, so the first one isn't styled, I'm guessing
user1596138
@SterlingArcher Lol Age of Empires as a first person MMOG
@Paz you need to define the fillStyle before you fill the rectangle
that should be obvious
Paz
Paz
oh lol
oops AF
you should cache your call to get the context as well
oops as fuck? excuse me?
20:41
@hilli_micha what do you think the percentage of vists by underages is?
@hilli_micha it was really really oops
Paz
Paz
@hilli_micha pardon me
@towc what % of the population do they make up?
if they published that, it would mean they know, which means they should block
visits*
20:42
and why would they block a 'customer'?
@towc homie think about age distribution
I bet you porn isn't any more prevalent among kids
@Luggage that's the point, they didn't
@SterlingArcher thicc
those dirty ass 45-49 yos
20:42
@towc certainly not 50% if I had to guess, sub-10%
well, maybe 50% is over the top, but still
Sub 10% is probably generous tbh
you don't know how much towc watches
I think he's trying to tell us that he skews the graph
or whatever goes on at his hackerspace
20:43
!!s/h/j/
user1596138
WHat a bizarre topic
@SterlingArcher or wjatever goes on at his hackerspace (source)
does towc watch porn while laying on his pile of boxes in the nerd zoo? Is that reserved for after-hours when everyone else has left?
how do you eat the last of a rock candy when it's on a wooden stick?
20:44
lol, rekt ^
well, I'm pretty sure all of my highschool classmates have gone on pornhub at least once in 2017
in my defense i technically thought of it first so i win
@towc once. in 2017.
@towc I have a hackerspace now. They have it codified that you're not allowed to be a homeless cretin using the space as your humble abode
20:45
those are rookie numbers
user1596138
@towc Once. Pleb
@SterlingArcher Are you kidding me that takes some serious skill and dedication
so does killing myself but you don't see me bragging
user1596138
CHat regulars visit pornhub as many days consecutively as chat
@Jhoverit wrong. I don't visit chat nearly that much
user1596138
20:47
Oh I thought you could see that stat
user1596138
Was going to say rlemon has like 1400 days in a row
@Vap0r well, I'm in management now
@ssube well I haven't tried but I bet you my gold watch I can do it easy
I will take that bet
user1596138
Where is that stat I swear it's on here somewhere
20:47
that seems like a really good bet for me
yah but you lose me
wow, people watch porn from game consoles?
I mean, ofc they do
user1596138
Duh that's why they added Edge to Xbox 360
lol, using your wii for porn
user1596138
And Internet browser to PS3
20:49
@towc Yes, at least one person has watched porn on a Wii
the first thing we did with the xbone was watch porn
Shit I'll admit it
raises hand Yeah, the Wii guy was me
user1596138
3DS lmao
it's just policy/tradition for any new device or screen now
new projector? porn
20:49
@Jhoverit DS LOL
4k tv? porn
I literally paid $20 for the internet game cartridge for my old DS
you have to pay for that kind of quality
@Jhoverit I don't think I need that kind of quality
@SterlingArcher Because you haven't tried it yet
20:50
You guys can't handle fluid motion?
user1596138
@SterlingArcher fidelity
That's worse than the slow-mo fart @rlemon showed me
@hilli_micha that's the best part
it looked like a frying egg
@Jhoverit In porn? lol as if
20:50
you know whats up.
user1596138
@SterlingArcher have you not watched high fps MY LITTLE PONY lol js...
user1596138
Shit is intense. Uncomfortably intense lol
is SD your kink?
:40778786 You know how it works :)
HD just doesn't work
gotta see those pixels
20:51
140p porn is tops.
user1596138
I can't wait to work without my shoes on
user1596138
I keep wanting to kick my boots off at the office lol
just cut off your feet
@hilli_micha top or topless, can't really tell
some guy on jerry springer cut off his own legs and became a crossdresser
20:52
me either, the picture is too blurry.
user1596138
I stole a monitor today from one of the guys we let go before the holidays.
The resolution was 1680X1050
user1596138
Speaking of HD/SD...
@ndugger how on earth are those connected in any way
user1596138
I just returned it..
not the legs
20:52
hah!
@SterlingArcher dude was obviously messed up
those are obviously no longer connected
user1596138
@SterlingArcher I have over ate every day this week.
user1596138
20:53
And worked out 4/5
34 mins ago, by Sterling Archer
They have statistics on porn watched during the eclipse im crying
keep up @towc
user1596138
Imma be a bro
user1596138
Lift weights get dates lul
@SterlingArcher But do they have statistics on porn recorded during the eclipse?
42 mins ago, by hilli_micha
LOL They have stats on traffic changes during the Solar Eclipse, are you kidding me?
20:54
@Jhoverit works for me? lol
@SterlingArcher Keep up.
@SterlingArcher IT'S HARD
@hilli_micha no, you mumarqueet
@towc Because you're watching porn.
user1596138
Well you was always spamming us with your body mods I was just participating :O
20:54
My body mods? xD
well played
please help me my body is changing and my parents never told me why
user1596138
Yea you kept incrementing and decrementing different params
If you mean my aspiring model career then yes
but why male models
@SterlingArcher aren't you a hooker already?
20:55
No dummy
just a whore
You interested in his services or something?
@SterlingArcher You have a model career? Why not get a real career?
ah sorry, didn't mean to offend
a dirty stomp around
Canadian Puns hurt me on the inside.
20:56
@SterlingArcher When they're dead they're just hookers!
What's the history behind using T for generics? Does it stand for "Type"?
@ndugger yeah
user1596138
Not if they're still warm
like I for interface
I use the more recent TWhatever descriptive naming
20:56
143
A: What is the difference between '?', 'E', and 'T' for Java generics?

ratchet freakIt's more convention than anything else. T is meant to be a Type E is meant to be an Element (List<E>: a list of Elements) K is Key (in a Map<K,V>) V is Value (as a return value or mapped value) They are fully interchangeable (conflicts in the same declaration notwithstanding).

Or m_ if you're stupid and declare members that way
@SterlingArcher no u
I don't use variables/types/interfaces in my code. It's way cleaner
What can't you read it says 'T' and 'E'
there's no 'U'
one statement per function, no variables
20:57
no jokes in chat
said the cat in the hat
No jokes? I can't believe that!
what's the cat doing in the hat?
@towc read a fucking book.
feel free to open a github issue if you disagree with no jokes
20:58
cats love sitting in stuff
@hilli_micha any?
yes, any book, it'll show you.
I was trying to read a slovak book earlier today
I regularly trick my gf's cat to get into bags and lift them up around him
cats are lame (sorry @BadgerCat but I prefer dogs)
2
most cats that I've met either hate being touched, or they're just jerks that like to break shit
user1596138
20:59
Does anyone want to make subjective complaints?
@hilli_micha That sounds so much like something Wayne would say
user1596138
Of course you do
user1596138
user1596138
Where did I go 105% wrong
what motherboard?
20:59
@KendallFrey ...is that a LetterKenny reference? I
@Jhoverit your life sucks

« first day (2644 days earlier)      last day (2529 days later) »