Giter Site home page Giter Site logo

birthdays's Introduction

Birthdays 🥳

A Ruby command line application that can

  • Store friends’ birthdays and keep track of them.
  • See them all at once with their names and birthdays each on a line in a tidy format
  • Check whose birthday it is today.

Quick start

> git clone https://github.com/ehwus/birthdays.git
> cd birthdays
> bundle install
> ruby ./lib/main.rb

Instructions

  • Follow the prompts to add people to your database or to print the required information out..

Techniques Used

This was mainly an exercise in Test Driven Development, so I've ensured that all main methods and classes are fully tested in the specifications in ./spec. Use the 'rspec' command to run these yourself.

I have also been learning encapsulation, so I've divided the app into a series of classes:

  • Person - the basic object for the exercise, containing variables for both name and date of birth.
  • Directory - a class to store Persons, with some higher level methods like #todays_birthdays to perform operations on the stored Persons.
  • Birthday - the main class for the end user, provides a way for the other classes to be interacted with through stdin/stdout.

birthdays's People

Contributors

ehwus avatar dearshrewdwit 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.