this.foo = null; ? The garbage collector will collect the object it was pointing to if no more references are pointing to it assuming the garbage collector is running, correct?
talk about Trump/Clinton all you want, just not with
@W3Geek it may get collected, yes. Dereferencing is taking that this.foo value, which points to an object but is not the object data, and fetching the object.
I thought there was some special term for var foo = this.foo; I learned in school for it but then forgot about it. Good to know it is just assignment. :)
because of the GC, objects can be scattered anywhere, so references build a loose tree between them and dereferencing walks the tree to find a particular node/branch/leaf
It kind of cuts the line been the instance variable and object reference. I've still got so much to learn. Maybe one day I'll be able to visualize it better.
> (Unrelated: I always thought that in React, props should be called stuffThatShouldStayTheSameIfTheUserRefreshes and state should be called stuffThatShouldBeForgottenIfTheUserRefreshes. The fact that theyโre the same length is just a bonus.)
Question: My webpack bundles multiple chunks, and obviously react is declared as a vendor package. But somehow he bundles react in both the app.bundle.js and the vendor.bundle.js I think this is happening because of an peer-dependency... but i am not sure... anyways. does someone knows a good way how to debug this?
@Luggage the thing is, even with Uglify.js it does not remove the react from the app.bundle, because he does not look into the vendor.bundle file i think :P
A boy and his father get into a car accident. The father immediately dies and the boy is taken to the hospital for surgery. The surgeon gets there and says -- " I cannot do the surgery, this boy is my son" How is that possible?