Most Popular
1500 questions
81
votes
5 answers
Why does git pull perform a merge instead of a rebase by default?
Consider the following situation:
You have a clone of a git repository
You have some local commits (commits that have not yet been pushed anywhere)
The remote repository has new commits that you have not yet reconciled
So something like this:
If…
jpmc26
- 5,409
81
votes
2 answers
What are the key points of Code Complete?
I have heard a lot of people mention Code Complete as a book worthwhile reading. Unfortunately, I am so busy that I don't have time to read it, so can anyone tell me what the key points of the book are?
Casebash
- 7,662
81
votes
12 answers
How to respond to a rude bug report?
I just received a quite rude bug report. The user basically says that we're doing it all wrong using capital letters here and there, although he's in fact just pointing at one bug.
On one hand, I care a lot about our users and want to maintain a…
aioobe
- 937
81
votes
11 answers
Why is base-for-all-objects discouraged in C++
Stroustrup says "Don’t immediately invent a unique base for all of your classes (an Object class). Typically, you can do better without it for many/most classes." (The C++ Programming Language Fourth Edition, Sec 1.3.4)
Why is a…
Matthew James Briggs
- 1,757
81
votes
7 answers
Code First vs. Database First
When I design and create the software I work on, I typically design and create the back-end SQL tables first and then move on to the actual programming. The project I'm currently working on has me down right puzzled though. This is probably due to a…
RubberDuck
- 8,961
- 5
- 35
- 44
81
votes
8 answers
Is modifying an incoming parameter an antipattern?
I am programming in Java, and I always make converters sort of like this:
public OtherObject MyObject2OtherObject(MyObject mo){
... Do the conversion
return otherObject;
}
At the new workplace the pattern is:
public void…
CsBalazsHungary
- 1,409
81
votes
5 answers
How do you put a price on your source code?
I was asked to sell the source code (along with existing users) of small utility app I created years ago. I've investigated how to put a price on the source code but so far haven't come up with a good solution.
I've searched the net, but haven't…
deviDave
- 2,943
81
votes
12 answers
How do you interview someone with more experience than you?
The company I'm working for is looking to hire a senior developer with more experience than me, and they expect me to do the technical part of the interview. I've only been programming a few years and am not sure I have the knowledge needed to…
Rachel
- 24,029
81
votes
4 answers
What is a thread pool?
How would one implement a threadpool? I've been reading on wikipedia for "threadpool" but I still can't figure out what one should do to solve this question (possibly because I didn't quite understand what a threadpool is in simple terms).
Can…
John Smith
- 1,729
- 2
- 17
- 20
81
votes
17 answers
Coding Guideline : Methods shouldn't contain more than 7 statements?
I was looking through the AvSol Coding Guidelines for C# and I agree with nearly everything but I'm really curious to see what other think of one specific rule.
AV1500
Methods should not exceed 7 statements A method that requires more
than 7…
brian
- 3,569
81
votes
8 answers
Create my own database system
I need to learn how databases work in order to use them more efficiently, and my way of learning is by doing.
I want to create my own database system. I am not referring to creating a pseudo-database that would use query to parse files; this would…
Xananax
- 1,390
- 1
- 12
- 14
81
votes
18 answers
How do you learn Regular Expressions?
I'm not asking where to learn. I've found lots of good resources online, and books etc.
But how the heck do I tackle them. Where is the start of it, the end? When does the regexp processor advance on the text, when does it hold its stand and tries…
dumbBoy
- 11
80
votes
20 answers
Move on and look elsewhere, or confront the boss?
Possible Duplicate:
When do you know it's time to move on from your current job?
Problem: I had no prior experience when I interviewed, so I didn't know exactly what to ask them about the company when I was hired. I've spotted a number of warning…
Meister
- 199
80
votes
3 answers
Why do people pick the MIT license over BSD, if BSD's "non-endorsement clause" is a good idea?
According to this question and it's replies
What is the purpose of the "non-endorsement clause" in the New BSD license?
it seems smarter to pick the BSD license over the MIT, to prevent people using your name in an unwanted way.
If that is the case,…
corgrath
- 1,327
- 2
- 10
- 11
80
votes
9 answers
Am I a bad programmer, or does everyone have this feeling?
I tend to understand things rather quickly, but after 2 years of programming in Python I still stumble across things (like Flask today) that amaze me. I look at the code, have no idea what's going on, and then feel very humbled. I feel like an…
orokusaki
- 1,013