Top new questions this week:
|
Many web frameworks, such as Flask or Django use SQLite as their default database. SQLite is compelling because it's included in python, and administrative overhead is pretty low.
However, most high …
|
I've recently started looking at Android development. This has brought me back into the work of Java software development. The last time I worked with Java, I'll admit, I didn't understand OOP …
|
Should a class know about its subclasses? Should a class do something that is specific for a given subclass for instance?
My instincts tells me that is a bad design, it seems like an anti-pattern of …
|
I currently manage a library which has a lot of public usage, and I had a question about semantic versioning. I want to refactor one fairly important part of the library which is implemented …
|
In A Critique of Common Lisp written by Rodney A. Brooks and Richard P. Gabriel from Stanford in 1984, some design decisions retained by the normalizing committee of Common Lisp are discussed. While …
|
I was asked about immutable strings in Java. I was tasked with writing a function that concatenated a number of "a"s to a string.
What I wrote:
public String foo(int n) {
String s = "";
for …
|
I have been reading up on dynamic programming lately. Would like to hear from someone who started from scratch and now is pretty good at identifying and solving DP problems. I am struggling in …
|
Greatest hits from previous weeks:
|
Which is better/more generally accepted?
This:
if(condition)
{
statement;
}
Or:
if(condition)
statement;
I tend to prefer the first one, because I think it makes it easier to tell what …
|
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?
|
I've been working with some basic extreme programming concepts for the last two weeks, for a small scale, for-profit, multiplayer, arcade game. I've spent a week developing user stories and …
|
I am working on a problem similar to the assembly line scheduling by dynamic programming.The issue is that unlike the classic problem where we have predefined stations now I only have information …
|
I've been thinking for a while about reasons that prevent a lot of programmers — myself first of all — from writing clean, modular and expressive code while developing, for example, CocoaTouch apps.
…
|