Most Popular
1500 questions
63
votes
5 answers
When to use primitive vs class in Java?
I see that Java has Boolean (class) vs boolean (primitive). Likewise, there's an Integer (class) vs int (primitive). What's the best practice on when to use the primitive version vs the class? Should I basically always be using the class version…

Casey Patton
- 5,211
- 7
- 33
- 41
63
votes
1 answer
The written roles of software development manager
We all know what a software development manager does, but I'm afraid that we only know it vaguely. We think we know what he is doing, but to exactly list down what is the job scope is a bit hard.
In your opinion, what are the roles of a software…

Graviton
- 4,013
- 9
- 37
- 50
63
votes
5 answers
Why is reverse debugging rarely used?
gdb implemented support for reverse debugging in 2009 (with gdb 7.0). I never heard about it until 2012. Now I find it extremely useful for certain types of debugging problems. I wished that I heard of it before.
Correct me if I'm wrong but my…

Philipp Claßen
- 1,387
- 1
- 12
- 26
63
votes
12 answers
What kind of problems does MapReduce solve?
I have been reading about MapReduce for a while -- but what I can't understand is how someone would make a decision to use (or not use) MapReduce.
I mean, what are the problem patterns that signal that MapReduce could be used.

treecoder
- 9,475
- 10
- 47
- 84
63
votes
11 answers
How can I find own replacement when the company wants someone far less experienced?
I told the company I work for that I want to phase myself out, but that I would stick around for a couple months before applying anywhere to help in the recruitment of my replacement. I offered this because I am the sole web developer and I didn't…

JD Isaacks
- 8,924
- 12
- 47
- 54
63
votes
4 answers
What are combinators and how are they applied to programming projects? (practical explanation)
What are combinators?
I'm looking for:
a practical explanation
examples of how they are used
examples of how combinators improve the quality/generality of code
I'm not looking for:
explanations of combinators that don't help me get work done…
user39685
63
votes
6 answers
Is object pooling a deprecated technique?
I am very familiar with the concept of object pooling and I always try to use it as much as possible.
Additionally I always thought that object pooling is the standard norm as I have observed that Java itself as well as the other frameworks use…

user10326
- 1,834
- 3
- 17
- 18
63
votes
8 answers
Prefer class members or passing arguments between internal methods?
Suppose within the private portion of a class there is a value which is utilized by multiple private methods. Do people prefer having this defined as a member variable for the class or passing it as an argument to each of the methods - and why?
On…

geoffjentry
- 870
- 1
- 6
- 8
63
votes
9 answers
Should a developer also act as a tester?
We're a scrum team of 3 developers, 1 designer, the scrum master, and the product owner. However, we don't have official tester in our team. A problem that is always with us, is that, testing the application and passing those tests and removing bugs…

Saeed Neamati
- 18,142
- 23
- 87
- 125
62
votes
3 answers
What exactly do I need to do if I use a LGPL licensed library?
I have read this questions and answers, but I still don't understand what exactly do I need to do if I dynamically link with a library that uses a LGPL license (the SDL library in my case).
If I understand LGPL text correctly, I need to somehow…

BЈовић
- 13,981
- 8
- 61
- 81
62
votes
29 answers
Why does a computer science degree matter to a professional programmer?
I have a degree in computer science. It has been great for opening doors, getting a job. As far as helping me in the professional field of C# .NET programming (the most popular platform and language in the area I work if not the entire united…

P.Brian.Mackey
- 11,123
- 8
- 48
- 87
62
votes
11 answers
Does anyone prefer proportional fonts?
I was reading the wikipedia article on programming style and noticed something in an argument against vertically aligned code:
Reliance on mono-spaced font; tabular
formatting assumes that the editor
uses a fixed-width font. Most modern
code…

Jason Baker
- 9,625
- 8
- 44
- 67
62
votes
15 answers
Dealing with frustration when things don't work
You ever try to implement something simple but for some strange reason it doesn't work.
So you try a possible solution but then something else doesn't work. You keep trying different workarounds but every time something different isn't working.…

JD Isaacks
- 8,924
- 12
- 47
- 54
62
votes
9 answers
Why do "checked exceptions", i.e., "value-or-error return values", work well in Rust and Go but not in Java?
Java has "checked exceptions", which force the caller of the method to either handle an exception or to rethrow it, e.g.
// requires ParseException to be handled or rethrown
int i = NumberFormat.getIntegerInstance().parse("42").intValue();
Other,…

Heinzi
- 9,646
- 3
- 46
- 59
62
votes
3 answers
&& and || are not logical but conditional operators?
I am a bit confused by the MSDN C# documentation which states that & and | are logical operators and that && and || are conditional operators.
I keep calling &&, || and ! logical operators, so I am wrong?

John V
- 4,898
- 10
- 47
- 73