Giter VIP home page Giter VIP logo

juegas_de_palabras's Introduction

Description:
word_games is a rails application that allows a user to enter and solve mad libs. The interface is simple, if crude, and guides the user through both creation and solution actions. In addition there is a reporting section (at /reports) that provides users with summary totals about frequency of parts-of-speech and how often specific words (or phrases) are used as fill-ins in the solutions to mad libs.

Features:
Mad Libs

Issues:
Looks ugly

Planned Improvements:
0) make prettier
1) greater integration of twitter bootstrap into the app's user interface
2) render the report sections as tag clouds (they are so ideally suited to that particular visual metaphor) using jQCloud (jqcloud-rails)
3) assertion tests to accompany any coffeescript functionality

Possible Future Improvements (read: Pipe Dreams)
1) side-by-side as-you-solve rendering of the completed mad lib
2) an optional solution mode (params[:with_google_images] url variable) in which the solver, instead of replacing each placeholder with the user-provided text, replaces it with the first image Google returns in response to the user-provided text
>=3) look at using MongoDB as the data backend (the data model here is inherently hierarchical, so the idea is worth exploring)

Potentially Interesting Design/Architecture Decisions:

MadLibSolutions: Having a separate solution class not only makes serialization of MadLib easier, but makes ActiveRecord handle multiple users (in some hypothetical future release) creating different solutions to the same MadLib instance.

Using Yaml for MadLibSolution.values: Using .to_yaml and YAML::load allowed storage of MadLib.fieldsd and their replacement strings (data that quacks like a Hash, to be (almost) stored as a hash.

Instructions:
1) git clone into fresh directory
2) make a fresh rvm in that directory (Ruby 1.9.2 or higher)
3) bundle install
4) rake db:create:all
5) rake db:migrate

juegas_de_palabras's People

Contributors

jszmajda avatar

Watchers

James Cloos avatar Chris Hoffman avatar  avatar

Forkers

ptnielsen

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.