#pyramid

/

      • blaflamme
        at least redux provide sit through reselect
      • jpenny
        You know, I haven't seen a new JS framework announced for several weeks. Must be the holidays.
      • blaflamme
        hehe
      • raydeo
        blaflamme: you know a lot of that stuff is done by martin faassen right?
      • x58
        reselect is faassen
      • gustavofonseca joined the channel
      • blaflamme
        right I saw that
      • raydeo
        I just found it entertaining how we're all drawn to the same stuff
      • x58
        I haven't needed reselect yet, but I have a feeling that it will come in very handy shortly =)
      • raydeo
        yeah I haven't used it yet either
      • to me it seems like a perf optimization I haven't needed
      • blaflamme
        in nuclearjs it's the way to access your store stuff
      • the store is not passed down, so you observe through getters
      • x58
        You shouldn't pass the store down to your component in Redux...
      • Only your top-level should be redux aware, and that gets passed down the store, it selects entities out of it (immutable) using functions or anything you want really, and then those are passed as props to your main component.
      • blaflamme
        you store is built from your reducers and the store is pass from <Provider store={store}>
      • x58
        That's just a wrapper.
      • <Provider store={store}><RootComponent /></Provider>
      • then you use connect() on your RootComponent
      • which selects what state it requires out of the current state from the store.
      • Your root component at that point has this.props.
      • Lcaracol has quit
      • http://rackt.org/redux/docs/basics/UsageWithRea... scroll down to Connecting to Redux
      • it explains what is going on.
      • raydeo
        finally react 0.14 fixed stupid HOC ownership issues
      • what a pita
      • x58
        ?
      • raydeo
        don't worry about it ;-)
      • x58
        You know that sentence you just posted is not very google-able either...
      • blaflamme
        sorry got a phone
      • yeah right, I know
      • but the wrapper passes the store to make your selector works when you connect them
      • raydeo
        basically in react < 0.14 the context was very screwy so your code example you just pasted wasn't so pretty
      • context is still undocumented amusingly
      • blaflamme
        context is still not recommended, api could change
      • raydeo
        despite router/redux/etc being heavily dependent on it
      • blaflamme
        yeah but router advoate to still use mixins
      • funny
      • x58
        ES6 based classes don't allow for mixins.
      • So they are mostly going away.
      • NuclearJS in it's documentation still uses React.CreateClass
      • marplatense has quit
      • with a mixin.
      • blaflamme
        yeah, like react-router
      • mage_
        any idea why with python setup.py develop I have something like -e git+git@xxxx:<git username>/xxxxx.git when I pip freeze -l ?
      • x58
        I haven't used any mixins in my use of react-router.
      • blaflamme
        probably till context is the thing
      • mejymejy joined the channel
      • can do the same with nuclearjs, usng a tiny wrapper
      • raydeo
        mage_: pip freeze looks in the linked folder and finds a git repo there
      • mage_
        I'm deploying in production with salt and one of the step I do is python setup.py develop, but then the (private) repository (with login, password ...) is visible when I pip freeze -l
      • blaflamme
      • x58 uses createClass
      • aclark joined the channel
      • mage_
        any idea how could I avoid that ?
      • x58
        blaflamme: Ah, yes, but those can easily be replaced with ES6 classes,there are no mixins.
      • raydeo
        mage_: I think you just have to grep it out or not use setup.py develop
      • x58
        mixins are no longer supported.
      • mage_
        do you put the .egg-info in the git repository .. ?
      • blaflamme
        in reactrouter? yes they are
      • x58
        blaflamme: I am talking about React using ES6 classes does not support mixins.
      • raydeo
        mage_: no
      • blaflamme
        oh... of course, ES6 classes don't support them
      • but react still support createClass, no deprecation warning still
      • mage_
        raydeo: so when you deploy in production you do a setup.py develop/install every time you redeploy the webapp ?
      • raydeo
        a develop, yes
      • x58
        React-router does not require the use of mixins. NuclearJS it looks like the only way to get access to the store through it's getters is to use a mixin... or write a custom wrapper.
      • mage_
        ok :) thanks
      • blaflamme
        x58 a wrapper from the same team is available
      • x58
        mage_: I do python setup.py bdist_wheel and copy the wheel to prod, and pip install the wheel.
      • Ah, okay.
      • mejymejy has quit
      • blaflamme
        so you end up with something similar to redux for the initial setup
      • NotreDev has quit
      • mage_
        x58: maybe it's better than doying setup.py develop
      • x58
        That's up to you :-) I do it that way because I think it's simpler, and I keep the files around for archival purposes.
      • mage_
        I'm busy to automate everything with salt (and I'm not a packaging expert ..)
      • x58
        I use SaltStack for deploys.
      • mage_
        same here
      • aclark has quit
      • aclark joined the channel
      • mejymejy joined the channel
      • NotreDev joined the channel
      • mejymejy has quit
      • kamalgill joined the channel
      • Loetkolben has quit
      • NotreDev has quit
      • bochecha has quit
      • hvelarde has quit
      • rodfersou|afk has quit
      • NotreDev joined the channel
      • plamut__ has quit
      • cewing joined the channel
      • mejymejy joined the channel
      • pluszowy has quit
      • stupid question, is it really necessary to have .pyc files for a pyramid webapp ?
      • raydeo
        as necessary as in any other scenario I guess
      • otter768 joined the channel
      • mage_
        the only advantage I see is when the webapp is started the first time
      • tomas has quit
      • tomas joined the channel
      • tomas has quit
      • tomas joined the channel
      • NotreDev has quit
      • otter768 has quit
      • ppaez has left the channel
      • tamarin has quit
      • joules joined the channel
      • d42 joined the channel
      • NotreDev joined the channel
      • x58
        mage_: .pyc's are just compiled .py's
      • mejymejy_ joined the channel
      • kilodalton joined the channel
      • mejymejy has quit
      • zepolen has quit
      • zepolen joined the channel
      • Lcaracol joined the channel
      • kilodalton has quit
      • jgelens has quit
      • jgelens joined the channel
      • mejymejy_ has quit
      • mejymejy joined the channel
      • sendq has quit
      • sendq joined the channel
      • tomeff has quit