Multiple Same Object Instantiation
What exactly happens in Java when you instantiate the same object multiple times?
Are factors such as Intellisense support and strong typing enough to justify the use of an ‘Anaemic Domain Model’?
It’s easy to accept that objects should be used in all layers except a layer nominated as a data layer. However, it’s just as easy to end-up with an ‘anaemic domain model’ that is just an object representation of data with no real functionality ( http://martinfowler.com/bliki/AnemicDomainModel.html ).
Extend functionallity of a class: inheritance or java’s dynamic proxy
Currently I have three classes and respective interfaces and respective builders:
How to create a common interface for classes with different subsets of members
Don’t know how to put it, But I’ll try to be as clear as possible
Best way to load application settings
A simple way to keep the settings of a Java application is represented by a text file with “.properties” extension containing the identifier of each setting associated with a specific value (this value may be a number, string, date, etc..). C# uses a similar approach, but the text file must be named “App.config”. In both cases, in source code you must initialize a specific class for reading settings: this class has a method that returns the value (as string) associated with the specified setting identifier.
Object-Oriented Design: What to do when responsibility of the class is big
I applied principles of the GRASP and ended up having a class called Environment.
This class’s responsibilities are to:
Should I build a multi-threaded system that handles events from a game and sorts them, independently, into different threads based on priority?
Can I build a multi-threaded system that handles events from a game and sorts them, independently, into different threads based on priority, and is it a good idea?
Javascript simple code to understand prototype-based OOP basics [closed]
Closed 10 years ago.
How can we protect the namespace of an object in Javascript?
Continuing from my previous question: Javascript simple code to understand prototype-based OOP basics
Let’s say we run into console this two separate objects(even if they are called child and parent there is no inheritance between them):
Abstract DAL – Use Interface with Internal Class?
We have a business logic layer (BLL) that is tightly coupled to our data access layer (DAL). We make calls like this: