Programmers Weekly Newsletter
Programmers Weekly Newsletter

Top new questions this week:

Why not expose a primary key

In my education I have been told that it is a flawed idea to expose actual primary keys (not only DB keys, but all primary accessors) to the user. I always thought it to be a security problem …

security theory software-design accessibility  
asked by Angelo Neuschitzer 19 votes
answered by Angelo Neuschitzer 0 votes

How do I create an environment where fixing tests is seen as a priority?

I am a software engineer at a medium sized company. We have a fairly robust testing platform running on TeamCity. It does unit tests on every checkin, and a daily unit test/BVT run. The problem is …

testing unit-testing tdd culture leadership  
asked by Pheonixblade9 14 votes
answered by Aaronaught 18 votes

Why do so many websites prefer "git rebase" over "git merge"?

One of the advantages of using a DVCS is the edit-commit-merge workflow (over edit-merge-commit often enforced by a CVCS). Allowing each unique change to be recorded in the repository independent of …

version-control git dvcs merging  
asked by Jace Browning 13 votes
answered by Karl Bielefeldt 18 votes

What is the benefit of switching on Strings in Java 7?

When I was starting to programme in Java, the fact that switch statements didn't take strings frustrated me. Then on using Enums, I realised the benefits that you get with them rather than passing …

java design switch-statement  
asked by anotherdave 12 votes
answered by gnat 6 votes

Is "If a method is re-used without changes, put the method in a base class, else create an interface" a good rule-of-thumb?

A colleague of mine came up with a rule-of-thumb for choosing between creating a base class or an interface. He says: Imagine every new method that you are about to implement. For each of them, …

object-oriented interfaces inheritance  
asked by exizt 10 votes
answered by Simon 10 votes

The Inglish parser (for The Hobbit 1982)

Was fascinated to read about the text adventure game The Hobbit which featured an incredibly robust parser called "Inglish": ...Inglish allowed one to type advanced sentences such as "ask Gandalf …

history game-development parsing  
asked by Jordan Reiter 9 votes
answered by ProphetV 4 votes

What's the best Git workflow for working with an open source project with employer-specific changes?

At my current employer, we are using an open-source project hosted on Github as a component of our application. I have been working on this project to both add some features that we need and to …

git  
asked by Mason 7 votes
answered by Joe 0 votes

Greatest hits from previous weeks:

If immutable objects are good, why do people keep creating mutable objects?

If immutable objects¹ are good, simple and offer benefits in concurrent programming why do programmers keep creating mutable objects²? I have four years of experience in Java programming and as I see …

java object-oriented immutable  
asked by Vinoth Kumar 90 votes
answered by Péter Török 156 votes

If my team has low skill, should I lower the skill of my code?

For example, there is a common snippet in JS to get a default value: function f(x) { x = x || 'default_value'; } This kind of snippet is not easily understood by all the members of my team, …

teamwork skills social-skills  
asked by Florian Margaine 133 votes
answered by Benjamin Gruenbaum 111 votes

Can you answer these?

How to ensure that all the customers have the latest version of web application deployed on intranet?

How to update web application deployed on intranet? There is a Java Spring application that will be deployed on intranet of multiple customers. In case when there is a major update what should the …

web-applications software-updates  
asked by Limbo Exile 2 votes

Whats the difference between OOCSS and SMACCS?

What are the differences between OOCSS (Object Oriented CSS) and SMACSS (Scalable and Modular Architecture CSS)? I tried to find information on the differences, but did not find any good resources. …

object-oriented css scalability  
asked by Johan 2 votes

Understanding velocity update in Binary Particle Swarm Optimization

I am wondering how to interpret the velocity update in a Binary Particle Swarm Optimization (PSO). To recap the velocity update : V(t+1) = V(t) + c1 * r1 * (XlocalBest - X(t)) + c2 * …

optimization artificial-intelligence  
asked by user1511956 2 votes
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