Skip directly to content

kata

Across the Board Kata

on Thu, 04/07/2011 - 17:41

Across The Board Kata

 

You are given a grid that contains five words. To discover each word, take one square from each column from left to right. Each square is used only once to form a word.

Example:

SAUMER
LUFSEP
SHQISTL
SERBID
MOSOOD

Output: [Seafood, Squid, Lobster, Shrimp, Mussel]

 

Dictionary

Carnegie Mellon has a phoneme dictionary (which may be overkill) http://www.speech.cs.cmu.edu/cgi-bin/cmudict

On a Mac, /usr/share/dict/words

Test cases (Training Set)

Input:

DICTIONARY

Output: Dictionary

Input:

APRON
NAPKIN
KITCHEN
COOKING
BAKING

Output: [Apron,Napkin,Kitchen, Cooking, Baking]

 

 

Tags: 

CSV File manipulation

on Tue, 04/05/2011 - 23:06

 

There are two cvs files (very very large)

Example file1:

honda,10.1,steering wheels,5,30

clorox,14.5,detergent,9,10

......

Example file2:

14,honda,5,30

3,clorox,10,3.1

The requirements (as of now) are:

  1. GUI to open and select the two files (only CSV files allowed, can't be the same file)
  2. GUI to select the identifier columns in both the files (can be as many as the user wants)
  3. GUI to select the quantity columns in the first file (can be as many as they user wants)
  4. GUI to select the conversion factor columns in the second file (should be the same number as the quantity columns)
  5. The

Gilded Rose Kata

on Tue, 03/22/2011 - 17:03

Purpose:

This kata fictionalizes the experience of working with someone else's code. You'll probably groan when you first see the code provided to you. The amount of code isn't overwhelming, its the prefect balance to evoke the feeling, "I can't wait to re-write this cruft." It's suggested that you use Test Driven Development with this kata. Once done, read the **spoiler** section below to see if you had a similar experience or not.

 

Original posting: http://iamnotmyself.com/2011/02/13/refactor-this-the-gilded-rose-kata/  

Tags: