Sub folders contain templates for the LCD Numbers Kata in different programming languages.
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.
Jeff Bay's Object Calisthenics.
- Only One Level Of Indentation Per Method.
- Don't Use The
else
Keyword. - Wrap All Primitives And Strings.
- One Dot/Arrow (dereference) Per Line.
- Don't Abbreviate (long names).
- Keep All Entities Small. (50 lines of code per class)
- Not More Than Two Instance Variables.
- First Class Collections.
- No Getters/Setters/Properties.
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.
This work is licensed under a New BSD License, see license.txt
in repository.