Linked Questions

0
votes
2answers
279 views

Design Patterns: What design pattern should I use for the following? [duplicate]

I am trying to write an utility which traverses through a list of files and searches for a string in each file. On finding the string in a file, I will add it to a list and display the list. Which ...
0
votes
3answers
476 views

Which pattern to create domain objects from web request objects [duplicate]

I'm a little confuse how to create domain objects right. In all/most web application we have simple objects created from POST request. We need to create domain objects that we will use in deeper ...
-2
votes
1answer
807 views

What is a good design pattern for monitoring a protocol handshake? [duplicate]

I am writing a program for monitoring communications between a server and multiple clients on a network. In particular Websocket protocol based communications. I construct monitoring objects for every ...
-1
votes
2answers
136 views

Outsourcing reporting service for multiple customers [duplicate]

I want to develop a robust system written in C# (WPF and WCF) for importing .csv files (and/or some others e.g. Word files) as a input into my system and then to generate PDF/Word report. I would ...
1
vote
1answer
93 views

Appropriate design pattern for developing rules and outcomes [duplicate]

In the exercice i´m developing bellow, i´m applying the chain of responsibility pattern. The pattern works correctly but i don´t think it's the best approach. I think the rule design pattern should be ...
107
votes
10answers
18k views

Are design patterns really essential nowadays?

I was reading "Coders at Work" and have faced the fact that some of the professionals interviewed in the book are not so enthusiastic about design patterns. I think that there are 2 main reasons for ...
37
votes
9answers
8k views

When writing object-oriented code, should I always be following a design pattern?

Is there a conceivable design pattern for any object-oriented program? I ask this because recently I saw an implementation of a Door class with a Lock. It was part of a test and the answer said that ...
7
votes
1answer
5k views

Where we should not use MVC? [duplicate]

I have a software engineering course project that we should design a web application, so I've decided to read about software architecture patterns. I've read a lot about what is MVC and its structure,...
10
votes
5answers
421 views

Using different patterns for similar features

I'm the sole developer on a project that, like for any software project, may be taken by somebody else in the future. Let's say I used the pattern X to implement feature A. After developing and ...
5
votes
2answers
4k views

Design pattern for processing a huge CSV file — Java

I am learning design patterns in Java and also working on a problem where I need to handle huge number of requests streaming into my program from a huge CSV file on the disk. Each CSV line is one ...
2
votes
2answers
860 views

Design Pattern: getting a collection of objects from different sources

I've got a class Shop which contains a collection of Item objects. You can create a shop in two different ways: Create a shop filled with test data (for debug purposes); Create a shop by reading the ...
4
votes
4answers
450 views

API divided into REST and SOAP parts and design patterns

I need to work with some payment gateway API. The API is divided into two parts. There are some methods based on REST and a few methods accessible through SOAP webservice. I would like to create some ...
1
vote
4answers
487 views

C# How to correctly work with ProgressBar? Architecture look

I am wondering about the correct architecture to work with a progress bar in C#. But maybe it applies not only to C#, because I need an architectural look at this. I'll explain my question with an ...
-3
votes
2answers
411 views

Which data-structure or programming technique to use when?

While studying for Data structures and Algorithms, I noticed that there is a pattern/group in which every question falls into. Example - Given this, do/find that - Category 1. use these methods/...
2
votes
1answer
1k views

How does one combine the state pattern and the component pattern?

Suppose we have a class Player with classes PhysicsComponent, InputComponent and StandingState, DuckingState. The class Player itself does not have an input function, the InputComponent does. But ...

15 30 50 per page