software-design Questions

8

Solved

Do you have any good advice on how to avoid circular dependencies of header files, please? Of course, from the beginning, I try to design the project as transparent as possible. However, as ...
Holsinger asked 27/1, 2011 at 13:8

9

Solved

I've recently been more and more frustrated with a problem I see emerging in my projects code-base. I'm working on a large scale java project that has >1M lines of code. The interfaces and class s...
Harville asked 11/4, 2011 at 17:52

12

Can someone please explain me what a software framework is? Why do we need a framework? What does a framework do to make programming easier?
Cimah asked 3/6, 2010 at 7:55

9

Solved

I am very new to test-driven development (TDD), not yet started using it. But I know that we have to write tests first and then the actual code to pass the test and refactor it till the design is g...
Fiorenza asked 24/2, 2010 at 15:27

4

Solved

Why do people use RMI, or when should I use RMI? I read those tutorials about RMI on oracle's website. But it doesn't provide enough practical examples. To my understanding, software should h...
Curvaceous asked 14/1, 2013 at 21:22

6

what are the benefits of using nested class in Java? In many examples it seems to me it only adds complexity to the design. Is there any example that shows the power of using nested class in compar...
Mesentery asked 8/1, 2013 at 16:4

2

Solved

If a function takes as an input the name of a text file, I can refactor it to instead take a file object (I call it "stream"; is there a better word?). The advantages are obvious - a function that ...

2

Solved

My answer to this question would be "no." But my coworkers disagree. We're rebuilding our product and have a lot of critical decisions to make in the near-term. While doing some of my own work I...
Tympanum asked 11/9, 2012 at 15:7

4

Solved

Scenario: foo.h: #include <vector> class foo { public: std::vector<int>* getVector(); /* ... other methods declarations ... */ } foo.cpp: #include "foo.h" #include <vector...
Many asked 24/7, 2012 at 21:46

5

Solved

I have this old batch system. The scheduler stores all computational nodes in one big array. Now that's OK for the most part, because most queries can be solved by filtering for nodes that satisfy ...
Indetermination asked 26/6, 2012 at 12:26

2

How do you deal with analysis and design phases when you plan to develop a system using a functional programming language like Haskell? My background is in imperative/object-oriented program...

2

Solved

I love the sketchy look of Balsamiq and the ability to put designs together quickly. I would love to be able to do the same thing for architecture diagrams but Balsamiq doesn't have any objec...
Bathy asked 10/2, 2012 at 17:26

2

Solved

I seem to run into this situation quite a lot and have yet to find a solution that I find acceptable. Quite often I will have parallel inheritance hierarchies where a method in one hierarchy...
Entourage asked 21/3, 2012 at 14:37

1

Solved

After a lots of read about Repository and Data Mapper I decided to implement those patterns in a test project. Since I'm new to these I'd like to get your views about how did I implement those in a...
Channing asked 12/1, 2012 at 23:55

1

Solved

I'm looking for an efficient approach to extracting a fragment of HTML from a web page and performing some specific operations on that HTML fragment. The operations required are: Remove all tags...
Wiggly asked 2/12, 2011 at 14:30

1

I work with .net WPF. Using this library allow me to completely redesign every control. F.e. - I've button, inside button I can render table (grid) with rows and columns. Then on specific cordinati...
Elate asked 24/11, 2011 at 7:6

3

Solved

I've been reading Design Patterns, by Gamma et al. I have a question concerning the Template Method as compared to Dependency Injection. With Template Method, you "template" classes with policies ...
Bactria asked 15/11, 2011 at 9:56

2

Solved

One of the C++ features that sets it apart from other languages is the ability to allocate complex objects as member variables or local variables instead of always having to allocate them with new....
Baste asked 1/11, 2011 at 21:27

4

Solved

I'm not sure whether I'm violating OOP conepts insanely. Say there is a Carclass which "has" an Engine and a Tank. When the Engine is operating , it will take oil from the Tank (say unit by unit pe...
Docent asked 22/10, 2011 at 16:2

2

Solved

Consider the following control (snipped for brevity): public partial class ConfigurationManagerControl : UserControl { public Func<string, bool> CanEdit { get; set;} public Func<string...
Statius asked 27/9, 2011 at 20:10

1

Solved

I discussed best practices in MVC the other day with a colleague and he asked me how to best separate views. He was maintaining an MVC solution which had a common input form with a controller with ...

5

Solved

Usually I have to insert some data in a DB and it can't be inserted because the table has constraints preventing me from doing that. With the app I'm developing, some business rules (like "there ar...
Quiteris asked 13/9, 2011 at 1:45

2

Solved

I would like to have some suggestions for the following problem: Let's say you want to write adapters for the VCL controls. All Adapters should have the same base class, but differ in wrapping spec...
Scrooge asked 17/6, 2011 at 9:27

3

Can you please suggest some books on Software Architecture, which should talk about how to design software at module level and how those modules will interact. There are numerous books which ...
Neologize asked 10/4, 2011 at 4:12

1

Asked on Programmers: Well designed / high-quality open source software I'm taking a software design class where I should choose an open source software to analyze from the Software Desi...

© 2022 - 2024 — McMap. All rights reserved.