software-design Questions

6

Solved

I have two immutable classes: User and Department, they are connected using a bidirectional association - User has a reference to Department and Department has a list of Users. How to create a new ...
Graph asked 8/4, 2015 at 11:7

2

Solved

So, i decided to learn DDD as it seems to solve some architectural problems i have been facing. While there are lots of videos and sample blogs, i have not encountered one that guides me to solve t...
Purism asked 13/11, 2015 at 17:11

2

Solved

If I have a Viewmodel designed to serve a purpose for a view - Is it a good practice to add bunch of static methods to the viewmodel like - getting a list of items(viewmodel object) by consuming ...

1

In the VIPER design pattern, should the Interactor return all the information that might be used by multiple presenter actions or should I have a separate struct for each one? In my case, I have a...
Manor asked 14/3, 2015 at 21:41

6

Solved

When developing for Android, you can set your target (or minimum) sdk to 4 (API 1.6) and add the android compatibility package (v4) to add support for Fragments. Yesterday I did this and successful...

7

When developing software for public use, it is important to ensure that it is designed with consideration for a variety of setups. How much does the keyboard vary across different layouts? C...
Sabbatical asked 29/6, 2015 at 2:23

1

Solved

import java.io.*; class Myclass { //Some programming code that does not call any java io package methods or variables } Is that program takes more memory or even worse affect performance o...
Anemometry asked 15/6, 2015 at 13:44

3

I have been using Django for many years (since Django 1.2). and in the past, I used different type of web frameworks (such as CakePHP, Rails, ASP.NET MVC, and some other full-stack framework). Djan...

3

I am trying to create a subscription based licensing system, where if you buy a software for 1 year 1 user, you can use it only for a year in the machine you used to activate the software, after wh...
Swipple asked 22/7, 2014 at 18:59

0

In the Clean Architecture by Robert Martin, let's say I have this simplified version (not showing other stuff like Model, Gateway, Boundaries): Now let's say I have a View with 2 buttons, Dark a...
Flagitious asked 6/4, 2015 at 6:16

3

I am going to write a simple credit system that user can "add", "deduct" credits in the system. Currently I am thinking of two approaches. Simple one: Store the user' credit as balance field in t...

2

Solved

Sometimes I see developers using libraries like Guava’s Preconditions to validate the parameters for nulls in the beginning of a method. How is that different than getting NPE during runtime ...
Gargantua asked 22/1, 2015 at 19:5

5

Solved

Here I came across this phrase: Implementing a private interface is a way to force the definition of the methods in that interface without adding any type information (that is, without allowing...
Acaroid asked 20/12, 2014 at 11:40

10

Solved

I am working on coding a Tetris clone in XNA C# and am unsure of the best way to approach the data structure side of the game on a high level. I am totally fine with the collision detection, rotat...
Koh asked 19/2, 2009 at 16:43

7

I have an abstract class: public abstract class AbstractCommand { private static State state; } Intention An object of class State is provided by some "controlling classes", providing data t...
Erupt asked 17/1, 2013 at 16:10

2

I understand that a confirmation message on a UI is counted as a Data Element Type (DET). What if my confirmation message is an alert box on a UI plus an email confirmation. Should i count i...
Carnahan asked 29/4, 2014 at 10:22

2

I have a project where I should develop a mobile application(android) and a website. As both of them have the same database/content and functionality I want to write common sever side for mobile an...

3

Solved

I am familiar with the long standing love-hate relationship between Ruby on Rails, DB(MS)-drivers and Stored Procedures and I have been developing Rails applications since version 2.3.2. However, ...

3

Solved

I have an aggregate root Products which contains a list of entities Selection, which in turn contains a list of entities called Features. The aggregate root Product has an identity of just name T...

1

I've read the Fowler's article about "Anemic Domain Model" (link: http://www.martinfowler.com/bliki/AnemicDomainModel.html), and I agree with his point of view. I've tried to create an application...

2

Solved

Why do std::string::data and std::string::c_str() return pointers to const chars, while std::string::operator[] returns references to mutable chars? std::string string("eightfold is the greatest")...
Clausius asked 3/11, 2013 at 19:42

1

Solved

I searched around a bit and just found this as a possible duplicate question: Multiple CBPeripheral's for same device My problem is: I have multiple services which all together have about 30...

5

Solved

I came across different interview where question was asked to me why encapsulation is used? Whose requirement actually is encapsulation? Is it for users of program? Or is it for co-workers? O...
Gandhiism asked 18/8, 2013 at 15:54

5

Solved

This is a problem we encounter often. There must be some best practices to address this... Simplified Question Where's the best place to put common code that manipulates POJOs? such that:...
Analog asked 23/1, 2012 at 15:59

2

Solved

What is an utility tree and what is it's purpose in case of Architecture tradeoff analysis method(ATAM)? Thanks
Whitehall asked 14/4, 2012 at 7:57

© 2022 - 2024 — McMap. All rights reserved.