Programmers Weekly Newsletter
Programmers Weekly Newsletter

Top new questions this week:

Why squash git commits for pull requests?

Why does every serious Github repo I do pull requests for want me to squash my commits into a single commit? I thought the git log was there so you could inspect all your history and see exactly what ...

git github etiquette pull-requests  
asked by hamstar 15 votes
answered by Michael Durrant 13 votes

Name/Fix for Production Code Whose Sole Purpose is to Facilitate Testing?

I recently did a code review on a block of code that looked something like this: public class MyClass { private ISomething mySomething; // ...Other variables omitted for brevity public ...

c# design-patterns anti-patterns  
asked by Michael 12 votes
answered by Doc Brown 26 votes

Why do functional programs have a correlation between compilation success and correctness?

I've been trending toward functional programming for 4 years now, ever since I first started working with LINQ. Recently, I wrote some pure functional C# code and I noticed, first hand, what I've ...

functional-programming  
asked by Aaron Anodide 8 votes
answered by jozefg 11 votes

Null Object Pattern and Input validation - copy real implementation or silently accept everything?

I have a WifiComponent in my Camera in my client application. It's responsible for handling the Wifi-related functionality of the Camera. The Camera represents a real world camera. This WifiComponent ...

design design-patterns null  
asked by Pimgd 7 votes
answered by Bart van Ingen Schenau 4 votes

How to do Test Driven Development

I have just 2+ years of experience in application development. In those two years my approach towards development was as following Analyze requirements Identity Core component/Objects, Required ...

programming-practices unit-testing tdd acceptance-testing  
asked by Yogi 6 votes
answered by Jörg W Mittag 7 votes

How to prevent others from using non-thread safe variables in a multithreading environment?

I have an application written in C++ that was originally single threaded, but, due to the increasing complexity of this project, I'll need to expand it to at least two or three threads. There are ...

c++ multithreading  
asked by Annonomus Penguin 4 votes
answered by SumGuy 1 vote

Who writes the technical 'user stories' in scrum

I know that a product owner should write a user story in scrum. A user story is describing a feature for the end user. But who describes what needs to be technically developed and how it needs to be ...

scrum  
asked by Lisa 4 votes
answered by IdeaHat 6 votes

Greatest hits from previous weeks:

Where did the notion of "one return only" come from?

I often talk to Java programmers who say "Don't put multiple return statements in the same method." When I ask them to tell me the reasons why, all I get is "The coding standard says so." or "It's ...

java coding-standards control-structures  
asked by FredOverflow 533 votes
answered by sbi 622 votes

Is there a benefit in compiling your code as you go along?

I recently had a job interview in which they gave me an hour to write some real code. It wasn't a huge amount, probably less than 100 lines. After about 45 minutes, I compiled, ran it, and got it to ...

programming-practices  
asked by CaptainCodeman 153 votes
answered by Oded 195 votes

Can you answer these?

Too many parameters to data processing class constructor

I have a conceptually simple application: data comes in as small encrypted packets, they decrypted and validated, some are stored in the database, some rules are applied, and a reply might be ...

object-oriented-design c++11  
asked by Ӎσᶎ 1 vote

Calling Web API vs adding reference to underlying dlls

This is more of an Architecture question, and I want to know all the possible pros and cons of the approach. In my org, we have an ASP.NET Application say "A", a Web API Project say "W", and ...

architecture web-applications asp.net asp.net-mvc-web-api  
asked by Guanxi 1 vote

Is there some way to mark which branch is the latest in subversion?

We're reworking our process with subversion at the moment, and one of the things we're doing is making branches for each release target in our demo environment so that you can test a release that has ...

development-process svn jenkins  
asked by Yamikuronue 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3