Are Persistence-Ignorant objects able to implement lazy loading?
Persistence Ignorance is an application of single responsibility principle, which in practice means that Domain Objects (DO) shouldn’t contain code related to persistence, instead they should only contain domain logic.
Design pattern for access to tree-like database in Java?
I’m developing a Roleplaying character viewer/manager programme for a locap LARP system. The Characters have access to skills that are layed out in a tree-like structure. There are a lot of skills, and potentially a lot per character.
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.
What pattern to use for this ‘constructor’? Decorator vs Factory?
I’m developing a program to generate LARP characters in java and I’ve hit a snag.
Is it better to find issues myself or let the computer figure it out?
I’m about to start the process of migrating a program from one component to another. Most of the core functionality will be the same but I’ll need to change database calls, etc. I’m sure there will be a few quirks somewhere.
God Files versus Ravioli Code
Recently I asked a question about whether or not I should refactor my code. the responses I received were most definitely in the camp of going through with the refactoring due to the presence of a God File.
Why aren’t design patterns added to the languages constructs?
Recently I was talking with a colleague who mentioned that his company was working on adding the MVC design pattern as a PHP extension.
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.
How to determine whether Design Pattern is implemented correctly?
I am successfully able to scale all my old applications which were not using documented Design Patterns. Whatever pattern it is I don’t know. To a large extent, I only felt a need to use simple OOP concepts.
Open source software with good code documentation to improve design skill [closed]
Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, […]