Tag Archives: design-pattern
Understanding MVC
The last few days I’m extensively reading books & web-pages about oop & mvc in PHP,
trying to reach the next level of better programming.
Actually I’ve come over some little problem of understanding mvc:
Where to put a mysql_query?… Continua a leggere
Perché fabbrica insufficiente per l'ordinamento
Strategy is a pattern aimed at allowing you to add new (in your case sort) algorithms to your software without breaking the clients of the algorithms. It’s an investment in design complexity that will pay off if you need to… Continua a leggere
class diagram for accessing & storing logs
I need to log search parameter and then want to access them.
search class : will perform search based on searchParams class (having searched parameters)
searchLogger : perform search logging and one of them will be search performed by user.… Continua a leggere
PHP OOP Design Pattern
I recently read an article on Wikipedia about Design Pattern
So far I’ve done this, but it returns Fatal error: Maximum function nesting level of '100' reached, aborting!…
Logically I know, it will return nesting error, Ma, I don’t understand Continua a leggere
What's the best to way to manage a singleton?
I am messing around with different PHP logging frameworks. I am currently trying PEAR::Entra. I figured that I would use its singleton… function to make sure there was only one instance of the class around.
I have a small daemon-like Continua a leggere
Passando impostazioni di configurazione dell'applicazione agli enti
I have an application that uses Doctrine ORM for entities. I try to push as much business logic into the entities as possible, following OO design. But I have run into a small problem. Some of the business logic requires… Continua a leggere
Matematica complessa che coinvolge i modelli di rilevazione Sine
Hoping to find a math+PHP genius to solve this. One of my clients (a surgeon) wants a web-app tied to his patients’ EEG machines that track heartbeats.
The data is a live feed in table format (already done)…but what I… Continua a leggere
Dependency Injection: pulling required components when they are actually needed
The gist behind DI is to relieve a class from creating and preparing objects it depends on and pushing them in. This sounds very reasonable, but sometimes a class does not need all the objects, that are being pushed into… Continua a leggere
What is a strategy to ensure proper subclasses from a generalized search query?
Here’s a generalized scenario. Ho “Compiti” and I have “Task Events.” I’ve created a database table for each. I’ve also created a model which handles fetching records from the database.
Per “Task Events,” I have a few types: Created,… Continua a leggere
Sbagliato OO architettura, la condivisione degli oggetti e le dipendenze? Forse mi manca un modello di progettazione qui?
OK, i’m creating a small PHP application. The current structure is something like this:
$client = new AppNameClient;
$model = $client->getModel();
$model->getNode();
…
Everything is beautiful here. Client is responsible for connecting and running commands through Socket to a small C Continua a leggere





