« first day (2287 days earlier)      last day (2667 days later) » 

11:00 PM
but if you do, film it.
 
If I did that I'd probably have to get a high speed camera too
and then smash things
 
> hey sis, hold this
 
> hey sis, hold on
 
Why haven't I seen porn done with high speed camera's yet?
No one steal my idea.
 
oh... >:(
@Luggage I'm gonna guess you haven't searched for it
rule 34 and all
 
11:01 PM
I haven't.
But if it exists, I should have stumbled apon it by now.
 
:35201318 that last sentence though
 
"What did I do last night?"
(removed)
 
alright, I'm done
 
only one?
see a doctor
 
11:04 PM
lol
new record
 
a high or a low?
 
it can be both
do I want to take the weekend and build a jointer?
I can buy one... but I have a planer.. and there are these youtube videos that look promising
 
11:20 PM
@rlemon that is super cool. It's getting weird with everybody making their own computers from the bottom up.
 
s/weird/cool/
 
is there a right way to use the npm version of react in a production environment?
 
@NathanJones no, npm doesn't belong anywhere near production. Everything should be well baked miles before it hits prod.
 
@NathanJones The right way is usually don't.
 
@ssube wait, what? so i can't use npm packages at all in my production builds?
 
11:22 PM
react is something worth getting from CDN for 2 reasons
 
@rlemon I think both. Computers have always been complex and crazy, but folks are throwing together their own, which is equally crazy and awesome.
@NathanJones you can use packages, you just want to vendorize and CDN them.
 
@ssube what does "vendorize" mean in this context
 
1. Cache, visitors are likely to already have a CDN version of react in their cache from previous visits or visits from other sites
2. The CDN version will almost certainly be better minified than what uglifyjs can do on the fly.
 
@ssube it's been like that for a while though the FGPAs just make it easier for people
 
@NathanJones bake all dependencies, especially transitive ones, into a stable (something, single file, whatever).
@Loktar yeah, it's been ramping up for a while, and now you can spend $20 and build your own computer.
which is nuts
 
11:24 PM
@ssube (i think) i'm doing that by making a vendor chunk with CommonsChunkPlugin
 
@NathanJones now combine that with what Madara said
 
Oh I'm talking about from the 80's even
and prior
so many just used the same cpu
like the mos 6510
 
yes tell us a story grandpa
 
now people are doing the same thing
just replicating it with an fgpa
 
oh, I'm just looking at my short lifetime and how computers have already gone from expensive to trivial
 
11:25 PM
or just using off the shelf parts
 
@ssube ok. now what do you mean by "transitive" dependencies? is that what tree-shaking would detect and remove?
 
yeah it is cool for sure
speaking of that I just got 2 more of those $9 computers in the mail :p
 
@NathanJones you depend on A@3.0, A@3.0 depends on B@2.9.1, then you upgrade A to 3.0.1 and suddenly B is 10.14.9012374. B is transitive. Transitive dependencies will screw you over one day.
That's why yarn and npm and gem and go all go to such great lengths to provide a lockfile
 
@ssube one day?
 
every day
 
11:26 PM
Transitive dependencies screw me every day!
Damn npm and its crappy solutions
 
npm is not nice
 
I'm actually using yarn. Should've led with that...
 
doesn't matter in this context
either one can shrinkwrap/lock, which you then webpack into your vendor bundle, your CDN resources, and your app code
you may not even need a vendor bundle if you can use a good CDN
 
so instead of even using a bundle, i could just import all of my deps using <script> tags that point to a good CDN?
 
that only works if your CDN is the very best there ever was (yes, do that)
 
11:30 PM
my cdn can beat the elite four
 
then clearly it is good enough to serve your libraries
 
My CDN uses a botnet to preload my assets on all PCs.
 
do you use a CDN in dev too?
 
that's the eternal question
 
(assuming the CDN has a dev version of react, etc)
 
11:32 PM
@Loktar make a robot that chases your pets
 
ideally the network connection is your loose coupling and you can replace the other end (the CDN server), even just by replacing the hostname
 
@ssube what are your thoughts on using unpkg or cdnjs as my CDN
 
haven't tested them, use whatever CDN has nodes close to your consumers, good routing, and good uptime
check their uptime and ping em from lambda functions in different AZs, if you want
 
google cloud storage, multi_region "storage class"
 
11:41 PM
every major cloud provider offers some CDN, although you won't benefit from shared (cross-site) caching if you're running your own
 
I just assume no one else uses the cross-site CDNs.. I don't know how common it really is.
 
I've used em for a few apps, nothing major, and we had occasional issues with uptime and such.
 
our traffic load is so low that i don't know if the difference matters, in my situation.
 
Google claims everybody uses theirs, but...
@NathanJones it's not about load, it's about load time.
 
If your users are random people, then cross-site might help. If they are all repeat captive users (like for a company internal app) then it's no benefit.
 
11:45 PM
@ssube sorry, don't mean to be contrarian, trying to learn, but doesn't load influence load time?
@Luggage it's the latter case
 
it can.
That's a fair question, but the answer is big.
 
this is a react app that is served in an iframe as a page in a 3rd-party web app
 
My haproxy runs at <2% CPU, regardless of the traffic I push, but load times might still be 300ms because of... connection overhead, bandwidth at the narrowest hop, whatever.
High load will probably cause long load times, but they are different.
For your case, I would use React from a public CDN (if you trust them) or throw it on Cloudfront and call it a day.
 
I skip any CDN and serve all my own content. But I only have ~100 users. Also, all content is pre-gzipped, set to cache for a long time (the filenames change when contents change) and is served by nginx (not node).
so basically no cpu use.
 
11:48 PM
two nginxs in different parts of the world counts as a CDN
 
it might be faster in my case to host the vendor files, app code, assets, etc. on one of our local servers because our network infrastructure has a central router that might route internally before going to the internet
 
not a very robust one, but "CDN" just means having a few servers dedicated to static files and located near your users (with appropriate routing)
@MadaraUchiha had any problems with uptime? I used them ~3 years ago on an admin tool and we had a few hiccups, nothing lasting long enough to repro.
 
@ssube None, as far as I can tell
But I haven't been here for very long
This is a question for Benji
 
@MadaraUchiha do you also include cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js for those places you call render()?
 
@NathanJones Yes
 
11:53 PM
if you configure it very well, webpack can do most of that for you
and with React involved, you can potentially get it to the point where webpack generates your index.html complete with links
 
You don't have to configure it very well
Just define externals :D
 
since I still want warning messages in dev, what if i have webpack include react and react-dom in my dev vendor bundle, then leave it out for prod builds
 
@NathanJones You have two different webpack configs
And run one in dev and one in prod
That's why webpack has a --config flag
 
@MadaraUchiha I'm doing something akin to that by using webpack-merge
 
make dev and make prod
 
11:55 PM
@ssube I need to learn make
 
I was spending too much time fighting gulp and switched over
haven't learned much, just enough to get my build going again in half the code
 
@ssube i tried html-webpack-plugin, but I have a need to configure github.com/davidjbradshaw/iframe-resizer in my index.html
not sure how that could work in my situation
 
"configure" how?
 
<script>
  window.iFrameResizer = {
  targetOrigin: '<!-- @echo PS_URL -->'
};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.5/iframeResizer.contentWindow.js"></script>
if there's a better way to keep an iframe correctly sized based on the size of the content, i'm all ears
 
you can throw that in your custom header or footer to the html plugin
 
11:57 PM
iframes suck.
 
@ssube i'll try that. i thought you had to provide a full template, not partial header/footer
 
you're always providing partials, since it will add a bunch of links anyway
or if that lib takes a full template, you'll mark where you want it to insert things
 
@MadaraUchiha is there a better way to "isolate" your css without writing your own reset.css?
 

« first day (2287 days earlier)      last day (2667 days later) »