4
votes
2answers
263 views

Validation Class - Feedback Welcome!

I have written a Validation and Form class in PHP. Validation class allow you to define the rules of each field and a error message. Form class allow you to get a error message and also allow you ...
2
votes
1answer
144 views

Set of classes for generating social plugins, is my design correct?

I've created a set of classes thatwork together to create the html needed to display social plugins like Facebook like, google plus and twitter. At firsti defined an abstract class ...
3
votes
1answer
276 views

How to convert my classes to Dependency injection?

I am still learning to develop my skills in OOP. It uses a combination of the factory and its real singletons? As I did more research, I have realized this design pattern is bad because of global ...
0
votes
3answers
421 views

C++ Alternative to Template Class

I have a class Matrix to handle Matrix Vector Multiplication. Class Matrix has many sub-classes, each of them has different data structure and performs multiplication differently so I write: class ...