Break down large pull requests into smaller ones

Feature breakdown is an art. The more you do it, the easier it gets.

What do I mean by Feature breakdown?

Is understanding a big feature and breaking it into small pieces that make sense and can be merged into the codebase piece by piece without breaking anything.

Learning by doing

Let’s say that you need to create a subscribe feature on your app. It's just a form that accepts an email address and saves it.

Without knowing how your app works, I can already break it in 8 pull requests.

Create a model to save emails

Create a route to receive requests

Create a controller

Create a service to save it in the database (business logic)

Create a policy to handle access control

Create a subscribe component (frontend)

Create a button to call the subscribe component

Add the subscribe button in the interface

As you can see, we broke this feature into many parts and most of this tasks can be done simultaneously by different developers.