Questions about problem solving and planning for a solution through software design.
3
votes
4answers
165 views
What can go wrong if Liskov substitution principle is not followed while coding?
I was following this highly voted question on possible violation of Liskov Substitution principle . I know what Liskov Substitution principle is but what is still not clear in my mind is what might ...
5
votes
1answer
107 views
How to verify the Liskov substitution principle in an inheritance hierarchy?
Inspired by this answer:
Liskov Substitution Principle
requires
that
Preconditions cannot be strengthened in a subtype.
Postconditions cannot be weakened in a subtype.
Invariants ...
1
vote
1answer
83 views
Prioritize compiler functionality/tasks, when designing a new language
I've already made a very simple compiler with limited functionality. Now I'm getting more on it to make it more like a real-world compiler. I definitely need to start over because I've much more ...
0
votes
0answers
32 views
Map Library: Client-side or Server-side?
As I have already asked here, I have to implement a Multi-Platform Map application. Now I have Mapstraction as an option which uses Javascript to implement the desired functionality. My question is, ...
34
votes
5answers
1k views
Is this a violation of the Liskov Substitution Principle?
Say we have a list of Task entities, and a ProjectTask sub type. Tasks can be closed at any time, except ProjectTasks which cannot be closed once they have a status of Started. The UI should ensure ...
26
votes
9answers
698 views
My proposed design is usually worse than my colleague's - how do I get better? [closed]
I have been programming for couple of years and am generally good when it comes to fixing problems and creating small-to-medium scripts, however, I'm generally not good at designing large scale ...
-4
votes
0answers
38 views
How to plan a PHP based project with DB involved in the below scenario? [closed]
I'm starting a project on web monitoring where other websites can be monitored.
Recently, I have found codeIgniter, yii, kohana frameworks online, but I'm confused as to whether to choose any of ...
11
votes
2answers
251 views
Looking for some OO design advice
I'm developing an app that will be used to open and close valves in an industrial environment, and was thinking of something simple like this:-
public static void ValveController
{
public static ...
3
votes
5answers
191 views
How to visualize the design of a program in order to communicate it to others
I am (re-)designing some packages for R, and I am currently working out the necessary functions, objects, both internal and for the interface with the user. I have documented the individual functions ...
1
vote
2answers
137 views
Returning a mock object from a mock object
I'm trying to return an object when mocking a parser class. This is the test code using PHPUnit 3.7
//set up the result object that I want to be returned from the call to parse method
...
2
votes
4answers
156 views
Would Using a PHP Framework Be Beneficial in My Context?
I've just started work at a small start-up company who mainly uses PHP to develop their front-end apps. I had no prior PHP experience before joining, and this has led to my apps becoming large pieces ...
3
votes
4answers
100 views
What types of processes have to be reflected in flowchart?
In visual programming, there are many events which support our application tasks. So, along with user defined processes these are also should be in flowchart or not ?
What about the constructors of ...
4
votes
4answers
100 views
How to implement isValid correctly?
I'm trying to provide a mechanism for validating my object like this:
class SomeObject {
private $_inputString;
private $_errors=array();
public function __construct($inputString) {
...
2
votes
1answer
93 views
Recovering an anemic domain model into a multitier architecture
I have spent the past several days learning about domain driven design and attempting to apply it to a current project. I decomposed the problem domain into the canonical logical components: domain, ...
3
votes
3answers
225 views
Where can I hire local programmers with very specific skillsets?
I have been browsing the site and haven't found a exact fit to this question so I'll post it but if its already answered(since I'm sure its a common problem, then let me know).
I have a business and ...