Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Anthony Short
    @anthonyshort
    So we’re actively developing it and relying on it now :)
    bruce
    @sqram
    hah. no better way to keep a project alive than to use it in production
    bruce
    @sqram

    I have more of a organization question when using routes. Currently i have a main.js file. I also have a modules folder, and a components folder
    I organize it in this fashion: in main.js i import modules, which in turn import components. The route defines which module to load. Minimal exmaple here: http://tabbit.org/MKPhrs

    just wondering if this is awful or acceptable. I didn't see a community example with routes, so i gotta ask.

    Anthony Short
    @anthonyshort
    Nope that’s a perfectly fine way to do it. We do something similar, but we also load data on the routes too
    bruce
    @sqram
    @anthonyshort ah thanks. i try to keep the routes minimal (coming from mithril, btw)
    Anthony Short
    @anthonyshort
    Ah cool.
    Curious to see what you end up with too
    bruce
    @sqram
    follow up question - how would you use/pass the app variable so it can be used inside a module? (ie, if i need to .set() on it) . I suppose I could use window.app but don't think that's the best way
    Anthony Short
    @anthonyshort
    We use app.use(fn)
    so the module is just a function that accepts the app
    so like...
    app.use(projectsAPI)
    function projectsAPI(app) { … }
    Then we can share that around like a plugin
    bruce
    @sqram
    great. thanks!
    bruce
    @sqram
    This message was deleted
    Daniel Sont
    @ds0nt
    hey all

    @anthonyshort share around projectsAPI as a plugin?
    as in export function projectsAPI(app) { }

    import projectsAPI from '../plugins/projects'

    @anthonyshort share around projectsAPI as a plugin?
    as in
    export function projectsAPI(app) { }
    import projectsAPI from '../plugins/projects-api'
    ?
    Daniel Sont
    @ds0nt
    would you suggest initializing the plugins when bootstrapping everything?
    javascript app.use(a); app.use(b); app.use(c);
    would you suggest initializing the plugins when bootstrapping everything?
    app.use(a);
    app.use(b);
    app.use(c);
    There's not much documentation on it [propTypes] because it was something we were trying out. It's going to get pulled out in the next version so it's not in core. Any validation library can do the same thing but better.
    +1
    @anthonyshort I detest slack channels. The gitter is good. Slack I find to be too casual and time-wasting
    Daniel Sont
    @ds0nt
    @6D65 Browserify.
    Duojs is hard to configure, and doesn't manage things well, chokes on github downloads. It's a timesink. Duojs does more harm than good. IMO
    I moved to browserify, from duojs, while working on deku. for context.
    with deku*
    bruce
    @sqram
    what is a slack channel?
    bruce
    @sqram
    i automatically think slackware on irc
    Daniel Sont
    @ds0nt
    @sqram it's the same as gitter, but instead of github login, they have a repeated signup process, and cost money, and sucks.
    cost money > 5 integrations
    Now it's turning into a marketting fad
    IMO
    Hall, LetsChat and Gitter are all basically the same
    bruce
    @sqram
    oh i see
    Daniel Sont
    @ds0nt
    I need some help with debugging my front-end app
    I end up going on hunts for what turn out to be like 10 errors
    I could do unit tests, I suppose, or perhaps seperately bundle each element separately, but I had the error of doom...
    Any ideas? maybe if I can like inline evaluation while I'm writing the code
    Daniel Sont
    @ds0nt
    but I have too many damn buildamajigs...
    bruce
    @sqram
    i must say. there are times when i want to go back to mithril because of confort...but this app.set() feature is too good
    builtin pubsub basically
    Daniel Sont
    @ds0nt
    really? I am avoiding app.set haha. Not sure why
    why not just do this?
    Daniel Sont
    @ds0nt
    import { http } from '../../api'
    
    function onFoo() {
      http.fax('I am oldschool').emit('pidgeonOrGTFO', 'make haste! Give my request unto the http warlock of camelot!')
    }
    
    /// deku element ...
    Yo guys: https://github.com/stevenmiller888/awesome-deku
    Why isnt this awesome-deku getting awesomer?
    and followup Q: Contributing guidelines? :)
    I shall pull request it like a nonconformant badass
    Daniel Sont
    @ds0nt
    @anthonyshort What is the current plan for building laying down a foundation for the dekujs commmunity?