Skip to main content
161 votes
Accepted

Time difference between developing with unit tests vs no tests

The later you test, the more it costs to write tests. The longer a bug lives, the more expensive it is to fix. The law of diminishing returns ensures you can test yourself into oblivion trying to ...
candied_orange's user avatar
118 votes

Time difference between developing with unit tests vs no tests

I agree with the rest of the answers but to answer the what is the time difference question directly. Roy Osherove in his book The Art of Unit Testing, Second Edition page 200 did a case study of ...
Aki K's user avatar
  • 1,143
94 votes

Should developers fix bugs in their own code?

This seems more a failure of your code review process than who is fixing the bugs. If the anti-patterns in the code and faulty assumptions that don’t get reworked aren't getting called out and ...
Philip Kendall's user avatar
89 votes
Accepted

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

Once we were halfway the project, the PM stated we had to use third party message queue capabilities instead of threads and had to implement load balancing This isn't an appropriate thing for a PM to ...
John Wu's user avatar
  • 26.6k
65 votes

Are there known valid uses of SLOC to measure productivity?

The argument of the senior architect could mean two things. It may mean that an average developer in the company produces more lines of code when using static languages than when using dynamic ones. ...
Arseni Mourzenko's user avatar
58 votes
Accepted

How much time should you spend planning a commit before writing code?

Firstly: when coding for a living, especially as a junior in a team, typically not much design work is needed. This is because you'll be working in an existing code base. Chances are, you'll often be ...
tjalling's user avatar
  • 684
46 votes
Accepted

I am spending more time installing software than coding. Why?

What am I doing wrong? You're trying to develop in an environment where you're also the sysadmin, devops and the local technical product owner for every pip package you use - and you're assuming that ...
Useless's user avatar
  • 12.6k
45 votes

How much time should you spend planning a commit before writing code?

I would like to change your perspective for a moment. Commits are not something you plan. Commits, especially in the early stages of figuring out a problem, are little more than save-points along a ...
Greg Burghardt's user avatar
40 votes

Should developers fix bugs in their own code?

For recent bugs, I agree with the other answers. Most of those are sorted out in the pull request process and it's a matter of pride and familiarity to fix your own bugs. However, there are scaling ...
Karl Bielefeldt's user avatar
32 votes

Time difference between developing with unit tests vs no tests

There is only one study I know of which studied this in a "real-world setting": Realizing quality improvement through test driven development: results and experiences of four industrial teams. It is ...
Jörg W Mittag's user avatar
30 votes

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

What would be stupid is to let yourself get death marched. What you are describing is that you've lost critical feel. There is no sense of control and no clear way back to it. The last thing you ...
candied_orange's user avatar
28 votes

How much time should you spend planning a commit before writing code?

You mention live stream YouTubers as a standard to live up to, as if they would make up stuff on the spot, type it in and are done. That is not how it goes. They planned and practiced too beforehand ...
Martin Maat's user avatar
  • 18.5k
26 votes

Are there known valid uses of SLOC to measure productivity?

About productivity and SLOC The problem with SLOC The problem with the SLOC metric is that it measures an approximation of the quantity of code written, without taking into account: the quality of ...
Christophe's user avatar
  • 78.7k
24 votes

Time difference between developing with unit tests vs no tests

Done well, developing with unit tests can be faster even without considering the benefits of extras bugs being caught. The fact is, I'm not a good enough coder to simply have my code work as soon as ...
Winston Ewert's user avatar
23 votes

Time difference between developing with unit tests vs no tests

Despite there being a lot of answers already, they are somewhat repetitive and I would like to take a different tack. Unit tests are valuable, if and only if, they increase business value. Testing for ...
Jared Smith's user avatar
  • 1,935
21 votes

Should developers fix bugs in their own code?

First, to make this formally an answer, here are some possible reasons why the developer should fix their own code: They wrote it, they understand it best, they need the least time to fix it. They ...
Hans-Martin Mosner's user avatar
18 votes
Accepted

How to keep your productivity level high when people keep changing requirements at the last minute?

The idea that requirements are fixed and that the code you are writing will not have to be changed is extremely problematic. In reality, requirements are never fixed. Whether you need to change it ...
JimmyJames's user avatar
  • 27.8k
15 votes

Is daily commit and push necessary for managers and supervisors to check my progress and productivity?

It should not be necessary for you to commit daily just to assure your managers that you are working. If management can't tell how you're doing without looking at your commit history, then I would ...
FrustratedWithFormsDesigner's user avatar
14 votes
Accepted

How do I feel more productive after programming?

Assimilating the job of a programmer to coding is reductive. Your goal is not to write code, but to solve a given problem—usually through code, but not only code. Once you have a set of requirements, ...
Arseni Mourzenko's user avatar
11 votes
Accepted

Significant difference between functional and procedural collection handling

least LOC isn't really what I'm looking for here But, why? Least LOC is what you should be looking for here. While lines-of-code does not make for a truly reliable maintainability measure, you will ...
Vector Zita's user avatar
  • 2,472
10 votes

Time difference between developing with unit tests vs no tests

It depends on the person, as well as the complexity and shape of the code you're working with. For me, on most projects, writing unit tests means I get the work done about 25% faster. Yes, even ...
Telastyn's user avatar
  • 109k
10 votes

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

This should really be on workplace.stackexchange.com, because the problem is not really a software development question, but about workplace relationships. If you are sure that your simple approach ...
gnasher729's user avatar
10 votes

How much time should you spend planning a commit before writing code?

At the moment I'm spending more time planning out a commit than actually writing code No one cares how you spent your time. They care about what you made (if you're lucky). This is making me unhappy,...
candied_orange's user avatar
9 votes
Accepted

What's the name of the phenomenon where the software architecture evolves to mirror the office layout?

What you are describing sounds similar to Conway's Law, but it doesn't refer to the physical layout of the office, but rather the organizational structure of the team(s) that are building the software:...
Thomas Owens's user avatar
  • 83.4k
9 votes

Should developers fix bugs in their own code?

You wrote I see a lot of anti-patterns in the code and faulty assumptions that don’t get reworked but I challenge your idea of that being caused by "developers fixing their own bugs". When ...
Doc Brown's user avatar
  • 210k
8 votes

In which programming paradigm can't code reuse be (easily) achieved?

For my own sanity, I've shortened "paradigms that promote code reuse" to "paradigms". In scope of this answer, all mentioned paradigms are paradigms that promote code reuse. What ...
Flater's user avatar
  • 52.8k
7 votes

Are there known valid uses of SLOC to measure productivity?

Here is a counterexample for your senior architect: Suppose I want to write a hierarchy of three classes, two of which derive from the third, implementing some virtual functions that the base class ...
cmaster - reinstate monica's user avatar
7 votes

Are there known valid uses of SLOC to measure productivity?

I'll be the contrarian. We track SLoC at our job (although we don't use it directly in staffing decisions), and I've had people argue what most people are saying in their answers. In effect, "LoC ...
Conor Mancone's user avatar
7 votes

How much time should you spend planning a commit before writing code?

If I don't do this amount of planning, I just end up writing code that will have to be undone before I commit, and this just messes up my project, because don't like wasting any code I've already ...
Ray's user avatar
  • 209
7 votes

How much time should you spend planning a commit before writing code?

You're discovering the difference between "programming" and "development". Developing an application is so much more than churning out some code. All the different little units of ...
James D's user avatar
  • 413

Only top scored, non community-wiki answers of a minimum length are eligible