Skip to content

codecop/LCD-Numbers-Object-Calisthenics-Kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LCD Numbers Kata Object Calisthenics with Check

Sub folders contain templates for the LCD Numbers Kata in different programming languages.

Requirements (copied from Ruby Quiz)

Write a program that creates an LCD string representation of an integer value using a 4x7 grid of space each, using minus and pipe characters for each digit. Each digit is shown below:

 --      --  --      --  --  --  --  --
|  |   |   |   ||  ||   |      ||  ||  |
|  |   |   |   ||  ||   |      ||  ||  |
         --  --  --  --  --      --  --
|  |   ||      |   |   ||  |   ||  |   |
|  |   ||      |   |   ||  |   ||  |   |
 --      --  --      --  --      --  --

The bar size should be adjustable. The default value is 2 - as shown above. Read more about it at RubyQuiz.

Constraints

Jeff Bay's Object Calisthenics.

  1. Only One Level Of Indentation Per Method.
  2. Don't Use The else Keyword.
  3. Wrap All Primitives And Strings.
  4. One Dot/Arrow (dereference) Per Line.
  5. Don't Abbreviate (long names).
  6. Keep All Entities Small. (50 lines of code per class)
  7. Not More Than Two Instance Variables.
  8. First Class Collections.
  9. No Getters/Setters/Properties.

Checking Code for Compliance

The sub folders contain tools to check your code for compliance with Object Calisthenics. See my blog post about Object Calisthenics and how to enforce it for more details.

License

This work is licensed under a New BSD License, see license.txt in repository.