Giter Club home page Giter Club logo

deaf-grandma's Introduction

Deaf Grandma + Sinatra Code Study

Introduction

For homework tonight we are going to make a simple command line based program in ruby, your first ruby application! You also are going to take some time to review a Sinatra Application's Source Code! More on that on the bottom.

Exercise

Requirements

  • Create a ruby application that runs from a single ruby file deaf_grandma.rb
  • When you run ruby deaf_grandma.rb in the terminal you should be greeted by grandma, and promted for some input.
  • If your input is not in all caps, grandma should respond with "WHAT'S THAT SONNY?" and promt the user again.
  • If your input IS in all caps, grandma should respond with "NO DEAR, NOT SINCE 1928!"

Bonus:

  • Keep this loop going until the user inputs "GOODBYE GRANDMA"
  • Every 5 questions Grandma get's asked she says "It's getting late, dear."
  • After 20 questions Grandma only responds with "ZZZZZZ" (unless we say GOODBYE GRANDMA)
  • Add some features of your own! Be creative!

Deliverable

Here's a screenshot of what we expect this to look like:

Example Image

Additional Resources

Sinatra App Source Code Review

Check out this nifty little web app that gives github repo's a score in a old-school gaming fashion! Its not the most useful app ever, but it is simple. It does one thing and does it well.

Once you have played with the app a little bit, check out the source code. Start with the app.rb Think about the following questions:

  • What's familiar?
  • What isn't?
  • What looks like good code?
  • What doesn't?
  • Is this MVC?

Self Evaluation

During the previous exercise, rate your progress on a scale of 1-5 (5 being the highest) for the following criteria:

  • Persistence: Do you handle frustration well? Do you independently pursue understanding?
  • Organization: Do you thoughtfully implement best coding patterns and practices?
  • Collaboration: Do you make an effort solve problems and share your ideas with others?
  • Communication: Do you clearly convey your thoughts to others in illustrative and clear ways?
  • Self-compassion: Do you make productive use of turning failures into learning opportunities?
  • Resourcefulness: Do make an effort to compare and contrast new ideas with ones you already know?

deaf-grandma's People

Contributors

jenmcphail avatar awhit012 avatar

Watchers

 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.