Tagged Questions
8
votes
2answers
210 views
Best overview to modern C++ paradigms?
I used to write C++ extensively between 8 and 10 years ago. I have since moved on to C# for professional reasons. However, from time to time I see statements like
"If you're still manually ...
12
votes
9answers
550 views
Alternatives to the singleton pattern
I have read different opinions about the singleton pattern.
Some maintain that it should be avoided at all costs and others
that it can be be useful in certain situations.
One situation in which I ...
2
votes
3answers
199 views
Any Course/Lecture videos on Design Patterns
I am planning to read some design patterns and I took the book on "design patterns in C++' by gang of four. However, I am not really some one who reads book and prefers reading slides/watching course ...
9
votes
5answers
637 views
When to stop inheritance?
Once upon time ago I asked a question on Stack Overflow about inheritance.
I have said I design chess engine in OOP fashion. So I inherit all my pieces from Piece abstract class but inheritance still ...
2
votes
1answer
144 views
Lazy Processing of Streams
I have the following problem scenario:
I have a text file and I have to read it and split it into lines.
Some lines might need to be dropped (according to criteria that are not fixed).
The lines ...
8
votes
2answers
138 views
Low coupling processing big quantities of data
Usually I achieve low coupling by creating classes that exchange lists, sets, and maps between them. Now I am developing a Java batch application and I can't put all the data inside a data structure ...
6
votes
4answers
212 views
Should injecting dependencies be done in the ctor or per method?
Consider:
public class CtorInjectionExample
{
public CtorInjectionExample(ISomeRepository SomeRepositoryIn, IOtherRepository OtherRepositoryIn)
{
this._someRepository = ...
5
votes
4answers
298 views
How do you motivate your team colleagues to learn, use and apply best practices? [closed]
Possible Duplicate:
How do you motivate peers to become better developers?
How do you promote and how do you assure that in your new project best practices like unit testing, TDD, ...
12
votes
4answers
414 views
What is pattern based programming?
Can somebody explain the obsession with patterns and anti-patterns in programming? I ask because I have absolutely no idea what any of the patterns mean. When faced with a programming task I think ...