Tagged Questions
0
votes
2answers
47 views
Extending a simple Python console program with external code. Did I handle this correctly?
I'm a hobbyist Python programmer with not much experience.
I wrote some code for a solution to a Tic Tac Toe AI problem on the internet.
Then yesterday I wrote a simple console Tic Tac Toe game for ...
4
votes
2answers
326 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
146 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
280 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
435 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 ...