@@ -33,13 +33,18 @@ The following are some general hints and tips in planning code changes successfu
3333
3434General Considerations
3535----------------------
36+ **Smaller is better. ** Submit a separate pull request per bug fix or feature.
37+ Avoid refactoring or reformating code that is not related to your change.
38+ Multiple small pull requests are easier to review and more likely to be accepted
39+ promptly.
3640
37- **How complex is your change likely to be? ** (e.g. roughly how many subroutines
38- or lines of code do you expect to alter or add?) This is an important
39- consideration as the more complex a change is, the more time will be required
40- in development, the more code owners will need to approve it and so forth. If a
41- change is overly complex, the developer should consider breaking it up into
42- smaller, more manageable and, where possible, "self contained" tickets.
41+ **Consider the complexity of your change. ** For larger or more complex changes,
42+ start by opening an issue and discussing your approach with the relevant people.
43+ This helps avoid unnecessary work and ensures alignment with project goals.
44+
45+ **Prioritise clarity over cleverness. ** Code is read more often than it is
46+ written, so make it easy to understand and maintain. If the logic is not
47+ immediately obvious then include comments to explain your reasoning.
4348
4449**How does your proposed change fit in with the structure of the model? ** Try
4550and make your code changes in-scope and no larger than they need to be. If you
@@ -54,7 +59,7 @@ aware of these.
5459* `UMDP3 (UM and JULES FORTRAN)
5560 <https://code.metoffice.gov.uk/doc/um/latest/umdp.html#003> `__
5661* `LFRic Coding Styles
57- <https://code. metoffice.gov.uk/trac/lfric/wiki/LFRicTechnical/CodingStandards > `__
62+ <https://metoffice.github.io/lfric_core/how_to_contribute/index.html#how-to-contribute-index > `__
5863* `PEP 8 (Python) <https://legacy.python.org/dev/peps/pep-0008/ >`__
5964
6065**Who will SciTech review the change? ** This is a useful consideration as not
@@ -78,6 +83,9 @@ linked tickets. See :ref:`multirepo` for further details.
7883idea **not ** to re-invent the wheel or have code duplication! Speaking to code
7984owners of the appropriate sections can help in this instance.
8085
86+ **How will your change be tested? ** Include unit or integration tests, and update
87+ any example or demo repositories to exercise new functionality.
88+
8189Specific Tips for Scientific changes
8290------------------------------------
8391
0 commit comments