How do inheritance and composition differ?
I’m wondering about the differences between inheritance and composition examined with concrete code relevant arguments.
Interfaces on an abstract class
My coworker and I have different opinions on the relationship between base classes and interfaces. I’m of the belief that a class should not implement an interface unless that class can be used when an implementation of the interface is required. In other words, I like to see code like this:
software architecture (OO design) refresher course [closed]
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, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Relationship between SOA and OOA
Thomas Erl defines SOA as follows in his site:
Should an object know its own ID?
obj.id
seems fairly common and also seems to fall within the range of something an object could know about itself. I find myself asking why should my object know its own id?
What is a good design model for my new class?
I am a beginning programmer who, after trying to manage over 2000 lines of procedural php code, now has discovered the value of OOP. I have read a few books to get me up to speed on the beginning theory, but would like some advice on practical application.
The Meaning of Unified in UML
UML and other related modelling languages are exists in most of the system engineering fields to represent the system, flow, relations in a structured way. UML also is one of the modelling language used in computer science like other industries to represent the systems in obeject oriented way by using different types of diagrams. Does ‘Unified’ UML has a special (or real) meaning here?
Finding the best practice for a game simulating tool
I’m studying Java right now, and I’m thinking of this tool as my practice project.
The game is “League of Legends” in case anyone knows it, I’m not actually simulating the game as in simulating game play, I’m just trying to create a tool that can compare different champions to each other based on their own abilities and items bought inside the game.
How can I design my classes to include calendar events stored in a database?
I’m developing a web calendar in php (using Symfony2) inspired by iCal for a project of mine.
At this moment, I have two classes: a class “Calendar” and a class “CalendarCell”.
How to avoid javascript becoming spaghetti code?
I’ve done quite a lot of javascript over the years and I’m using a more object-oriented approach, specifically with the module pattern. Which kind of approach do you do use to avoid a bigger code-base to becoming spaghetti. Are there any “best approach”?