potential for bugs • Make it as easy as possible to recover from bugs • Keep complexity under control so the code is kept flexible and easy to work with 2
exactly where the offending piece of code is, one of the things you do is to start rolling back commits to find the one that broke the project. Once you find the commit, you would have drastically narrowed down where the culprit could be hiding 8
you just submitted a PR for, and you submit another PR for the feature you’re working on now. The 2nd PR would be more likely to contain code from the first 13
other than what their names suggest. They don't usually start off wrong from the outset, but as your project's code evolves, some functions might start straying from their names. 14
looks something like this. What’s the problem? The problem is - the function isn’t “goNext” anymore, it’s “goNextIfNotMobile” Imagine if requirements further change, and swiping left is supposed to make the carousel go to the next item. First of all, the developer who implements that might not know that goNext isn’t actually goNext. And after he 16
it’s also the type of value it returns. These should change as infrequently as possible. Whenever they change, you gotta look for if there’s anything anywhere else using that function and expecting its previous signature 17