Tagged Questions

Software design is a process of problem solving and planning for a software solution.

learn more… | top users | synonyms

5
votes
0answers
98 views

Doubts about the quality of an API designed for use with minimal effort

This is going to be long, and I do hope it is going to make some kind of sense; I apologize if it doesn't. I'll try to provide exactly the amount of context that is necessary to understand the ...
1
vote
0answers
24 views

Calculating fields in a PERT diagram for different types of relationship

Consider this simple PERT diagram with simple End-Start-Relationships (the successor task can only begin after the predecessor is finished): ES Duration EF Cost LS Slack LS I have ...
3
votes
1answer
59 views

Design review for single master-multiple slaves component

EDIT: I conclude I've failed to describe the problem. Intro: Master-Slave Architecture Master-Slave is a common hardware setting, in which multiple peripheral, passive components, are wired to a ...
2
votes
1answer
48 views

Content Management System Design Pattern Opinion

I am building game platform content management system where i have the following classes: Game, GameReview, Video and so on... Every Game object has list with GameReview objects and every GameReview ...
2
votes
1answer
117 views

Have I implemented the command pattern correctly?

This is my command interface public interface IConverter { void convert(); } This is my Receiver class public class Ogg extends Audio{ private File src; private File trgt; ...
1
vote
0answers
21 views

DOMDocument field class Python

What do you think of this class? Is this simple to understand how it works and what it does? Do you think it is good piece of code? class Field(object): """Class which contains logic of ...
2
votes
2answers
104 views

how to write generic extensions for standard collection types in java?

I am a Java beginner and I am looking for an idiomatic way of writing a function that involves generics. I wrote this helper class (below) that pushes items into a sorted generic collection and I ...
2
votes
2answers
92 views

Python class review - wiki api getter

First, I know there are other Python wiki API classes out there. I'm writing this one because I don't need all the bells and whistles, no edits, no talks, etc. I just need to be able to search for ...
5
votes
1answer
98 views

Please review following code

Please review the following code. Methods getFirsts and getSeconds return a list of objects which implement CommonInterface and both of them are private. Is it a good or bad design. @Override public ...
2
votes
1answer
151 views

Arduino based SNES controller wireless transmitter/reciever, code questions

I am building a transmitter and reciever pair for two SNES controllers, as I don't like using long extension cords to get the controllers to reach the couch. I'm using atmega328p's for the avr's, ...
2
votes
2answers
159 views

What are the bad habits etc. in this code?

I know this code is pretty awful, but, by any chance, could someone point out all the flaws you can find and tell me them? I think it will help me become a better coder. # Alien Assualt # A bullet ...
2
votes
1answer
73 views

Which is better for package design? Easy to navigate or module independence?

I have class object ServerUser. The ServerUser be considered as shared part and it has two sub-class SshUser and FtpUser. The SshUser only provide support for SSH package and FtpUser for FTP package ...
3
votes
0answers
414 views

Review of Fluent LinkedIn REST API client interface design

There is a handful of LinkedIn clients written in C# on the NuGet package library, but afaict most only do authentication via LinkedIn. I found a couple which offer a linkedin rest api interface. Of ...
2
votes
2answers
115 views

best way to use singleton

I know 3 ways for using singleton in our code and I want to know which one is the best way and you prefer more. The first is to have a Singleton class and every classes that want to be singleton ...
1
vote
1answer
140 views

Could this php error/exception handling be better?

I'm VERY new to error/exception handling, previously just echoing everything to screen, and am trying to really clean up my code. My goal was to log everything but only show the user a friendly ...
0
votes
1answer
90 views

Package Manager in Python

I've written a package manager for OS X in order to improve my Python skills. This is the second programming project I've ever worked on, so I do not expect it to be great, or anything, but I would ...
3
votes
2answers
402 views

Business Layer - UI communication

Taking the following cases in consideration. Witch one would you prefer and why? Suggestions appreciated. Using Delegates private void cmdDelete_enterClick(object sender, EventArgs e) { ...
4
votes
1answer
294 views

Is this a good design for a Factory Pattern?

I'm creating a system to generate math problems. As you know in mathematics, there are milles of kinds of problems: Binary problems, fractions, decimals, comparating two numbers, etc. I'm creating an ...
1
vote
2answers
151 views

Ruby - class definition for connecting to external API

I've defined a Client class to connect to an external API. The Client class will return XML responses for various resources. Here's what it looks like now: require 'nokogiri' class Client ...
1
vote
1answer
291 views

How to Organize my Solution in Visual Studio 2010, for a Asp.NET project using Ado.Net Entity Data Model

For ASP.NET projects. I am starting developing with Visual Studio 2010, and will work with Ado.Net Entity Data Model and Linq. I'm used to develop using Visual Studio 2005, and SubSonic as my ORM. ...
0
votes
0answers
114 views

Using Prism, how can I improve the loading of modules

I'm using PRISM and Unity Container. I've got in my shell a TabControl with a region called MainRegion. Then I have in another project called Common a view. This view contains a ContentRegion region ...
1
vote
0answers
1k views

PHP Aspect Oriented Design: Part 2

This is a continuation of this post: Review on design pattern What was taken away from that post, and other aspect oriented design is it is hard to debug. To counter that, I implemented the ability ...
3
votes
1answer
207 views

How to add a new feature to this factory model?

The factory should only have the responsibility of creating instances and knowing what types of instances to create, without having the added overhead of knowing about configurations. With that in ...
5
votes
3answers
1k views

Review on design pattern

I wrote a framework and I want to hear the thoughts of other on the design patterns it uses. Every method contains three design patterns - adapters(strategy), intercepting filters, and observers. A ...
1
vote
1answer
125 views

Designing a Service/Business Logic Layer that returns useful/ consistent messages

This is a question regarding design of a service or business logic layer that returns or exposes messages meaningful to the user. i.e. RegisterUser method that takes a user, what should it return? ...
1
vote
1answer
136 views

How to add a random feature for a factory design

I'm creating a factory design for math problems. The purpose of the factory is: The problems must be generated with a certain difficulty (or level). To do this, I've got an abstract method called ...
3
votes
1answer
112 views

How to model this design: BinaryProblem

I'm creating a model for Math Problems. This contains always two properties, and has a CorrectResult method which returns the addition of the two numbers. The propeties data types can be decimal, int, ...
5
votes
1answer
627 views

How to improve my factory design?

I'm creating a factory design for math problems. The purpose of the factory is: When the factory initializes, creates in a list some problems (20 initially) If the program wants more than 20, the ...
1
vote
0answers
140 views

Looking for design and best practices tips in the area of Python and Web Applications

This is a small web application that I have created using the Flask framework. I am looking for best practices feedback, as well as design pointers. I am not confident that my design choices have ...
2
votes
2answers
2k views

Is this implementation of an Asynchronous TCP/UDP Server correct

I am trying to implement a TCP/UDP server so all I have to do is something like this: var server = new Server(Type.UDP, "127.0.0.1", 8888); server.OnDataRecieved += Datahandler; server.Start(); I ...
7
votes
2answers
296 views

Creating simpler fluent interface

I have the following: public interface IBehaviour { event EventHandler Completed; void Execute(); } public interface IBehaviourA : IBehaviour { // Some specific stuff here object A { ...
1
vote
2answers
119 views

I'm after a collection of opinions regarding cohesion and coupling with my application to improve OO programming

Control Class - Populates test data and calls main menu import java.util.HashSet; import java.util.Set; public class Control { public void run() { // Populate Test Data Student jane = new ...
2
votes
0answers
42 views

Massive story solver to result applescript

I'm having a difficult time creating functions. I can't really encapsulate code because it's used all over the place, and needs to be refactored. However, this is a complete rewrite from my old ...
4
votes
1answer
103 views

How can I Improve this module?

This module makes a double linked list and initialize each member, I couldn't do it with a loop so I gave up and made each node individually, here is the long output, how can I improve it, or can ...
0
votes
1answer
110 views

What if any design issues are there in this method of loading configuration data from YAML in Ruby?

I am actually pretty excited about this approach, but for sanity's sake I wanted to hear some thoughts on others on my strategy here. My basic goal is to parse a YAML file and recursively create ...
2
votes
2answers
118 views

How can I improve this code to display contact numbers?

I am making an Address Book like application . I have a contactType enum. public enum ContactType { //just a cut down version MOBILE,PHONE,FAX,EMAIL; } Then I have a Contact class public ...
2
votes
0answers
387 views

MVC folder structure

I currently have a folder structure on my MVC .NET website that I am completely at a loss as to whether it is acceptable or not. Here is an outline of the structure [Areas] [Area1] ...
0
votes
1answer
481 views

Does my Entity Framework 4 Model-First design look ok? Any issues?

I'm very new to entity framework and I've found model-first design is a more preferred way for generating a relational diagram, rather than reverse-engineering an existing schema. I've designed my ...
1
vote
1answer
735 views

Advice on approach to organizing my business logic & data access?

I've been researching various patterns for structuring my business logic & data access, particular in the context of C# and the Entity Framework. I've come up with a basic idea of how I think I'd ...
5
votes
3answers
368 views

What do you think about this smelly test?

I caught a whiff of a smell emanating from one of my tests, in a scenario akin to the following: [TestFixture] public void CarPresenterTests{ [Test] public void ...
3
votes
3answers
313 views

Improving the design of this program.

I am trying to design a program that will read a XML file and based on the tag name will perform certain requirements checks. I feel that there is probably a better way of doing this and any comments ...
-1
votes
1answer
860 views

Any suggestions about my small RPC library design?

I've started learning Java some weeks ago for one of my projects. Decided to move to it from Delphi since I trust Embarcadero no more... Since just learning Java by books is boring, I've decided to ...
7
votes
2answers
352 views

Object Paradigm for PHP, Practice in Design

I've created and I manage a point of sale web application built in PHP which has thus far followed no clear guidelines or methodology for development; it's operation is completely procedural. In turn, ...
1
vote
1answer
173 views

What is a better practice and easier to understand in this case? [closed]

What will be better, when writing a library - if the method returns an array of objects, or method returns a list of objects? I.E.: Row[] selectFromDb(); List<Row> selectFromDb(); What will ...
4
votes
1answer
291 views

Implementation style question on service oriented architecture in Objective-C.

I'm wondering which one of the following would be the correct usage / implementation in Objective-C of a service oriented design: The first version is specific to static languages, using protocols ...