GithubHelp home page GithubHelp logo

debug-me's Introduction

Debug the Company Jukebox

Introduction

You're new on the job and have been given ownership of the company's jukebox application. Unfortunately, before you can even begin adding cool new features to make it much, much more awesome than it is now, you fire it up and it won't even run! Now you have to go through the code and squash all the bugs (there's a bunch!).

Instructions

Given the following spec, dive into the code and fix one problem at a time until the program's output matches the spec and there are no errors!

to run the program, type ruby runner.rb

Remember!

  1. read your error messages carefully, check error messages and line numbers
  2. use pry or irb to check your assumptions!
  3. not all bugs will throw errors, check the output against the spec!
  4. your program is only as good as the data you feed it!

When running for the first time, output should be:

Welcome to Ruby Console Jukebox!  
Enter a command to continue. Type 'help' for a list of commands.

user enters help:

Never worked a jukebox, eh? Pretty standard. Available commands are:  
'help' - shows this menu  
'list' - lists the whole song library  
or you can enter an artist's name to show that artist's songs  
or you can enter a song title to play that song!  
  
Enter a command to continue. Type 'help' for a list of commands.  

user enters list:


The Joshua Tree:
  With or Without You
	Still Haven't Found What I'm Looking For
	Bullet the Blue Sky
Zooropa:
	Numb


Fear of Music:
	Life During Wartime
	Heaven
Speaking in Tongues:
	This Must Be the Place (Naive Melody)
	Burning Down the House


Sports:
	I Want a New Drug
	If This is It
	Heart of Rock and Roll
	
Enter a command to continue. Type 'help' for a list of commands.

user enters U2 OR user enters u2:


The Joshua Tree:
	With or Without You
	Still Haven't Found What I'm Looking For
	Bullet the Blue Sky
Zooropa:
	Numb
Enter a command to continue. Type 'help' for a list of commands.

user enters numb or Numb or NUMB

Now Playing: U2: Zooropa - Numb

Enter a command to continue. Type 'help' for a list of commands.

user enters zzyz:

I did not understand 'zzyz'!

Enter a command to continue. Type 'help' for a list of commands.

Resources

View Debug the Company Jukebox on Learn.co and start learning to code for free.

debug-me's People

Contributors

ahimmelstoss avatar fislabstest avatar fs-lms-test-bot avatar gillianwenhold avatar kthffmn avatar sarogers avatar scottcreynolds 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.