These are chat archives for SmartFocus/reactjs

16th
Feb 2015
Itay Grudev
@itay-grudev
Feb 16 2015 12:47
This is not a really good idea. Such interface would require a lot of execive computation => bigger power requirements. This is why we have HTML with very efficient engines written in C++ and Assembly to back it up. In this case you would like to use Javascript, compiled at runtime to render an entire UI. It would work cool, but at what cost?
Matt Bilbow
@mattbilbow
Feb 16 2015 12:51
@itay-grudev , @geochatzsf - I only use my phone when it’s plugged in :P
Itay Grudev
@itay-grudev
Feb 16 2015 12:53
That would be quite weird.. A message on top of your website: "Do NOT use unless plugged in"
Matt Bilbow
@mattbilbow
Feb 16 2015 12:54
:P - hey, thats how softweare updates work ;) - UX is all about as many obstacles as possible ;D
Firtina Ozbalikci
@toxicFork
Feb 16 2015 13:11
meh, just wait until we get batteries that won't die in a day
Juho Vepsäläinen
@bebraw
Feb 16 2015 17:06
have you checked out http://christianalfoni.github.io/react-webpack-cookbook/ ? would you be willing to pay for content like this?
Firtina Ozbalikci
@toxicFork
Feb 16 2015 17:35
depends, is it offering advice or expertise beyond what's out there as tutorials?
Juho Vepsäläinen
@bebraw
Feb 16 2015 17:46
there is tons of material about react/webpack. we're condensing that info here so you don't have to dig through it all
i could expand on the react bit for instance and show how to build something on top of flux + maybe discuss backend stuff a little (express, swagger, rest)
of course one of the basic problems with a book like this is that the content gets obsolete quite fast
Matt Bilbow
@mattbilbow
Feb 16 2015 17:52
I like it, it’s useful. To become a sellable product i’d maybe expect source code for an example project in which you reference with examples throughout the book, then it becomes a bit more like “hmmm this is a really cool way to start my project with these new fancy technologies AND i get it explained to me"
James Cleveland
@radiosilence
Feb 16 2015 17:52
Yeah a book type thing? Webpack's docs sure were lacking last time I tried to use them.
does webpack + 6to5 work?
Matt Bilbow
@mattbilbow
Feb 16 2015 17:53
example project could be like a simple shopping cart
James Cleveland
@radiosilence
Feb 16 2015 17:53
because f me browserify gets slow
how fast is webpack compared to browserify?
even with watchify
Christian Alfoni
@christianalfoni
Feb 16 2015 19:17
@radiosilence Yep, 6to5-loader or the new babel-loader. Though webpack supports ES6 out of the box, imports, though not sure about all the rest. I think babel-loader will be the most useful one
@radiosilence With webpack you get everything "out of the box". You have to code a lot of gulp/grunt to get the features of webpack. Regarding speed you might want to do some optimizations while developing, depending on the libraries used. There are examples of that in the mentioned cookbook :)
@radiosilence But it has all the caching etc. included
Christian Alfoni
@christianalfoni
Feb 16 2015 19:28
@radiosilence You have to make optimizations to Browserify too, wrote a couple of articles on it. The second one brings up bundling optimizations: http://christianalfoni.github.io/javascript/2014/10/30/react-js-workflow-part2.html. Though I recommend webpack. The amount of code you see in the example there is reduced to like 10 lines or something :-)