Skip to main content
22 votes

Wouldn't it be beneficial to write tests during code review?

This is a wonderful idea, with one caveat. Don't replace developer written tests with reviewer written tests. Have your reviewers look for corner cases and inputs that will break the code. In other ...
RubberDuck's user avatar
  • 8,961
18 votes

Wouldn't it be beneficial to write tests during code review?

I don't think the idea is entirely without merit - however, the main benefit of the TDD et al is that problems are found early. The developer is also best placed to spot which corner cases may require ...
Robbie Dee's user avatar
  • 9,815
16 votes
Accepted

How to maintain development,testing and production branches when the number of devs is around 50?

Your problems have existed for decades and people have realized that there isn't a good way to solve it without significantly altering their way of working. Thats where Trunk-based Development, ...
Euphoric's user avatar
  • 37.5k
13 votes
Accepted

How to modify workflow to allow multiple features per release?

Answering your questions below: Would the above proposed workflow be considered a standard workflow? There isn't a strict "standard" workflow that everyone adheres to, but your workflow is ...
Jimmy Kurian's user avatar
10 votes
Accepted

Should I have a 'dev' branch separate from a 'production' branch?

I feel that this is overkill for a single person working on a single web application. I would use tags to give version numbers to versions you release to the production server. The staging server can ...
RemcoGerlich's user avatar
  • 3,310
10 votes
Accepted

How do I keep two git projects in sync with each other?

but I want to separate out the library part into a separate repo, in preparation for eventually releasing it. Separating the library has a few implications. One of them is that others will use your ...
Bernhard's user avatar
  • 456
9 votes
Accepted

Best practices when designing a workflow engine using timers?

You can design your control flow the other way around to avoid multiple timers. When you send an email, store any context you need for a response. E.g. write this context to a database or file. ...
amon's user avatar
  • 134k
9 votes
Accepted

How to deal with getting stuck on solo projects

Theres no magic fix. Your only choice is to limit your exposure to these types of problem. This is obviously a general rule, but I think its especially true with solo projects. Where you really don't ...
Ewan's user avatar
  • 77k
9 votes

How to maintain development,testing and production branches when the number of devs is around 50?

Excellent answer by Euphoric here, but let me add another (additional) option, which also means a significant change to your current way of working: try to break down your product into individual, ...
Doc Brown's user avatar
  • 209k
8 votes
Accepted

One function to produce a couple or a function per item?

What you are asking for has not much to do with the particular problem of AST processing. The question you are asking is I have to design an API for a component, the API needs to provide different ...
Doc Brown's user avatar
  • 209k
7 votes
Accepted

Wouldn't it be beneficial to write tests during code review?

Wouldn't it be beneficial to write tests during code review, by the person doing the review? I have found that a good time to write tests is when you realize you need a test for a situation. Task ...
Aaron Hall's user avatar
  • 5,943
6 votes

Advantages of workflow based software development vs normal programming based software development

Following Doc Brown's advice, I've cobbled together an answer from the comments I had posted on this page. In my experience, the theoretical selling point behind workflow systems is that you don't ...
MetaFight's user avatar
  • 11.6k
6 votes

How to modify workflow to allow multiple features per release?

There's no such thing as a "standard workflow". There are some models that are commonly used - look at gitflow, GitHub flow, GitLab flow, oneflow, three-flow, and trunk-based development for ...
Thomas Owens's user avatar
  • 83.2k
6 votes

Can 1.0.1 be launched right after 1.1.0?

SemVer does not contain any rules in which chronological order one has to develop, publish or deploy different branches which are not part of the same sequence. When the end result is a major release ...
Doc Brown's user avatar
  • 209k
5 votes

Wouldn't it be beneficial to write tests during code review?

I agree with @RobbieDee's answer but I have a bit more to add. If you really like this idea, why not have the same people write the tests before the code as executable acceptance criteria for the ...
Encaitar's user avatar
  • 3,073
5 votes

Advantages of workflow based software development vs normal programming based software development

They're cool and they're new and (most importantly) some companies decided they were expensive and attracted a large amount of commission to anyone who sold them. Hence we went through a period where ...
gbjbaanb's user avatar
  • 48.6k
5 votes

Should I have a 'dev' branch separate from a 'production' branch?

Yes, this is a common workflow. The popular gitflow workflow has a separate development branch, for instance. Different teams uses different workflows. Which stems from different team compositions. ...
Lie Ryan's user avatar
  • 12.4k
5 votes

Best practice for git commit messages for specific modules

When you type git commit, and your editor pops up it will have a bunch of commented lines like: # modified: foo/bar/baz.py # modified: foo/bar/quix.py I've come to prefer simply uncommenting these ...
Pavel Penev's user avatar
5 votes
Accepted

Git workflow for flexible features

In the gitflow model this situation would be considered a hotfix, where the prescription is exactly the solution you proposed, assuming the merge doesn't pull in other changes from develop that aren't ...
Karl Bielefeldt's user avatar
5 votes
Accepted

When developing for C++ in Visual Studio, is there a quick way of being able to test your code as an exe and DLL?

Is there a good method of developing a C++ program and quickly being able to switch between compiling it as a DLL and exe? A better strategy will be: Keep the DLL as is. Create an EXE by linking ...
R Sahu's user avatar
  • 1,986
5 votes

How are first-time users signup requests authenticated?

Every web application has at least a few routes/endpoints that are accessible anonymously. If it isn't a sign-up page, it would be a home page telling prospective users what your application does and ...
Bart van Ingen Schenau's user avatar
5 votes

How to modify workflow to allow multiple features per release?

No, mainly because of : "4. Version bump in source code..." It's been said a million times; Version published apps, not source code. If you want to get the version into the source, then you ...
Ewan's user avatar
  • 77k
5 votes
Accepted

Where to tag releases to achieve "build-once, deploy-everywhere" using GitFlow?

I don't agree that tagging a merge commit means that you're building a different version of the code that was not tested. If you have commit x on your release branch and then merge that into your main ...
Thomas Owens's user avatar
  • 83.2k
5 votes
Accepted

Team Development Workflow

If you have multiple people working in parallel on related tasks, then those tasks should be integrated with each other as early and as often as practical. The aim of this integration is to find ...
Bart van Ingen Schenau's user avatar
4 votes

Rule of thumb for when to use a hotfix?

I'm not sure there is a rule of thumb to be honest. In the ideal situation, You are doing micro single feature releases, have a service based architecture with CI and automated testing. So rolling ...
Ewan's user avatar
  • 77k
4 votes

How to tackle a software architect that feels he's above a standard programmer?

What are the responsibilities of an architect? It will vary from company to company. Some do the high level design for the system. Some serve as translators from business to dev and vice versa. Some ...
Telastyn's user avatar
  • 109k
4 votes

Should I put docker commands in my package.json?

If it's an entirely private Node module, and it works for you, then go ahead. However, I'd say the "correct" answer is No because if you published the module (even to a private corporate npm repo), ...
Dan1701's user avatar
  • 3,108
4 votes
Accepted

How to convert multiple Git repositories for related code into proper branches/tags

Since these individual repositories were copied from the original, you can re-establish the relationship between the copies and the original. See this other answer for more details. Use git remote ...
BobDalgleish's user avatar
  • 4,714
4 votes
Accepted

Parnas' Paper on Modularization and Workflow Engines

Why is the "new" (in 1971) approach better ? The second approach, which is the one that Parnas recommends, will ensure the principle of separation of concerns. In other words, identifying ...
Christophe's user avatar
  • 78.3k

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