« first day (2243 days earlier)      last day (2699 days later) » 

9:00 PM
I don't see how you access the 'rest' in that example.
 
I don't, that's the difference. I never make a ...rest object, only use and read from the original.
 
ah, well, I WANT to grab all the unknown properties.
 
but why do you need to strip out the couple you care about? why not just pass those on as well?
 
I could.. if I change the order of the properties in jsx
 
obviously there could be problems with naming conflicts, but in a simple app where there aren't...
 
9:02 PM
sometimes, at least. react will complain if you pass propties that aren't valid down to html elements
 
hm. I haven't run into that, because I control the props pretty closely, it's more of a ctor pattern for me.
 
render() {
    const { mySpecialProperty } = this.props;
    return <div {...this.props} />; //will complain about the presence of mySpecialProperty
}
passing all props to the children is something I do if I have a component that just represents a UI component, like a panel.
instead of whitelisting all possible props
or even a button..
 
yeah, whitelisting stuff gets old pretty quickly
 
@BadgerCat I GOT YOUR CARD
@BadgerCat THANKS
 
huh, I use that less that I though.. < 10 times.
 
9:07 PM
@Luggage props spread?
 
user1596138
@BadgerCat was that panda sushi
 
specifically ...otherProps for the purposes of just passing to children
the ol' pluck-n-pass
 
for (let child of node.children) {
is node.children cached?
 
@Luggage and how many of those could you refactor out using search and replace?
 
or do I have to store it in a variable first
 
9:09 PM
@Asperger it might be
 
no interest in doing so. I like it.
 
@Luggage I'm not saying you should, I've just been finding that you usually can naively replace object spread.
 
@ssube oh
 
which is why I'm fairly hesitant about using it
 
@Asperger do you alter the length of the children in the block?
 
9:10 PM
it really feels like something that was added just because
 
yea. probably most of them could be changed.
well, I think the destructuring is standard es6 right?
just the let foo = { someProp: 42, ...otherObject }; is object-rest-spread
 
yeah
 
which I use in the jsx: <Foo {...someProps} /> a lot
 
and I use destructuring everywhere, no questions about that one
 
and plan to keep it.
 
9:12 PM
yea spreading properties is nice
 
the ease of refactoring out object-rest-spread makes me think it might be a smell
 
that uses both.
and I plan to keep it.
 
@rlemon oh no, I dont.
 
idk. duplicating a bunch of properties from the object -> React Component seems like a bunch of smell.
 
9:13 PM
all links in my app have a form of: { viewModel: 'somePage', args: {} }, or { report: 'someReport', args: {} }
 
@Asperger then it won't matter
 
(I mis-use the term viewModel because of knockout.js)
 
wait, does the object spread not actually give you an iterable? like you can't do [...{a:1, b:2}]?
i guess it's going in reverse that makes it difficult
 
it gives you an object
it's sugar for clone-and-delete
 
you'd need something wacky like {...[[key:'a', value:1], [key:'b', value:2]]}
 
9:17 PM
function objectRestSpread(t, p) {
  const out = Object.assign({}, t);
  delete out[p];
  return [t[p], out];
}
 
> Also, I searched on github and other hubs (like pornhub) in order to find some existing projects which can help me to achieve my goal, but I didn't succeed.
fucking brilliant
 
vote-to-close: belongs on meta
 
I do like the "and other hubs" bit, that's clever.
 
WHY DOWNVOTES??? — Mirajane Strauss 23 secs ago
MY GOD OP IS SERIOUS!
 
he's not :P
 
9:19 PM
or a committed troll
 
serious troll
 
never underestimate other peoples stupidity
 
either way, B+ for effort, now have one meeeeellion flags
 
nah, that's a very low skill troll response
he's a casual at best
 
lol somebody upvoted it
 
9:20 PM
lol, was gonna say he got rep positive out of that
 
IT WAS ME :D
 
@KevinB almost, it ended up 1 and 7
 
i support his quest to become an anime lesbian
 
become whatever you want, but we don't know how to open interdimensional portals
 
@ssube sure we do. npm install --save-dev babel-preset-stage-4
 
9:22 PM
I prefer the babel-pinhead-* packages when I need to transpile across dimensions.
 
@ssube maybe not, but if the matter stream passes through a solar flare we can time travel
 
stargate!
i think... did it have to be a solar flare or just through the sun?
 
solar flare
 
isn't a solar flare part of the sun?
 
the coronal ejection to be specific
 
9:24 PM
pretty sure the solar system's stargate is in the middle of Jupiter, though
along with some aliens, almost certainly
 
the matter stream, not the gate itself.
 
@rlemon so we have to wait for Jupiter to eclipse the sun...
 
the matter stream, which passes through a 'folded spacetime' (subspace doesn't exist irl) somehow is affected by passing through a ring of coronal ejection and sends the matter stream back in time to (iirc) another point where there is a coronal ejection
 
stuck in jupiter? not a problem, suck the atmosphere out of it.
 
@ssube no, matter streams travel.
and can presumably pass through planets. just get fucked by solar flares
as there are stargates buried which still work
 
9:26 PM
that... doesn't check out
 
like 80% of stargate doesn't checkout 😃
 
it can go through any other kind of explosion, is fine being right next to a black hole, but no sun flares?
 
also, Carter accidentally blew up a star that way.
 
it's a great show tho
 
@Luggage accidentally? I thought they blew one up on purpose
 
9:26 PM
@ssube black holes do fuck with them
 
probably on purpose, too.
 
there are at least 2 or 3 black hole or sun exploding episodes
 
solar flare armor is best armor
 
^ Sam on purpose
Other dude from SGA not on purpose
 
Right.. whenever they want to troll a Go'auld they leave the address to a black hole.
 
9:27 PM
shit.. what's his name.
Rodney
 
that asshole
 
rodney blew up a solar system, sam purposly destroyed a few suns (iirc)
 
the scientist from Atlantis?
annoying nerdy guy who desperately wished he could be Jason Momoa?
 
@ssube yes
 
yea
 
9:28 PM
the one allergic to lemons
he's Canadian in the show
so I'm like half okay with him
 
but he'll never try to eat you
so that's... good?
 
@ssube night's dawn trilogy?
 
no one beats shanks imo.
 
that dude is outstanding
@Luggage nope
 
9:29 PM
it's got a lot of stargate people
rodney, his sister, the scottish docter, teal'c
 
SGU was a disgrace
I want another stargate, but I'm afraid i'll get another universe
 
and the aliean chick... tayla?
 
she's alright.
 
ahh, f-it
 
wasn't my favourite.
 
9:30 PM
@Luggage what the hell
> spoilers
 
I preferred vallah
 
@rlemon Claudia Black?
 
yes
 
because you should always prefer claudia black
always
 
she was a skank on stargate too
....lots of leather
 
9:32 PM
s/skank/bad ass
 
also.. the doctor that was also on Firefly.. forget her name
and the other woman from firefly.. was in the end of SG-1
 
weir and vala* were probably my favourite female characters, Jack and Daniel were my favourite males
@Luggage that's who we're talking about now
Vala
 
No, not her
She's from Farscape
 
she's a cold blooded reptilian!
 
Torri Higginson needed more screen time
 
9:34 PM
who also got a multithreaded update or something? shit it's been years since i watched that
 
she was good
 
@Luggage not Christina Hendricks?
 
Jewel Belair Staite (born June 2, 1982) is a Canadian actress. She is known for her roles as Kaylee Frye in FOX television series Firefly (2002–03) and its spin-off theatrical film Serenity (2005), and as Dr. Jennifer Keller on Sci-Fi Channel's science-fiction television series Stargate Atlantis (2007–09). Staite has also starred in her youth as Catalina in Space Cases (1996) and as "Becca" Fisher in Flash Forward (1996–97), and more recently as Raquel Westbrook in the Canadian drama The L.A. Complex (2012) and Caroline Swift in AMC's crime drama The Killing (2013–14). == Early life == Staite was...
 
ahh, her
 
i also thought General Hammond was a great character, was sad when he left
 
9:35 PM
she was alright in the show. annoyed me with how whiney she was
 
@Luggage Kaylee!
 
heh me and her are the same age
 
@rlemon omg yes
she was the worst female character in Firefly
 
Morena Silva de Vaz Setta Baccarin (Portuguese pronunciation: [moˈɾenɐ ˈbakaɾĩ]; born June 2, 1979) is a Brazilian American actress. She is known for portraying Inara Serra in the series Firefly and the follow-up film Serenity, Adria in the series Stargate SG-1 and the follow-up film Stargate: The Ark of Truth, Anna in the 2009 version of the series V, Vanessa in the superhero comedy film Deadpool, and Jessica Brody in the Showtime series Homeland (for which she received an Emmy nomination for Outstanding Supporting Actress in a Drama Series in 2013). She plays the role of Dr. Leslie Thompkins...
^ season 9 and 10 of SG-1
 
ohh adria.
I suppose there were quite a few strong women roles in stargate.
 
9:38 PM
Vala's daughter
 
yea
 
it was a surprisingly well-balanced cast with well-written characters across the board, especially for the 90s
or the 2000s, but that show was 90s through and through
 
the last season of sg1 was a bit tedious for me. the ori storyline was dragged out a bit too far
once they defeated anubis I think the show should have ended
 
I was with them up until that anniversary episode
 
9:39 PM
IMO that's when they jumped the shark, the Ori stuff was just digging it deeper
 
I like the Ori arc.
 
the beginning of the Ori storyline was okay. neat. gives backing to why the ancients are the way they are
 
the 19 endings they had for it were annoying
 
but they dragged the ori battle on like they did the replicator battle. but the ori are massively OP
 
the universe blew up, then their ship blew up, then time stopped, then this, then that
 
9:41 PM
a lot of plot holes were created when they could have just wrapped it up a season earlier
 
the Ori are OP but the replicators aren't?
the replicators were, after the first few episodes, pretty OP
 
the replicators are OP in a 'okay, yea, I can believe that' kinda way
the Ori having the powers they do and allowing what they allow seems unreasonable
 
plausible OP vs godlike
 
^ yes
 
aright, fair
 
9:41 PM
also, in the end, they got all the technology of the Asgard..
which they had half of anyway.. and kept to themselves.
they teleported a whole building into space one episode.
 
I'm quite upset they never dove into the Furling storyline
 
They did in episode 200 :)
 
like, ohh hey, there is this other race, they were important. but we'll skip that now
@Luggage pft. not really
 
fuck episode 200
 
hehe
 
9:44 PM
@phenomnomnominal yaaay
@Jhawins It was!
 
!!/giphy yas
 
!!afk eh eff kay
 
how do we feel about adding random properties to a promise
I have a function that returns promise that resolves when something has finished that receives an object but I want to also return that object
 
to what end?
 
9:59 PM
@Mosho then just return both objects from the promise, why not
 
the object is available synchronously
 
don't add properties any object you didn't create, because it's generally questionable and could be frozen or do weird stuff with native objects
 

« first day (2243 days earlier)      last day (2699 days later) »