Tagged Questions
4
votes
4answers
1k views
Exceptions vs ErrorCodes when working with devices
Out team is at the cusp of a new project.
One of the components at the boundary of the system is the component which interacts with a printer through an external COM component (referenced as a usual ...
0
votes
3answers
536 views
How can I explain this is an anti-pattern? [closed]
I recently started at a new job.
The existing system works OK but is poorly designed and hard to maintain, and they are planning to rebuild it in MVC and I fear it will be much worse. (Not because ...
8
votes
3answers
542 views
How to migrate my thinking from C++ to C#
I am an experienced C++ developer, I know the language in great details and have used some of its specific features intensively. Also, I know principles of OOD and design patterns. I am now learning ...
8
votes
4answers
5k views
Is it a good practice to create a ClassCollection of another Class?
Lets says I have a Carclass:
public class Car
{
public string Engine { get; set; }
public string Seat { get; set; }
public string Tires { get; set; }
}
Lets say we're making a system ...
12
votes
1answer
2k views
How to choose between using a Domain Event, or letting the application layer orchestrate everything
I'm setting my first steps into domain driven design, bought the blue book and all, and I find myself seeing three ways to implement a certain solution. For the record: I'm not using CQRS or Event ...
6
votes
2answers
2k views
Storing and maintaining serialized objects in C#
What are the best practices to store and maintain serialized objects in C#? Any strategies or patterns that apply?
What I have come to believe so far is this:
Prefer Json over XML, both for space ...
5
votes
1answer
123 views
Checking members and instantiating in properties
Consider this:
public MyClass
{
private Resource _myResource;
public Resource MyResource
{
get
{
if(_myResource == null)
{
...
2
votes
2answers
276 views
Are there any good tools to help implement or enforce the proper equals and hashcode patterns for c#? [closed]
A very common bug on my development team is forgetting to, or incorrectly overriding equals and hashcode.
While the pattern is simple, there's a lot of boilerplate code that goes into doing this ...
4
votes
3answers
515 views
Architectural Patterns for a Game
So I've got a solution that contains a few big projects, which I'm trying to break down into smaller projects with more isolated responsibilities. This is a game I'm tinkering with -- I'm mainly a LOB ...
1
vote
1answer
438 views
.net data access technology
Iam new with .Net technology and i need a help with choosing correct path of creating application. I want to create application that get its data from web-service and small part from local SQLCE ...