Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    NoahNim
    @NoahNim
    but age: 58 won't save as a key pair :(
    Kim Cole
    @kcole009
    Katie Kim
    @kayeon
    @kcole009 :) thanks for sharing
    Ryan Sobol
    @ryansobol
    @/all to do a git pull upstream master to fix the rubocop error on to.roman being too long
    David Hanesana
    @dhanesana
    lol thx i was trying all morning to get it in 10 lines
    Zac Mrowicki
    @zmrow
    haha yeah that would be a tough one. thanks @ryansobol
    Stephanie Beaton
    @StephanieBeaton
    @ryansobol for Class 7 exercises 3, 4, 5 I am getting the same rubocop error message. Are we supposed to fix this? because this is not covered in our textbook. I can fix it because I read about the issue in another book
    David Ker
    @snappy316
    @StephanieBeaton Are you getting the "attr_reader" error too?
    Stephanie Beaton
    @StephanieBeaton

    Offenses:

    lib/class7/exercise5.rb:46:3: C: Use attr_reader to define trivial reader methods.
    def fruit
    ^^^

    David Ker
    @snappy316
    Yep! I'm getting those on exercises 2-5 also! Problem is, when I change it to the attr_reader :fruit way, then rspec fails...
    Stephanie Beaton
    @StephanieBeaton
    I think ryan has to take a look at it.
    David Ker
    @snappy316
    The style guide says to use attr_reader too.
    NoahNim
    @NoahNim
    can anyone tell me why def pick!(amount = 1)
    if amount >= 1
    @fruit -= amount
    elsif @fruit < amount
    @fruit = nil
    end
    end
    is an undefined method?
    when I feel like that defines what pick! does
    NoahNim
    @NoahNim
    nevermind...sigh
    I always over think these. I still need to get it out of my thick skull to use if statements in methods in functions like in javascript
    David Hanesana
    @dhanesana
    Info on attire_reader http://stackoverflow.com/a/5046915
    attr_reader* stupid autocorrect >.<
    If you don’t want to use attr_reader, you can assign the instance variable to a variable that doesn’t share the same name as the method
    Ryan Sobol
    @ryansobol
    @/all the Use attr_reader to define trivial reader methods. style violation has been disabled in the upstream. do a git pull upstream master to pull down the fix
    Zac Mrowicki
    @zmrow
    @ryansobol is it preferable to use attr_reader?
    Ryan Sobol
    @ryansobol
    @zmrow for professional rubyists, yes
    @zmrow i’ll demonstrate in class
    Zac Mrowicki
    @zmrow
    cool! thanks
    David Ker
    @snappy316
    @ryansobol Rubocop is fine, but rspec is the one that's failing...
    @ryansobol
    1) OrangeTree#fruit returns the value of @fruit
    Failure/Error: expect(orange_tree.fruit).to eq(50)
    NoMethodError:
    undefined method `fruit' for #<OrangeTree:0x007fab61ace810 @fruit=50>
     # ./spec/class7/exercise2_spec.rb:14:in `block (3 levels) in <top (required)>'
    Ryan Sobol
    @ryansobol
    @snappy316 that means their’s a bug in your solution.
    David Ker
    @snappy316
    @ryansobol haha - apparently "friut" is not the same as "fruit" - my bad :)
    Ryan Sobol
    @ryansobol
    :P
    Ryan Sobol
    @ryansobol
    the internet in 1969 http://i.imgur.com/Z0TWT7P.jpg
    Stephanie Beaton
    @StephanieBeaton
    If you are ever in Los Angeles, go to UCLA and look at the first computer that ever sent a message over the internet. I think the message was sent to a university in the Bay area, maybe Berkley. And the message was one word.
    Ryan Sobol
    @ryansobol
    was it icanhazcheezburger?
    Zac Mrowicki
    @zmrow
    hahaha
    NoahNim
    @NoahNim
    hey anyone gonna be at codefellows today? I m there right now
    NickManos
    @NickManos
    gabe and I are on the first floor
    Ryan Sobol
    @ryansobol
    Katie Kim
    @kayeon
    oups
    @/all How do people feel about getting together Monday Nov 3rd for a Foundations 2: Ruby Celebratory drink? Any ideas for location? Happy hours suggestions?
    Katie Kim
    @kayeon
    Also, how early can people meetup? @janefung suggested the Cactus. Looks like happy hour runs from 3 - 6pm there Mondays
    NoahNim
    @NoahNim
    I am down
    Zac Mrowicki
    @zmrow
    That sounds fun!
    Zac Mrowicki
    @zmrow
    Found this last night - could be helpful for supplemental learning. It pulls in resources from all over the web to learn Ruby programming and also web dev w/ Ruby on Rails. http://www.theodinproject.com/ruby-programming
    Katie Kim
    @kayeon
    @zmrow there's so much resource... never feels like enough hours in the day... :) thanks!
    Zac Mrowicki
    @zmrow
    @kayeon np. I feel the same way. Information overload. :fire:
    Stephanie Beaton
    @StephanieBeaton
    I am up / down for Foundations 2: Ruby Celebratory drink Monday Nov 3rd!
    NoahNim
    @NoahNim
    @kayeon hey are you gonna be at codefellows today? I am there now
    Katie Kim
    @kayeon
    we're upstairs
    NoahNim
    @NoahNim
    uh
    2nd floor?