PHP – Internal APIs/Libraries – What makes sense?
I’ve been having a discussion lately with some colleagues about the best way to approach a new project, and thought it’d be interesting to get some external thoughts thrown into the mix.
Composition vs. Inheritance [duplicate]
This question already has answers here: Designing a library that is easy to use: composition or inheritance (2 answers) Closed 11 years ago. Here’s what is given: public interface Request {} // there are 20 subclasses of Request public class CreateUserRequest implements Request { @NotEmpty public String userName; } // request processor is a thing […]
Abstraction Layer over ORM Generated Entities
I am learning LINQ to SQL (and planning to learn Entity Framework). Initially I used a abstraction layer to convert LINQ to SQL entities into a domain objects. Later I discovered the “Inheritance Mapping” option and removed the abstraction layer and started to use ORM entities directly as domain objects.
Use verbs with functions, nouns with classes – what about interfaces? [closed]
Closed 8 years ago.
Designing a library that is easy to use: composition or inheritance
I have designed a small library for work that consists of a few exposed classes. These can basically be thought of as a server
class and client
class. But now that I am writing all the test cases and examples, I am questioning myself on whether the classes should be used in a class or inherited.
Using empty subclasses to add to the semantics of a class hierarchy?
I was wondering whether using (almost) empty derived classes to give additional semantics to a class hierarchy was a good idea (or practice) ?
Are Design Patterns SuperSet of OOP or SubSet?
Initially I started learning OOP and later started grasping concepts of Design Patterns. I wonder whether it is the Design Pattern which is the SuperSet of OOP or it is the OOP itself.
Explanation on how “Tell, Don’t Ask” is considered good OO
This blogpost was posted on Hacker News with several upvotes. Coming from C++, most of these examples seem to go against what I’ve been taught.
I cannot understand the application of oops How can I develop the understanding of application of oops? [closed]
Closed 9 years ago.
How important is it to implement a caching system in an MVC style framework?
I am writing my own PHP framework (…waits for the groans to subside) for the purpose of learning (best practices, design principals etc.) as I’m entirely self-taught and consequently there are gaps in my knowledge.