Most Popular
1500 questions
69
votes
1 answer
Java: "Heap pollution"
A "Heap Pollution" as in Non-Reifiable Types (The Java™ Tutorials > Learning the Java Language > Generics (Updated))
Why is it called that way?
user18404
69
votes
4 answers
Which algorithms/data structures should I "recognize" and know by name?
I'd like to consider myself a fairly experienced programmer. I've been programming for over 5 years now. My weak point though is terminology. I'm self-taught, so while I know how to program, I don't know some of the more formal aspects of computer…
Earlz
- 22,848
69
votes
5 answers
What's the difference between implementing an Interface explicitly or implicitly?
In Visual Studio I can right-click on an interface and choose to Implement Interface, or Implement Interface Explicitly.
public class Test : ITest
{
public string Id // Generated by Implement Interface
{
get { throw new…
Rachel
- 24,029
69
votes
7 answers
The Joel Test's equivalent for measuring a programmer
I understand that to measure a project or code, we can use The Joel Test, but is there any simple standard test (like The Joel Test) that is able to measure and filter how good a programmer is?
My plan is to have this test as a quick filter first…
Rudy
- 1,109
69
votes
16 answers
Should organizations penalize developers for the amount of defect reports filed against code they worked on?
Should organizations penalize developers for defect reports filed against their work products?
I was having a discussion with my friend where he asks if a manager taking the number of defects filed against a developer is justified. My take is no,…
zengr
- 1,207
68
votes
9 answers
Can Agile/Scrum be used by 1 or 2 developers?
Everything I've been reading and researching up to this point describes how Agile/Scrum works great with teams of about 4 to 6 members, maybe even more.
In my current shop, we have about 8 developers or so, but given the nature of the volume of…
Dillie-O
- 1,085
- 1
- 9
- 11
68
votes
22 answers
What do you do when you encounter an idiotic interview question?
I was interviewing with a "too proud of my java skills"-looking person.
He asked me "What is your knowledge on Java IO classes.. say.. hash maps?"
He asked me to write a piece of java code on paper - instantiate a class and call one of the…
user19224
68
votes
18 answers
How to tell your boss that his programming style is really bad?
I'm a student and in my spare time I'm working for a big enterprise as Java developer. The job is good, but the problem is, my boss writes very strange code. I don't want to complain, but some issues are in my opinion really strange. For…
RoflcoptrException
- 2,045
- 2
- 17
- 18
68
votes
6 answers
In microservice, is it single database or single database instance for each service?
I understand that a each service in a microservice architecture should have its own database. However, by having its own database, does it actually mean simply having another database within the same database instance or literally having another…
xenon
- 887
68
votes
12 answers
Prevent deprecated code from compiling after reaching a deadline
In my team we have been cleaning a lot of old stuff in a big monolithic project (whole classes, methods, etc.).
During that cleaning tasks I was wondering if there is a kind of annotation or library fancier than the usual @Deprecated. This…
Arcones
- 797
68
votes
9 answers
How do you develop software without acceptance criteria?
How do you collaboratively develop software in a team of 4-5 developers without acceptance criteria, without knowing what the testers will be testing for and with multiple(2-3) people acting as product owner.
All we have is a sketchy 'spec' with…
user1450877
- 1,050
68
votes
10 answers
Why do languages require parenthesis around expressions when used with "if" and "while"?
Languages like C, Java, and C++ all require parenthesis around an entire expression when used in an if, while, or switch.
if (true) {
// Do something
}
as opposed to
if true {
// Do something
}
This seems odd to me because the parenthesis…
Velovix
- 773
68
votes
9 answers
What is the meaning of the 90/10 rule of program optimization?
According to Wikipedia, the 90 / 10 rule of program optimization states that “90% of a program execution time is spent in executing 10% of the code” (see the second paragraph here).
I really don't understand this. What exactly does this mean? How…
Rakshith Ravi
- 765
68
votes
10 answers
Syntax Design - Why use parentheses when no arguments are passed?
In many languages, the syntax function_name(arg1, arg2, ...) is used to call a function. When we want to call the function without any arguments, we must do function_name().
I find it strange that a compiler or interpreter would require () in order…
David Refoua
- 1,111
68
votes
1 answer
What is a realistic, real-world, maximum size for a SQLite database?
According to this article on Appropriate Uses For SQLite it says that, while SQLite is limited to 140 terabytes, a client/server RDBMS may work better:
An SQLite database is limited in size to 140 terabytes (247 bytes, 128 tibibytes). And even if…
Ben Harrison
- 1,233