Most Popular

1500 questions
53
votes
27 answers

What is the most egregious waste of money you have seen, and what did you do about it?

Often we as programmers see large organisations wasting huge sums of money on bloated and inefficient solutions to problems. This pains me greatly because I like organisations to benefit from best of breed solutions. However, my abilities as a…
Gary
  • 24,450
53
votes
6 answers

"A good programmer can be as 10X times more productive than a mediocre one"

I had read an interview with a great programmer (it is not in English) and in it he said that "a great programmer can be as 10 times as good as a mediocre one" giving reason for why good programmers are very well paid and why programming companies…
Random42
  • 10,440
53
votes
12 answers

How to take a step back and look at code with fresh eyes?

I've spent the last year as a one-man team developing a rich-client application (35,000+ LoC, for what it's worth). It's currently stable and in production. However, I know that my skills were rusty at the beginning of the project, so without a…
BenCole
  • 665
53
votes
16 answers

Should I take care of race conditions which almost certainly has no chance of occuring?

Let's consider something like a GUI application where main thread is updating the UI almost instantaneously, and some other thread is polling data over the network or something that is guaranteed to take 5-10 seconds to finish the job. I've received…
TtT23
  • 1,553
53
votes
6 answers

Pros and Cons of holding all the business logic in stored procedures in web application

In some organization I worked for web applications are developed basing all the business logic in Database stored procedures. For example, use html for view and servlet as controllers to divert the client request to appropriate Database stored…
droidsites
  • 1,027
53
votes
3 answers

What is the benefit of writing to a temp location, And then copying it to the intended destination?

I am writing an application that works with satellite images, and my boss asked me to look at some of the commercial applications, and see how they behave. I found a strange behavior and then as I was looking, I found it in other standard…
53
votes
5 answers

Where should you put constants and why?

In our mostly large applications, we usually have a only few locations for "constants": One class for GUI and internal contstants (Tab Page titles, Group Box titles, calculation factors, enumerations) One class for database tables and columns (this…
Tim Meyer
  • 853
  • 1
  • 8
  • 14
53
votes
9 answers

What is enterprise software, exactly?

I don't understand the difference between "normal" software and enterprise software. Even after reading these... "Enterprise Software" on Wikipedia "Enterprise Software Is Sexy Again" on Techcrunch "The Great Enterprise Software Swindle" on…
treecoder
  • 9,495
53
votes
4 answers

What is the difference between building and compiling ?

What's the difference between Building and Compiling.
Vishwas
  • 541
53
votes
20 answers

Does Object Oriented Programming Really Model The Real World?

I've seen it commonly repeated the object-oriented programming is based on modeling the real world but is it? It seems to me that is not true of anything outside of the business layer. My GUI classes/data access classes aren't modeling anything in…
Winston Ewert
  • 24,862
53
votes
10 answers

How to correct a junior, but encourage him to think for himself?

I am the lead of a small team where everyone has less than a year of software development experience. I wouldn't by any means call myself a software guru, but I have learned a few things in the few years that I've been writing software. When we do…
Phil
  • 3,660
  • 27
  • 30
53
votes
11 answers

Get 100 highest numbers from an infinite list

One of my friend was asked this interview question - "There is a constant flow of numbers coming in from some infinite list of numbers out of which you need to maintain a datastructure as to return the top 100 highest numbers at any given point…
53
votes
5 answers

Organizing Git repositories with common nested sub-modules

I'm a big fan of Git sub-modules. I like to be able to track a dependency along with its version, so that you can roll-back to a previous version of your project and have the corresponding version of the dependency to build safely and cleanly. …
André Caron
  • 671
  • 1
  • 5
  • 8
53
votes
3 answers

Why are exception specifications bad?

Back in school some 10+ years ago, they were teaching you to use exception specifiers. Since my background is as one of them Torvaldish C programmers who stubbornly avoids C++ unless forced to, I only end up in C++ sporadically, and when I do I…
user29079
53
votes
2 answers

How should C++ Unit Test code be organized for maximum Unit Test efficiency?

This question is not about Unit Testing Frameworks. This question is not about writing Unit Tests. This question is about where to put the UT code written and how/when/where to compile and run it. In Working Effectively with Legacy Code, Michael…
Martin Ba
  • 7,608
1 2 3
99
100