Tagged Questions
11
votes
1answer
530 views
Problem: Traffic Flow
I have the following task:
The Shallow Alto city council has organized a special committee to
review the traffic situation in the city. Despite the fact that there
is nothing whatsoever to do ...
10
votes
3answers
388 views
Design pattern for implementing multiple data sources
I've written a program to populate a particular object from multiple data sources, however I'm not convinced I'm going about this in the right way:
I have no idea which (if any) design pattern I ...
5
votes
3answers
810 views
Win Forms design pattern
I am writing a dice roller win forms application using C# 2012 VS. Dice roller is set up for playing Shadowrun table top. I feel that there might be too much code going into the GUI, but I am unsure ...
12
votes
1answer
72 views
RPSLSMB OOP Version 2
Rock Paper Lizard Spock Monkey Banana
My original post
Based off of Malachi's post
I've changed the way rules work in this version to allow ties to result in double loss or double win. While ...
9
votes
2answers
365 views
Implementation of the Strategy Pattern using an interface, abstract class and delegate
The following class was designed to help create a more detailed error message than what's provided by the repository when a user tries to insert text into a column that is > the column max length. The ...
8
votes
3answers
106 views
RPSLS refactored to Object Oriented
I wrote a couple reviews for this CR post. In my most recent review, I refactored @Malachi 's code to fit OO design. I'm looking for any advice/hints/criticisms on it.
A Review is welcome for both ...
9
votes
4answers
639 views
Clean and well-designed Tic-Tac-Toe game
My design goal was to try and make a "clean" and well-designed Tic-Tac-Toe game but also to try and use concepts and programming constructs that I'm new to.
I'm planning to implement an "AI Player" ...
7
votes
2answers
526 views
Feedback on my Conway's Game of Life
I've been programming for about 4 months now, just trying to learn by myself. I've tried my way with coding the Game of Life here, would like some general feedback as well as some pointers on how I ...
6
votes
1answer
112 views
How should I implement my domain model?
My domain model consists mostly of simple DTOs, i.e. 'Data Transfer Objects' which this article distinguishes from 'Plain Old C# Objects', like this one:
...
6
votes
2answers
219 views
Sprite animation for a game
I'm just getting started with XNA and game development in general. I followed these instructions to create a basic game, then this article to get sprite animations working.
Now, I'm trying to ...
3
votes
1answer
103 views
Employee wage/salary calculation MVP solution - follow-up
This is a follow-up to this post.
In this project (C# Win forms) I'm supposed to calculate wages of employees.
These are the steps:
Calculate earnings from Attendance data. Here all regular ...
1
vote
1answer
67 views
Using Models and Entities in MVP pattern
I'm a beginner in MVP design pattern and In a MVP triad, I have
Model - AdvanceInfo
View - AdvanceForm
Presenter - ...
0
votes
2answers
694 views
Constructor with too many arguments [closed]
We have a Transaction class that's very loaded; so loaded that I originally ended up passing almost 20 argument to the ctor. ...