But every ten-line bit of repeated code has nine two-line bits and eight three-line bits. There's probably something there to extract. Start there, with smaller abstractions. Start refactoring at the bottom!
I like Eric Normand’s idea: when in doubt, refactor few lines of code rather than more lines. Extract 2 or 3 lines and give them a name (method or function). I am aware he usually uses Clojure where you often see short functions. But it applies to other programming languages as well.
There is a nice article that compares several git workflows:
- Centralized workflow
- Feature branch workflow
- Gitflow workflow
- Forking workflow
I admit I don’t use git on a daily basis. Therefore I value they show the git commands.
At work we use trunk based development.
Here are concepts that are frequently asked about in web development interviews.