Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
65 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
54 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
140 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
201 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
59 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
137 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
56 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 ...
2
votes
0answers
101 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 ...
4
votes
3answers
935 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
71 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
107 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
97 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
491 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
74 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 ...

1 2 3
15 30 50 per page