preloader
軟體工程

Don’t refine coding style, debug/add functions simultaneously when you write codes with other people

Don’t refine coding style and debugging/adding functions in same time when you co-working with others. For example, you may change a php file from no standard applied to be PSR2. This is because it’s hard to know through git or other common diff tools what code you have changed even though you just remove redundant spaces or identations. 

I recommend teams, whose consider refining your own code for reducing tech debts or transforming the architecture to another one, to take a sprint or two to polish the coding style. It’s best to be launched at periods of low workload for each team member within a season or a year. If you don’t do this, it might make some members dislike to be the poor guy merging conflict codes, which are contributed from other teammembers. The poor guy will see bulk deleted and added codes of a file and hard to distinguish what need to preserve.