Blocks
Based on the approach I described in "From Design to Prototype", the components I came up with and their bottom-up ordering are as follows:
- Key -
AC,=,.,+,-,×,÷, and the digits0to9. - Pad - The keypad that houses the keys.
- Display - A two line display. One line to show the user's input and another line to show the result of evaluating that input.
- Calculator - Holds the display and pad.
- Attribution - A note about the developer of the application.
- Page - A container to layout the calculator and attribution.
These components became the blocks of my UI, in accordance with BEM. I worked on each block, one at a time, in bottom-up order until all the blocks were implemented.