by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    John-Henry Liberty
    @jhliberty
    Todd Pickell
    @tapickell
    Nice
    John-Henry Liberty
    @jhliberty
    not a bad deal for 25 bucks
    Todd Pickell
    @tapickell
    not too shabby at all.
    John-Henry Liberty
    @jhliberty
    Dude - you gotta check out the framework I've been working on soon
    Todd Pickell
    @tapickell
    Tad and I monkey patched the Array class today.
    John-Henry Liberty
    @jhliberty
    oh snap
    Todd Pickell
    @tapickell
    We added a dived method.
    John-Henry Liberty
    @jhliberty
    dived?
    Todd Pickell
    @tapickell
    %s/dived/divide/
    lmao, engrish is hard man.
    It's a method that the Set class has
    It's like doing a select, but instead of one array with what you want you get two arrays, one from the select and one with the rejected values.
    John-Henry Liberty
    @jhliberty
    ah neat
    that's slick - is it in master?
    Todd Pickell
    @tapickell
    not yet.
    Right now it is sitting in the class we deisnged it for but will move it out later into a better place for monkey patches. Then when it is done it will hopefully make it to master without too much fuss.
    If I was better at C I would create a pr for the next Ruby version.
    John-Henry Liberty
    @jhliberty
    cool - def gotta check that ou
    im always up to pair on it =p
    Todd Pickell
    @tapickell
    class Array
      def divide &func
        set = self.to_set
        divided = *set.divide(&func).to_a.map{|e| e.to_a}
        divided
      end
    end
    currently piggy backing off of set's divide method seemed the cleanest way.
    Todd Pickell
    @tapickell
    So what framework are you working on? Is it the one to replace Jira?
    John-Henry Liberty
    @jhliberty
    haha i'll show ya next time we pair
    Todd Pickell
    @tapickell
    Cool.
    Trying to debug Lita right now.
    Want to connect it to flowdock.
    It seems to connect but then something happens and it disconnects :P
    John-Henry Liberty
    @jhliberty
    hah