Questions tagged [responsibility]
37 questions
0
votes
1 answer
How to make layout for Android app intended for wearables with api under 20
I bought cheap Chinese Android watch with Android 4.4.2, API 19. I would like to create an app which would work on the watch as well as android phones. The problem is that if I put some special layout into layout-watch folder, this qualifier does…

1daemon1
- 1,001
- 3
- 11
- 29
0
votes
0 answers
Which class is responsible for getting data from a database
I've got a database class which inherits from an interface (IDataSource) and a class which represents an user.
What really grinds my gears is, which class is responsible for getting user-data from the database - should the user class define a…

Th1sD0t
- 1,089
- 3
- 11
- 37
0
votes
1 answer
Multipart application responsibility for database
I have a project consisting of a webapplication, a database and a program running in the background which processes rows created by the webapp. Both the programs work with the database and store their needed info (with tables both applications…

mgttlinger
- 1,435
- 2
- 21
- 35
0
votes
1 answer
Where to run parameter validation
Lets say we have a function, and a caller to that function
function baz(){
myVar = null;
foo(myVar);
}
function foo(bar){
//do stuff
}
where should validation on the parameters happen?
It could be
function baz(){
myVar = null;
…

JBarber
- 212
- 1
- 7
0
votes
1 answer
Text becomes unreadable small on a large display
css
#divMenuT{
font-size: 14px;
}
My monitor is…

qadenza
- 9,025
- 18
- 73
- 126
0
votes
2 answers
What further happens after emails are received on SMTP ? Who Stores the email, is that SMTP?
I am developing a customized SMTP server, it is almost complete too. Other SMTP can now contact with my SMTP and I can successfully recive what they send to me. But now I am thinking is it responsibility of SMTP to store the received email OR I will…

Point Networks
- 1,071
- 1
- 13
- 35
-1
votes
3 answers
Refactoring: When to stop Refactoring?
I am so obsessively OC at dividing a class or instance method and move it in its own class,
and many times a simple "hello world" method will be divided into many classes.
like for example,
class MainProgram
def hello_world
puts "hello world"
…

JB Juliano
- 632
- 1
- 9
- 20