Git Product home page Git Product logo

hs-intro-ruby-code-challenge-5's Introduction

##Today's Code Challenge!!

You’ve been hired by Facebook to rebuild their User class, congrats! Create a file named user.rb and build out the User class. Think about the attributes and actions that an instance of the User class will need (age, name, birthday) and actions they should be able to take (ability to post on a wall, poke, etc).

Hints:

  • Attribute accessors are your friends - you can use them in place of reader and writer methods (like name and name=).
  • Think about how Facebook users interact and the type of attributes and actions you will need. For instance the user might have a number of pokes that increases after they are poked by another user.
  • Don’t forget about instance variables!
  • Here's the completed gnome lab we did on Sunday without attribute accessors and [with attribute accessors for reference](https://github.com/dfenjves/gnomecode/blob/master/gnome.rb.

View Today's Code Challenge!! on Learn.co and start learning to code for free.

hs-intro-ruby-code-challenge-5's People

Contributors

victhevenot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.