Tagged Questions
43
votes
12answers
4k views
Did the developers of Java consciously abandon RAII?
As a long-time C# programmer, I have recently come to learn more about the advantages of Resource Acquisition Is Initialization (RAII). In particular, I have discovered that the C# idiom:
using (var ...
-1
votes
2answers
41 views
Beans, DTOs, & Non-Internal Classes as Data in General - Acceptable or OOP-Murdering Antipatterns? [closed]
Am I not understanding encapsulation? What's with all this data out in the line of function-spaghetti disguised as one-method classes fire? Beans and DTOs are everywhere. Isn't it better design to ...
-1
votes
0answers
184 views
Is there a reputation that C# and Java is for work while Ruby or Python is for fun? Why? [closed]
I heard this several times online or from colleagues. Many people use C# or Java at work-related project, but prefers Ruby or Python for fun or hobby-oriented projects. For example, in his blog post, ...
6
votes
5answers
716 views
Why do Windows Forms / Swing frameworks favour inheritance instead of Composition?
Today a professor of mine commented that he found it odd that while SWT's philosophy is one of making your own controls by composition, Swing seems to favour inheritance.
I have almost no contact ...
-3
votes
0answers
155 views
Choose between focus c# or java? I need motivation [closed]
I have a problem for my study, I need to focus on one programming language.
For professional programmers, please give me motivation or the right choice to choose one of them.
7
votes
6answers
820 views
Object-Oriented Class Design
I was wondering about good object oriented class design. In particular, I have a hard time deciding between these options:
static vs instance method
method with no parameters or return value vs ...
0
votes
0answers
80 views
Patterns for refactoring
I have a existing legacy library which has multiple helper classes. For example Helper1, Helper2. They are not well organized. I want provide an easy to use interface like this:
...
34
votes
6answers
4k views
Good example of complex code using TDD
What would be a good example of the use of TDD in large, real-life, complex, projects? All the examples I've seen so far are toy projects for the purpose of a book or a paper...
Can you name an ...
0
votes
0answers
246 views
Making the case for .net [closed]
I work for a small company of about 10 developers. My boss considering dumping .net and moving over to java for new developments. His brother in law convinced him that windows server license cost is a ...
-5
votes
3answers
401 views
How is an IDE compiled?
I'd like to know the general procedure of how an IDE is built/compiled/created.
Additionally, what are some tools/scripts used to create an IDE?
I don't mean to say that compiling IDE needs an IDE. ...
3
votes
4answers
196 views
Should we validate a state transition before attempting it in the State Pattern?
When applying the State Pattern illegal transitions should result in an exception being thrown (or at least that's what I understood from the pattern)
I know exceptions are for "unexpected behavior" ...
5
votes
2answers
191 views
Domain Services as facades
I read .NET Domain-Driven Design with C#: Problem - Design - Solution and I noticed that the author created a domain service for each aggregate root.
However, the domain services were only facades to ...
4
votes
3answers
2k views
What is meant by Scope of a variable?
I think of the scope of a variable as -
"The scope of a particular variable is the range within a program's source code in which that variable is recognized by the compiler".
That statement is ...
-4
votes
1answer
327 views
Learning advanced programming [closed]
I'm from India and it's not really a good place for learning and education. I'm an IT student, I've been studying various programming languages like Java, C, C++, VB etc. And its my final year in ...
30
votes
10answers
1k views
Difference between Idiom and Design Pattern?
What is the difference between idiom and design-pattern? It seems that these terminologies overlap somewhere; where exactly, I don't know. Are they interchangeable? When should I use what?
Here is a ...