Tagged Questions
Questions about problem solving and planning for a solution through software design.
0
votes
0answers
17 views
Improve communication between controller and trackers in a Twitter fetcher tool using RabbitMQ or Apache Flume
I've been working for a time with some researches developing a tool to fetch tweets from Twitter and process them in some way. The first prototype "worked" but became a pain as we used sockets to ...
-2
votes
0answers
22 views
Best framework for Enterprise solution in ASP.NET web page application
I work on VS2012 C# asp.net web page application. In the default model for ASP.NET Web pages, the user interacts with a page and clicks a button or performs some other action that results in a ...
0
votes
0answers
17 views
Individual methods or parameters for Google Analytics abstraction on Android
A coworker and I are having a discussion around the best way to build our abstraction on top of Google Analytics for an Android application. A couple of data points.
We have auto-tracking enabled ...
2
votes
2answers
108 views
When testing is it OK to use a method of the subject to test another method of the subject?
I have two methods in the same helper class one that creates an image (method A) and one that compares two images (method B).
I want to check the return of method A against an existing image. To do ...
2
votes
2answers
94 views
Should I use a large if statement inside a view or create a different view entirely?
I'm using the MVC architecture Laravel 4.2 to create a relatively complex web application. This application consists of a website which is very heavily based on whether an event has occurred or will ...
0
votes
0answers
95 views
+50
Multiple users using the same script for their websites
I'm working on a project, I have a question regarding the architecture:
Say I have a many python scripts on my server and there's main.py
which contains all the classes. And there's a script called
...
0
votes
3answers
96 views
Can I get some help developing an auto-update standard?
I'm looking to come up with a standard for how to implement a system that will automatically update software. As such, there is no actual programming per se, but I still want to make sure my standard ...
2
votes
1answer
55 views
Integration between services in a SOA
Assume we have a Bounded Context for Inventory (InventoryBC) and another one for Shipments (ShipmentsBC). These 2 BCs need to communicate together. They are hosted on 2 different services on different ...
-2
votes
0answers
65 views
How are references easier to manage than events? [on hold]
Some claim that a reference (of an interface type) from object A to object B is easier to manage than an event of object A that object B registers to.
I'd like to know:
What are the pros and cons of ...
0
votes
4answers
194 views
How should nodes in a chain be connected?
Suppose you were building a system that receives data on one end and sends filtered data on the other end.
The system is a chain of nodes, each receiving data from the node before and sending ...
0
votes
1answer
40 views
Implement a virtual tag on the database level
I have a set of objects, for which users manually applied tags, whatever they invented. I'd like to implement a task engine, where each task might be applied to objects from a tag. For convenience, ...
1
vote
4answers
152 views
Options for constructing an object that is not logically initialized until all fields are set
I am working on a Pokemon game at the moment, and am running into some design concerns. The easiest example is as follows:
Each Species of Pokemon has several traits that are required before it is ...
0
votes
1answer
112 views
Global state of games(or other). Example : Waiting,Betting,Battling in gambling game
So I'm making a IRC betting bot. Basically the game/bot has three states of taking-in chat.
State 1 : Betting
If anyone says "!bet team money" parse it and record.
State 2 : Battling
Take nothing ...
-2
votes
0answers
54 views
Best approach to hardware to software buttons [closed]
I have some requirements and was hoping someone could tell me the best approach for what I need.
I have a control panel in my room which is used to control many things. I want to be able to control ...
0
votes
1answer
126 views
How would a modern website like Reddit divide up its website into Django apps? [closed]
Django uses apps to divide projects into manageable and reusable chunks. All examples in tutorials use polls or articles in unrelatable circumstances. In a modern example like Reddit (or even Amazon ...
-1
votes
0answers
19 views
AES-CCM Custom nonce entry [closed]
I am currently looking for an AES-CCM encryption tool. We are researching wpa2-psk flaws, and need more control for our research. Any program that enables us to create a user-specified ptk and gtk ...
-2
votes
0answers
48 views
Beginners Guide to Participating in Software Projects [closed]
I am currently reading my C++ textbook and am only reading about language features and the basics of good and bad practice. The book is Programming Principles and Practice Using C++ by the C++ creator ...
2
votes
2answers
87 views
Entry point constructor vs init(),run() etc
Lets suppose we have some Js Widget, that includes three objects view, controller, model.
var MyWidget=function(){
this.setModel(new Model());
this.setView(new View());
this.setController(new ...
51
votes
11answers
5k views
How do I avoid cascading refactorings?
I've got a project. In this project I wished to refactor it to add a feature, and I refactored the project to add the feature.
The problem is that when I was done, it turned out that I needed to make ...
-2
votes
0answers
17 views
LifeRay portlet development using Struts 2. Is a modern technologies or is it old deprecated stuff? [closed]
In this time I am working on some LifeRay portlet development project that use Struts 2 as web framework for my portlets. These porltets also use Struts 2 UI tag library for the frontend (wrapping ...
1
vote
1answer
120 views
Special parameters for behaviour, good or bad practice?
I really was questioning to myself where to ask this, as I could not decide myself. This is more of a software design question.
Context
I currently maintain a small Node.js module on NPM which ...
-2
votes
1answer
49 views
Database data storage [closed]
So I am pretty new at programming and am trying to make a personal site for myself and am stuck on how to structure the database to allow for scalability and future features. So this site is to list ...
0
votes
1answer
78 views
What differences are between “play-by-play”, design and implementation of an OS?
From two books' review
Daniel Bovet and Marco Cesati. Understanding the Linux Kernel (2nd Edition or newer):
Note: this book has some tendency to function as a play-by-play of
what happens ...
0
votes
1answer
76 views
How should I structure an application containing business logic and display?
I'm working on a simple board game that will run in the browser. I'm thinking how to structure the program and I'd like to hear your opinions.
The program will consist of the user interface part (the ...
0
votes
0answers
105 views
JavaScript program design: to what degree should I separate logic and display?
Consider you wanting to implement a simple game of checkers. There would be a rectangular game board and the player would able to move the pieces around according to a particular set of rules.
...
1
vote
0answers
119 views
How to separate out below tightly coupled classes
I have two classes which are somewhat tightly coupled to one another. Lets call them A and B. A derives from C and B derives from D.
B is the class whose instance is created by the system and then B ...
0
votes
1answer
28 views
Scoping template variables in “has-a” (compositional) relationships
I'm developing a new templating language for PHP, and one of the features is an object-oriented approach to nested child templates. For example, I can declare an object of type HtmlBuilder like this:
...
1
vote
1answer
85 views
Repository pattern without entity framework?
Is it possible to implement the Repository pattern without using entity framework?
I am working on a small dev team of 3 on a small scale (for now) ASP.NET MVC solution. I told my manager that I ...
0
votes
0answers
56 views
Are there any design pattern to data binding in event driven architecture?
I develop a browser based game with node.js in back and HTML5 canvas in front-end.
It use WebSockets for communication.
My plan is to generate business events in client side, e.g.: "finishJob".
...
0
votes
2answers
151 views
How can I (in general) program a website for mobile devices?
I really tried searching about this in the internet but came upon diverse search results which barely specified what must be done specifficaly.
I'm now running ubuntu and php5 through nginx, amongst ...
0
votes
1answer
121 views
Suggestions on refactoring a poorly written ASP.Net MVC web application [closed]
I have recently "inherited" a project written in ASP.Net MVC which has quite a few issues
and I'm looking for suggestions on how to go about refactoring the code.
The technical issues found so far ...
3
votes
1answer
106 views
Deciding How To Split Up Architecture Using If Blocks
I'm having trouble deciding the best way to handle splitting up if block checks for different architectures. I may be handling the scenario completely wrong, so let me know if that is the case, or if ...
2
votes
4answers
232 views
Two classes that behave identically yet are semantically different
I am writing a program which is a similar to Ruby's Active Record Migrations, in which that every migration has both an "Up" and "Down" in terms of creating a change to the database, "Up" meaning ...
1
vote
0answers
46 views
Economics of scaling, denormalizing NoSQL for personalized content
I am using Cassandra for a data intensive app. With relatively little operations and deployment experience, the expertise I am looking for is someone that can read the example below and decide whether ...
10
votes
1answer
330 views
Efficient way to represent hexagonal board logic for abalone-like games
I have to implement the AI for Abalone game and I'm wondering what is the best way to represent the board logic using Java without wasting too much resources in all checks and updates routines ...
0
votes
0answers
41 views
Python - Flask controller structure
This is my first python application (I have some experience in Java/groovy-grails), and therefore I am not confident of the application structure I should be following.
My application has two ...
0
votes
1answer
73 views
Object creation: when should I expose a factory vs wrapping class?
I am having some problems trying to figure out when to use a factory or to wrapper class. This question is slightly geared towards C# I guess, so I'm not sure if this is the correct place to ask.
Say ...
-1
votes
1answer
93 views
Passing by argument vs keeping it as a member
I really cannot decide what option is the best, I see plenty of down/upsides to both approaches and right now I'm undecided.
For example;
class DX11GBuffer
{
public:
DX11GBuffer(ID3D11DevicePtr ...
2
votes
3answers
80 views
Design a Queuing Solution with Clustering and Multiple Consumers
It is a Design Problem which I am listing out here.
I have different set of business operations that are carried out for different business entities.
Operations:
Operation A
Operation B
Operation ...
0
votes
1answer
33 views
To cache or not to cach a ReadOnlyWrapper object?
I have a system with a structure like this:
The ConcreteWriteable is caching the ReadOnlyWrapper.
This is a similar system to what .Net's System.Array uses for its Array.AsReadOnly<T>(T[] ...
0
votes
1answer
80 views
Which design is better? [MainClass] -> [Class] OR [MainClass] -> [MiddleClass] -> [Class]
I have two designs which achieve the same result.
-------Design A
MainClass has a List and two methods. The methods create an autonomous object and is added to the list. The reason for the ...
0
votes
1answer
83 views
Resources to teach fundamental design concepts to a self-taught experienced developer [closed]
I'm working remotely with a programmer who is very smart and good at hacking his way around problems, but lacks some basic concepts that are fundamental to write good software: A good grasp of ...
0
votes
1answer
59 views
trigger chat across multiple devices?
I am building up a chat app.
I am struggling with the idea of syncronizing the chat messages in real time.
My Scenario :
trigger chat messages(incoming and outgoing) on multiple devices ...
2
votes
4answers
51 views
Handle server-side/client-side when for showing missing information as placeholders
I have a database table which stores Incident details. Each Incident can have an image saved for it. There are some Incidents which will not have an image for it.
I have an API which pulls the image ...
0
votes
0answers
85 views
Better way than scrolling a long list [migrated]
I have a mobile app that allows you to browse lists of songs:
[a][b][c][d][e]
Elvis - Song 1
Elvis - Song 2
Elvis - Song 3
Ernie Wood - Song 4
You can jump to the letter to filter based on the ...
5
votes
1answer
187 views
Log to file or to database table?
I'm developing a web application which uses MS SQL for various data: including users, user accounts, user licenses, license prices, invoices.
I need to log users' real-time usage of the system, and ...
6
votes
5answers
252 views
Algorithm to test file equivalence
I'm writing a program that needs to test if a file is equivalent to one or more other files. To accomplish this, every time we see a new file we stat the file and get the size.
We use the size as a ...
0
votes
0answers
48 views
adding model specific CRUD operation web api endpoints
Are there are any major design flaws / smells in creating a web api as described below
The models I have
public class CourseModel {
public String Name {get; set;}
public ...
1
vote
2answers
66 views
Explicitness, verbosity and their counterpart - when to prefer which?
I'am the only one in my team who advocates for adding a little implicitness in favor of codebase reduction and decreasing repetition. Yet I don't want to be a biased 'Bad apple' playing against ...
7
votes
3answers
189 views
How to model and store an entity which has “one or more” values
I'll use C# to design the model to be persisted
Let's suppose I have the following entity:
public class Episode {
public int Id { get; set; }
public string Title { get; set; }
public ...