Programmers Weekly Newsletter
Programmers Weekly Newsletter

Top new questions this week:

What should I do when I've already waited too long between commits?

I was naughty... too much "cowboy programming". Now, here I am with an enormous commit. Yes, I should have been committing all along, but it's too late now. What is better? Do one very large commit …

version-control development-process scm cowboy-coding  
asked by durron597 58 votes
answered by Karl Bielefeldt 20 votes

How to write camel case for words like "phonenumber", "motorcycle", "wavelength", etc

I am having a problem in understanding how to apply camelCase syntax to some of my variable names. For example, how should I correctly write a word like "phonenumber" in camel case? Is it …

notation camelcase  
asked by 909 Niklas 43 votes
answered by oezi 119 votes

Do we need Logging when doing TDD?

When doing the Red, Green & Refactor cycle we should always write the minimum code to pass the test. This is the way I have been taught about TDD and the way almost all books describe the process. …

design object-oriented unit-testing tdd logging  
asked by Songo 32 votes
answered by FMJaguar 44 votes

What exactly is procedural programming? How exactly is it different from OOP? Is it the same as functional programming?

I am programming in Java in a very object-oriented (OO) style. OOP comes very intuitively to me, but I have very little knowledge about other kinds of programming. What exactly is procedural …

object-oriented procedural  
asked by Prog 25 votes
answered by Doval 56 votes

Why does the boolean type in C++ support `++` but not `--`?

Why does the operator -- not exist for bool whereas it does for operator ++? I tried in C++, and I do not know if my question apply to another language. I will glad to know also. I know, I can use …

c++ history operators boolean  
asked by aloisdg 14 votes
answered by MichaelT 21 votes

Programs that claim they are not "multi-core" friendly

You see this phrase or similar kicked around from time to time, generally referring to a program that claims they were not designed to take full advantage of multi-core processors. This is common …

multithreading concurrency  
asked by SnakeDoc 13 votes
answered by Berin Loritsch 21 votes

Scrum: how to integrate work done by an overachieving developer out of band?

We have a "typical" SCRUM team and we commit to work for a sprint, and also maintain a backlog. Recently we have run into a problem of trying to integrate/handle the work of an overachieving developer …

agile scrum team  
asked by Matt 10 votes
answered by SomeKittens 12 votes

Greatest hits from previous weeks:

So Singletons are bad, then what?

There has been a lot of discussion lately about the problems with using (and overusing) Singletons. I've been one of those people earlier in my career too. I can see what the problem is now, and yet, …

design-patterns dependency-injection anti-patterns caching  
asked by Bobby Tables 198 votes
answered by Aaronaught 369 votes

How much freedom should a programmer have in choosing a language and framework?

I started working at a company that is primarily a C# oriented. We have a few people who like Java and JRuby, but a majority of programmers here like C#. I was hired because I have a lot of experience …

java c# web-development ruby-on-rails frameworks  
asked by Spencer 46 votes
answered by FrustratedWithFormsDesigner 84 votes

Can you answer these?

Why do some embedded projects shun cross-compiling?

As I've been getting into embedded systems I've noticed that some projects (Arch Arm and OpenBSD for example) frown upon cross compiling. What is the reasoning for this? Is a cross-compiled binary …

compilers embedded linux-kernel bsd drivers  
asked by hyphen this 4 votes

Database version management on mobile apps

I am about to start building a mobile (iOS/Android) app that uses a local database (probably sqlite). Since this is my first "real" mobile app, I am wondering what the standard approaches are to …

database mobile versioning  
asked by me-- 1 vote

Reducing Valgrind Findings (uninitialised value)?

I'm trying to run some code though Valgrind. The code depends on OpenSSL, and OpenSSL is making Valgrind useless due to uninitialised values. I know where the use lies in OpenSSL's PRNG, but I'm …

code-quality initialization  
asked by noloader 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