![]() ![]() When creating a pull request, you should care about the title and the description. If the code does more than one thing, break it into other pull requests. Just like classes and modules, pull requests should do only one thing.įollowing the SRP reduces the overhead caused by revising a code that attempts to solve several problems.īefore submitting a PR for review, try applying the single responsibility principle. The single responsibility principle (SRP) is a computer programming principle that states that every module or class should have responsibility for a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |