#git-aware code styling
▻https://hackernoon.com/git-aware-code-styling-25675234273d?source=rss----3a8144eabfe3---4
There are patterns within your code style you can use to simplify the way you’re interacting with GIT. Or any other Version Control System for that matter…To give you a rough idea of what you should be looking for, think of when need to list a whole bunch of arguments for a function.TLDR:This does not give the full picture, so I suggest you keep on reading…Here why:1. Keeping arguments in one line will make the change less visible:2. Putting every argument in a new line will result in simpler GIT diffs:(more on the last argument in the next point)3. Adding a trailing comma & moving the closing brackets to a new line, will result in simpler git diffs when reordering.This is language-specific. Not all programming languages allow trailing commas. Unfortunately none of the languages I’m using (...)
#android-app-development #android-development #git-aware #kotlin