Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A web application for randomly generating object-oriented class names

branch: master
README.markdown

Web Classnamer

This web application uses the Classnamer RubyGem to generate tongue-in-cheek class names suitable for enterprise-friendly object-oriented programming languages like C++ and Java.

This application runs at http://www.classnamer.com/ .

What it does

Request "/" or "/index.html" and you'll get back a webpage with a class name generated on the fly.

Request "/index.txt" and you'll get back a class name as plain text (encoded with UTF-8), with no boilerplate, ending with a line feed character. This allows users to get class names with Curl and similar programs without having to extract the name from the rest of the HTML. (This feature was requested by Colin Shea.)

How to run the code

To run the application, you must have Ruby installed on your system. I develop and test with version 2.1.0 of Matz's Ruby Interpreter, the reference implementation.

You must also have some version of the Bundler RubyGem installed. You can probably install it by running "gem install bundler" at the command line.

Once you have these things installed, start a shell, go into the directory containing the source code for this application, and run "bundle install" to install the dependencies.

To run the automated test suite, run "bundle exec rake test".

To run the web application on port 4567, run "ruby web_classnamer.rb". Then you can visit http://localhost:4567/ in a web browser and hopefully see the application running.

This application is built on the Sinatra web application framework.

Author

This was written by Aaron Beckerman, who you can email at aaron@aaronbeckerman.com.

Copyright

This code is distributed under the MIT License (also known as the Expat License). See the LICENSE file for details.

Something went wrong with that request. Please try again.