Tag Archives: programming

Scratch Exercise

Since I’m teaching “Introduction to programming” ¬†with Scratch, I’m going to make a new page called Lectures, and put the exercise we do in class there. I might upload some algorithm schemes with the exercises if I find the free time.

Tagged , ,

Singleton Pattern


Design patterns are reusable solutions to common software engineering problems. They are best-practice in software design. It is not easy to apply them, and it often happens that pattern misuse may lead to bigger problems, a good design supported by patterns will last and give you less headaches. Examples in PHP and Java are given.

Singleton is a creational pattern (creational patterns deal with object creation mechanisms) which restricts instantiation of a class to one (and only one) object. We’ll discuss it in 3 chapters:

Tagged , , ,