Questions about problem solving and planning for a solution through software design.
2
votes
2answers
41 views
What are common patterns for handling possible pluralization in message properties?
Obviously users like to see text properly pluralized, and pluralization schemes vary in the various written languages one may encounter. When internationalizing an app, what pattern(s) are useful for ...
4
votes
4answers
217 views
Should single purpose utility app use a class
When writing a small utility app, that does just one thing, should that one thing be encapsulated in a seperate class, or just let it be part of whatever class/module is used to start the application? ...
2
votes
2answers
93 views
Help with design structure choice: Using classes or library of functions
So I have GUI Class that will call another class called ImageProcessor that contains a bunch functions that will perform image processing algorithms like edgeDetection, gaussianblur, contourfinding, ...
3
votes
2answers
158 views
Semantic coupling vs. large class
I have hardware I communicate with via TCP. This hardware accepts ~40 different commands/requests with about 20 different responses. I've created a HardwareProxy class which has a TcpClient to send ...
3
votes
1answer
30 views
Where should the database and mail parameters be stored in a Symfony2 app?
In the default folder structure for a Symfony2 project the database and mail server credentials are stored in parameters.yml file inside ProjectRoot/app/config/parameters.yml with these default ...
13
votes
2answers
530 views
“Do it right, against customer's wishes” - how is it called? [on hold]
We know the optimal situation of negotiating corrections of specifications with the customer, getting the specs to do what the client wanted, not what they said or thought they wanted. That's ...
0
votes
0answers
95 views
How is this paradigm/style called?
I have the following situation:
I'm developing an add-in for a UML modeling tool. The models that can be created by the user are stored inside the main application and a limited access to the models ...
27
votes
3answers
2k views
Advice on designing web application with a 40+ year lifetime
Scenario
Currently, I am apart of a health care project whose main requirement is to capture data with unknown attributes using user generated forms by health care providers. The second requirement ...
-1
votes
0answers
29 views
designing a multi-node heartbeat mechanism for a “hot-standby” scenario [closed]
i am looking for the best way for a heartbeat mechanism for a multi-node scenario where one node gets the master while the other ones stand-by as "hot" slaves or backups.
the state should be probed ...
0
votes
1answer
177 views
how to improve design ability [closed]
I recently went on a couple of interviews and all of them asked a one or two design questions, like how you would design a chess, monopoly, and so on. I didn't do good on those since I am a college ...
-1
votes
3answers
189 views
Browser-based GUI for a python application [closed]
I want to create a web/browser-based GUI for a command-line python application. The goal is to make use of HTML/JS technologies to create this GUI. As the application itself, it needs to run on Linux ...
4
votes
1answer
139 views
Functional/nonfunctional requirements VS design ideas
Problem domain
Functional requirements defines what a system does.
Non-Functional requirements defines quality attributes of what the system does as a whole.(performance, security, reliability, ...
2
votes
1answer
106 views
Data Transformation Pipeline
I have create some kind of data pipeline to transform coordinate data into more useful information.
Here is the shell of pipeline:
public class PositionPipeline
{
protected ...
2
votes
2answers
109 views
Permissions and MVC
I’m in the progress of developing a web application. This web application is mostly a CRUD interface, although some users are only allowed to perform some actions and see only some parts of views.
...
0
votes
1answer
176 views
The balance between client and server functionality
I want to bring the discussion that started in our teams and get your opinion about it.
Assume we have an user account which could have different credentials for authentication and associated email ...
5
votes
4answers
209 views
Get Info From Database, or Build Inferred Info?
Does it make more sense to store and retrieve properties or information directly related to an item in a database, or, say in such a case that a product's ID could describe information about it, ...
2
votes
2answers
77 views
Designing a user-defined list to be stored in a relational database - Should I include user index?
By index, I mean, as the user creates the list, each item receives an integer index for its place in that particular list. Since there will be a table of ListItems, I'd prefer to avoid using the name ...
2
votes
5answers
156 views
Designing a single look up entity
In almost every application you have this look up entity that provides a dynamic references. This are things like type, category, etc. These entities will always have
id, name, desc
So at first I ...
3
votes
5answers
414 views
Requring static class setter to be called before constructor, bad design?
I have a class, say Foo, and every instance of Foo will need and contain the same List object, myList.
Since every class instance will share the same List Object, I thought it would be good to make ...
2
votes
4answers
107 views
How to handle status columns in designing tables
How to handle multiple statuses for a table entry, for example an item table may have an active, inactive, fast moving, and/or batch statuses. And I wanted to handle them in single column with VARCHAR ...
19
votes
6answers
792 views
Is an event loop just a for/while loop with optimized polling?
I'm trying to understand what an event loop is. Often the explanation is that in the event loop, you do something until you're notified that an event occurred. You than handle the event and continue ...
5
votes
4answers
358 views
How do I decide to which class a method should belong
I have TopicBusiness.class and PostBusiness.class. I have no problem with deciding into which class methods such as addPostToDatabase() or getAllPostsFromDatabase() should go. But what about ...
1
vote
1answer
114 views
Storing large data in HTTP Session (Java Application)
I am asking this question in continuation with http-session-or-database-approach.
I am planning to follow this approach.
When user add product to cart, create a Cart Model, add items to cart and ...
6
votes
2answers
630 views
Is programming in layers real? [duplicate]
I am fairly new in product development and I am trying to work over a product. The problem that I have realized is that people draw diagrams and charts showing different modules and layers.
But as I ...
1
vote
2answers
271 views
Should I close database connections after use in PHP?
I wonder if I should close any unnecessary database connection inside of my PHP scripts.
I am aware of the fact that database connections are closed implicitly when the block stops executing and ...
4
votes
4answers
245 views
Rails: Law of Demeter Confusion
I am reading a book called Rails AntiPatterns and they talk about using delegation to to avoid breaking the Law of Demeter. Here is their prime example:
They believe that calling something like this ...
0
votes
0answers
17 views
Rails: The Law of Demeter [duplicate]
I am reading a book called Rails AntiPatterns and they talk about using delegation to to avoid breaking the Law of Demeter. Here is their prime example:
They believe that calling something like this ...
2
votes
1answer
67 views
Rails: Useful example of delegate and Law of Demeter
I am currently learning about delegate and the Law of Demeter. I understand the Law of Demeter, but I can't seem to find a good example of where using delegate to avoid breaking the law would actually ...
1
vote
2answers
176 views
business logic: client-side vs. server side
Let's say 3-5 years ago (more or less) n-tier application on the server side - and some javascript/html/CSS for the UI was a basic approach for web development.
Nowadays we can see that traditional ...
0
votes
3answers
282 views
Is it bad practice to check object types with an identifying member variable?
Preamble:
I am making a simple board game in C++, in which AI characters move around squares on the board. There are different types of squares, each inherited from an abstract class, each with ...