« first day (1847 days earlier)      last day (3103 days later) » 

10:01 PM
@bettiolo @brianloveswords @samcrang Turrible, turrible trolls these days :-P.
 
crl
ok so in the real dom, events bubble like crazy (at least on chrome), and in react it's quite cleaner, event.stopPropagation() is actually working
 
!!afk Time to kill the liver...I mean the rest of this illness.
 
user1596138
@crl They do the exact same thing.
 
user1596138
Don;t they?
 
user1596138
I mean, React can't remove the browser funcitonality. So unless there are a bunch of stopPropagations in React's binding..
 
10:03 PM
@rlemon lol
that does suck
 
maybe they use stopImmediatePropagation()?
 
they supposedly bind to real events now by default
> As of v0.14, returning false from an event handler will no longer stop event propagation. Instead, e.stopPropagation() or e.preventDefault() should be triggered manually, as appropriate.
 
crl
ok
 
ooh nm
 
I use stopPropogation in my react stuff too much...
 
10:04 PM
> Your event handlers will be passed instances of SyntheticEvent, a cross-browser wrapper around the browser's native event. It has the same interface as the browser's native event, including stopPropagation() and preventDefault(), except the events work identically across all browsers.
so they do have a wrapper over (stopProp, prevDef) specifically for cross browser compatability
 
crl
also I wish you could access a component's parent..
 
you really don't want to travel up though
however you can call parents events
they just need to be passed down to the child
 
@crl I wished that too, until I learned how to write react properly
 
crl
ok, yes doing something wrong I guess :)
 
<Parent>
    <child onClick={this.handleChildClick()}/>
</Parent>

// in the child
onClick(e){
 this.props.onClick();
}
^ which will call the handleChildClick function in the parent
 
10:07 PM
dat comment is three words that should never be put together like that
 
lol
 
you need to use a lambda in your events if you're using ES6 classes fyi
 
crl
@Loktar good to know, thanks
 
onClick={ e => this.something(e) }
 
I bind them in the constructor @Nick
 
10:08 PM
Meh, I think lambdas are fine enough
 
    this.handleHideNewLeadStatusModal = this.handleHideNewLeadStatusModal.bind(this);
    this.handleAddNewLeadStatus = this.handleAddNewLeadStatus.bind(this);
    this.handleHideFlashAlert = this.handleHideFlashAlert.bind(this);
 
yuck
 
crl
still using the React.createClass for the moment
 
eh it was recommended in a style guide, and I liked it
since I could see all the events prior
 
I don't even have a constructor in my es6 components; no point, really
 
10:09 PM
Where do you set your initial state?
 
class Foo extends Component {
    state = {};
}
es7 class properties
 
ah, I just do it in the constructor
 
class properties cleans it up a bit, imo
 
How does that work with inheritance?
 
export default class SomeComponent extends React.Component {
    static displayName = 'SomeComponent';
    static propTypes = {};
    static defaultProps = {};
    constructor(props) {
        super(props);
        this.state = {
            someStateData : [],
        };

        this.onSomeEvent = this.onSomeEvent.bind(this);
    }
}
 
10:10 PM
(not that I am advocating inheritance, just curious)
 
thats basically how mine look
 
@ivarni the... normal way?
@Loktar there are at least two proposals to simplify that in 7
 
I mostly have stateless components, though, due to the use of props, and using the flux pattern, with stores
 
@ssube So if you re-declare in a child, it gets shadowed?
 
class properties and a binding operator
@ivarni shadowed? it gets replaced
 
10:11 PM
@ssube nice
 
My vocab might be java-influenced, yeah that's what I meant
so prototypical
 
this.onSomeEvent = this.onSomeEvent.bind(this); will either be this.onSomeEvent = this::onSomeEvent or some pre-bound function syntax
 
crl
@Override..
 
shouldComponentUpdate will save your ass
just keep it in mind
 
@Nick most of mine are stateless as well especially common components, however app specific ones, and wrappers have state
 
10:12 PM
@Loktar are you using the flux pattern?
 
yea, modified, using reflux as the implementation currently
 
Ah, I'm using the official flux module
brb gotta pee
 
reflux just cuts out the dispatchers
 
been playing with react-bootstrap. I mostly like it but some things, like tabs, are a bit inflexible.
but, for the most part, they have nice thin wrappers that properly deal with passing props along to children, so it's a good start
 
I haven't spent that much time with react yet, but really liked what I've seen so far from Redux
 
10:15 PM
yeah I want to use redux
current project I'm on had a short timeline and I was used to reflux from a big project I did previously
but I want to spend some time with redux
 
I was in love when I saw the time-travel devtools thing
plus, reading through the docs it seems really simple yet very solid
if you keep all the events in memory you can dump it to server at the first sign of trouble and later replay it all to debug exactly what the user saw, sounds like a big win
 
crl
@Luggage good, will use it soon
 
writing your own components wrapping bootstrap 'elements' is no big deal, too.
 
wrap your wrapper
wrap it twice
wrap it real nice
 
i like to wrap it wrap it
 
10:21 PM
@ssube more chance of tearing
 
@Luggage yeah, that's why I usually don't
 
so I take it react-bootstrap is a bit like angular-bootstrap? basically bootstrap without the jquery?
 
yea
@Luggage yeah only things that were shitty with it were modals
they've since fixed that up
also dropdowns were REALLY flackey
 
i have my own deal with modals anyway
 
Last time I used bootstrap, it was just a css library
 
10:23 PM
lol they used to break the api every release was so annoying
 
crl
you need a lil bit of js for modal and tabs
 
it does all that.
ohh, you're talking about plain BS.
 
crl
yes, not yet dived in react-bs
 
ohh, the dropdowns were one of the first things i was going to use from react-bootstrap..
 
btw @Nick been at conf all day so was bored during pauses and typed up some shit on Norway norway.ivarnilsen.com
 
10:30 PM
whoop whoop
 
Using <table> since I'm an ass
 
Yeah, not interested in going to some city; I wanna explore the nature
 
then north and west is where you want to head most likely
I linked a lot of tours but the general areas they're in are fully explorable alone as well
 
On the off chance that someone is good with furniture, what kind of fastener looks like a screw but the turny bit is on the face of the wood and the fasteny bit is on the side at a right angle, like a doorknob?
 
10:33 PM
sounds like something from IKEA
 
@KendallFrey wat?
illustrate
 
with ascii
 
=====
  ||
->||
  ||
arrow shows the location of the screw head
 
like a set screw?
 
10:37 PM
no, not really
 
like that?
 
I can't figure out how to unfasten it, but it looks like it operates exactly the same as a doorknob
 
have you tried using jquery?
 
yes that
 
10:39 PM
cam lock screw
 
how the heck do they unscrew
 
you've exceeded my expertise
the ones i've used easly detached by turning the cam (the big part)
 
They work by pulling the long bit into the hole, in theory you can unscrew them counter-clockwise untill they won't turn any longer and then gently hammer the shit out of things untill they come loose
preferably with a rubber hammer
 
do you have any mild household explosives?
 
@Luggage only after a big pot of chili
 
10:46 PM
or Indian food
 
crl
curry (powder) :)
 
@ivarni I have no idea what it's talking about
 
How you assemble those, you first screw the long bit into a hole on the side of one board, then use the turny bit to pull it towards the perpendicular board. The turny bit "grabs" the long bit and pulls it in. So to unscrew you have to do the opposite, first screw the turny bit counter clockwish untill it releases the long bit, and then you usually have to firmly (but not too hard) hit the board that the long bit is fastened to to get it loose
and that's probably more confusing
My English really fails me when I have to talk about anything not tech
 
that actually clears it up, I think
 
crl
took me the day to do this in react output.jsbin.com/sejeko (code is ugly), and now have to make some smart sortable by checking the event.clientX/Y and inserting the child at the right position, hardest part probly and not react.. arg still bugs
 
10:51 PM
@KendallFrey I think the catch is that if you screw it too far it might lock again, so if the boards don't come apart with a gentle application of force, try screwing it ever so slight clockwise again
 
ah, shit, well, one of them is stripped and I can't turn it back
 
Once it's freed it should come apart fairly easily unless it's glued
That's a problem then
 
@crl neat
 
crl
yea, but still buggy
 
holy shet it fell apart
 
10:53 PM
@KendallFrey You can try to push your thumb against it and turn it that way but if it's been tightened really hard it wont work
oh never mind
 
so i think there's just one remaining locked one
the stripped one :(
hahaha these things look exactly like K'nex
 
> It's not just you! stackoverflow.com looks down from here.
nothing on twitter yet
 
That explains why the review queue is so slow to load then
took half a minute to show the close reasons
 
yea they ded
 
and now it hangs
 
@AwalGarg @SomeGuy @Abhishrek has a national emergency been declared yet?
 
lol
 
m59
dood. What... if it isn't coming back?
 
> I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror, and were suddenly silenced. I fear something terrible has happened
 
Ho. Lee. Shit. https://t.co/VNXsqJ5JcF
what.. onebox down as well?
laaaaaaaaaame
nvm, f5 fixed that
We are investigating an issue with our Load Balancers
 
m59
11:06 PM
Translation:
 
A 53Tbps Transatlantic cable.
from Imgur
> oh sure cable management is super easy when you only have one cable
then I goto reddit and my amazement is crushed
> This isn't a transatlantic cable. I use to work for the company, JDR Cables, that made this. This is at their Hartlepool factory in the UK and the cable is an interarray cable for a wind farm.
 
STACKOVERFLOW IS DOWN EVERYBODY PANIC
 
user1596138
I love how if you're here after 5pm on Friday everyone is like dude you can go home you know that right? lmao
 
you're still at work?!
 
11:16 PM
Well since SO is down everybody knows you're not actually doing work anyways
if stackoverflow disappeared tomorrow I would have to change careers
 
user1596138
Well yea
 
user1596138
Bruh I haven't been outside of Visual Studio in like an hour other than to change songs
 
user1596138
Working on something that we pass to another domain
 
dude you can go home, you know that right?
 
user1596138
So a total bitch and have to do it in VS
 
11:17 PM
;)
 
user1596138
@rlemon Go home you Canadian twat
 
user1596138
Just waiting on this build tho. I think I finished
 
@Jhawins I am home
reading about how awesome git blame is
 
user1596138
I'm supposed to go to a bonfire after I leave but Idk if I want to
 
user1596138
Probably gonna pig the fuck out at fazolis
 
11:19 PM
my strawberry mead turned out delicious
 
user1596138
 
7 mins ago, by rlemon
user image
 
user1596138
I know
 
50% more terrifying through the glass
 
11:24 PM
We are investigating an issue with our Load Balancers
We're working on mitigating a SYN flood attack, will be back online as soon as possible.
We're running behind @CloudFlare now - let us know where you are if you're not seeing the sites back up!
 
is anyone familiar with es6 syntax here
 
define familiar
 
@SomeKittens Input not matching /$0!'/. Help: User-taught command: w+ 'Hello,
 
(or rather, just ask the question, and if anyone is they'll answer)
 
@ivarni thx for your help, const { todos, actions } = this.props
can you help explain what it's doing here?
 
11:32 PM
destructuring
 
im assuming it's declaring 2 variables todos, actions?
oh
 
ty!
 
Basically yes, it's declaring those two constants and it's getting them from the this.props object
 
this is awesome, thanks for the link
gotcha
thanks so much @ivarni
 
11:36 PM
np :)
In other news, it looks like TPP might be making GPL illegal? keionline.org/node/2363
 
I don't even know where this dirt comes from. Two dead moths were in my racing pedals :/
 
I'm not even sure if they are indian, but I think so
can you translate?
 
!!youtube nofx re-gaining unconsciousness
 
11:54 PM
if (true) {
    console.info("Foo is", typeof foo);
    function foo() {};
    console.info("Foo is", typeof foo);
}
chrome hoists
ff doesn't
 
{} is equivalent to if (true) {} right?
 
Firefox doesn’t hoist function declarations in blocks
I never knew that
 
so, only on global scope?
 
and according to this article, which cites the spec, I have no reason to believe FF is getting it wrong?
 
Hmm.. just last week I declared some functions in a block to get around jshint being a dick. Good thing I declared them before using them I guess
 
11:59 PM
@rlemon Maybe outdated?
 
possibly.
but FF still shows this behaviour
 
Oh, right
 

« first day (1847 days earlier)      last day (3103 days later) »