Archivo de la etiqueta: diseño de los patrones de

Entender 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?… Sigue leyendo

Etiquetado , , , | 1 comentario

Por qué fábrica insuficiente para clasificar

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 toSigue leyendo

Etiquetado , , | Deja un comentario

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.Sigue leyendo

Etiquetado , , , | 1 comentario

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, Pero, I don’t understand Sigue leyendo

Etiquetado , , , , | 1 comentario

What's the best to way to manage a singleton?

I am messing around with different PHP logging frameworks. I am currently trying PEAR::Log. 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 Sigue leyendo

Etiquetado , , | Deja un comentario

Pasar parámetros de la aplicación de configuración para las entidades

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 requiresSigue leyendo

Etiquetado , , , | 1 comentario

Matemática compleja que involucra la detección de patrones de Sine

Hoping to find a math+PHP genius to solve this. One of my clients (a surgeon) wants a web-app tied to his patientsEEG machines that track heartbeats.
The data is a live feed in table format (already done)…but what ISigue leyendo

Etiquetado , , , | Deja un comentario

Inyección de Dependencia: tirando de los componentes requeridos cuando son realmente necesarios

La esencia detrás de DI es para aliviar una clase de la creación y preparación de los objetos depende de ellos y empujando en la. Esto suena muy razonable, pero a veces una clase no tiene por qué todos los objetos, that are being pushed intoSigue leyendo

Etiquetado , , | Deja un comentario

¿Qué es una estrategia para asegurar las subclases apropiadas en una consulta de búsqueda generalizada?

Here’s a generalized scenario. Tengo “Tareas” y no tengo “Task Events.I’ve created a database table for each. I’ve also created a model which handles fetching records from the database.
Para “Task Events,” I have a few types: Created,… Sigue leyendo

Etiquetado , , , | Deja un comentario

Mal arquitectura OO, compartir objetos y dependencias? Tal vez me falta un patrón de diseño aquí?

Aceptar, 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 Sigue leyendo

Etiquetado , , , | 1 comentario
9 páginas