Created by Javi MartÃn and Miguel Olmos
A class should have only a single responsibility
Open for extension, but closed for modification
Objects should be replaced by its subtypes without modifying the behaviour
Many interfaces better than a generic one
Depend on abstractions not concretions
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz?".
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
... etc up to 100
Reverse Polish notation (RPN) is a mathematical notation in which every operator follows all of its operands, in contrast to Polish notation, which puts the operator in the prefix position. It is also known as postfix notation and is parenthesis-free as long as operator arities are fixed.
5 1 2 + 4 * + 3 - = 14
2 5 3 + * = 16
2 1 12 3 / - + = -1