Most Popular

1500 questions
52
votes
10 answers

My project manager does not accept carry-over in Scrum - is that normal?

I am a developer working on a new mobile app for Android and iOS with a big backend component. We have been in three sprints of this project, and we use Scrum with all of its ceremonies (refinement, planning, dailies, retrospectives, etc.). In two…
MrAn3
  • 645
  • 1
  • 5
  • 5
52
votes
10 answers

What should be the http status code for "Service not available in your area" error?

Our service is in 5 cities right now. If someone tries to call our service API from any other city, we want to throw this error Service not available in your area. The question is, what is the appropriate http code would be for this error? 503:…
Shaharyar
  • 865
  • 2
  • 7
  • 12
52
votes
7 answers

PM opting for an overly-complex setup which nobody has experience with

Recently I started a project which didn't seem too hard to make, the concept was a fairly simple application that had to accept input every now and then (maybe 10x a day), and try to perform some operations on them and collect all results at the…
DeleteLater
  • 401
  • 4
  • 6
52
votes
8 answers

What happens to garbage in C++?

Java has an automatic GC that once in a while Stops The World, but takes care of garbage on a heap. Now C/C++ applications don't have these STW freezes, their memory usage doesn't grow infinitely either. How is this behavior achieved? How are the…
Ju Shua
  • 713
  • 1
  • 5
  • 8
52
votes
8 answers

What are the drawbacks of making a multi-threaded JavaScript runtime implementation?

I've been working on a multi-threaded JavaScript runtime implementation for the past week. I have a proof of concept made in C++ using JavaScriptCore and boost. The architecture is simple: when the runtime finishes evaluating the main script it…
voodooattack
  • 523
  • 1
  • 4
  • 9
52
votes
3 answers

How to solve circular dependency?

I have three classes that are circular dependant to each other: TestExecuter execute requests of TestScenario and save a report file using ReportGenerator class. So: TestExecuter depends on ReportGenerator to generate the report ReportGenerator…
52
votes
7 answers

What is the preferred way to store application configurations?

Most of the time, I store development application config in root directory of the project, like this: app |-- config.json But that doesn't seem to be the best approach, since this config ends up being stored in version control system - possibly…
Rogach
  • 719
  • 1
  • 6
  • 7
52
votes
9 answers

Bad sign if nobody can comprehend one's code?

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the coder is simply not cut-out for professional…
Coder Guy
  • 727
  • 1
  • 5
  • 7
52
votes
11 answers

How do I avoid cascading refactorings?

I've got a project. In this project I wished to refactor it to add a feature, and I refactored the project to add the feature. The problem is that when I was done, it turned out that I needed to make a minor interface change to accommodate it. So I…
DeadMG
  • 36,794
  • 8
  • 70
  • 139
52
votes
4 answers

Why shouldn't a method throw multiple types of checked exceptions?

We use SonarQube to analyse our Java code and it has this rule (set to critical): Public methods should throw at most one checked exception Using checked exceptions forces method callers to deal with errors, either by propagating them or by…
sdoca
  • 649
  • 1
  • 5
  • 9
52
votes
5 answers

IOC Containers break OOP Principles

What is the purpose of IOC Containers? The combined reasons for it can be simplified to the following: When using OOP/SOLID Development principles, Dependency Injection gets messy. Either you have the top-level entry points managing dependencies…
Suamere
  • 1,098
  • 1
  • 11
  • 22
52
votes
6 answers

How would I implement a "self-destruct" feature into the free trial version of my software?

There is the ongoing argument of free trial versus a freemium model (that is, a free-for-life version of their software with restricted and/or stripped down features) for allowing potential customers and users to test run their product. Upon my…
theGreenCabbage
  • 726
  • 1
  • 7
  • 12
52
votes
28 answers

What is your favorite whiteboard interview problem?

Just as the title says, what is your favorite whiteboard interview problem, and why has it proven effective for you? Junior, senior, Java, C, Javascript, PHP, SQL, pseudo-code, etc.
Nicole
  • 28,111
  • 12
  • 95
  • 143
52
votes
14 answers

Would learning any natural language in particular further your programming career?

It seems apparent that English is the dominant international language for programming based on previous P.SE questions (though a highly upvoted comment correctly points out that asking a question like that on a predominantly English site will skew…
Anonymous
  • 3,546
  • 2
  • 25
  • 26
52
votes
19 answers

Forcing people to read and understand code instead of using comments, function summaries and debuggers?

I am a young programmer (finished computer science university but still under a year of working in the industry) and I recently got a job working on some C code for a decent size web service. Looking at the code the only places I saw comments were…
ThePiachu
  • 288
  • 3
  • 7
1 2 3
99
100