Top new questions this week:
|
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 …
|
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 …
|
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 …
|
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 …
|
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, …
|
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 …
|
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 …
|
Greatest hits from previous weeks:
|
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 …
|
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, …
|
Can you answer these?
|
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 …
|
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. …
|
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 * …
|