Several months ago, I’ve created this guide for my colleagues to improve development process and to avoid popular mistakes. It is not a dogma, but it should help developers with better understanding of what they are working on and how to do their work better.
General Rules
The main purpose of this manual is to improve the speed and quality of the products you develop.
- The code must follow all the guidelines of the development community
- The code must be readable
- The code must be testable
- The code must be maintainable
- The product being developed must be easily scalable
- The code must be written inherently high performance
- The code must be reusable
- We make products, not just write code. This means that we should also enjoy using the product ourselves.
Statement of Objectives
- Tasks are taken from the tracker and only from it. If the task came in the mail or in a messenger, it must be transferred to the tracker
- If the task is not in the tracker, it does not exist. In rare cases, the task may be described post factum, but it must be necessarily described and documented
- The task must have a qualitative description - its purpose, incoming values, the process taking place, and what the output should be. If there is no description, the task is submitted for reissue.
- Tasks requiring frontend development must have a design. If there is no design, the task is re-designed.
- Tasks must have a start and finish date (planned and actual)
- Duration of the task must be not more than 1 day. If the task is longer, it must be divided into small tasks.
- The task must have a priority. Tasks should be performed according to the priority
Task fulfillment (daily plan)
- Before starting work, read the task, mark your participation in the tracker
- Find out if nothing interferes with your work, if something interferes, ask your colleagues for help or information.
- Start a new feature following the git flow process
- Take a standard solution-library-platform used in the company (see the appropriate section), if you can not find - coordinate with your senior technical manager to use another solution.
- If there is a ready-tested code (check the availability of code in the library) - use it
- Check if any of the developers on the project has written code that can be reused. Avoid duplication of functionality.
- Write tests for the code and run them
- Test the implemented task
- Test functions of the application that may be affected by the work done
- Document the work
- Test for performance
- (if applicable) Check for i18n compliance
- (if applicable) Check for compliance with A11y
- Run automatic code check - linter, profiler and so on, correct the code if necessary
- Delete unnecessary and test data from the code, make sure there are no hard-coded configuration values, keys, and passwords
- Remove unnecessary git branches.
- Upload code to GitHub using pull request (PR) mechanisms, designate the technical director responsible for auditing the written code
- Upload completed tasks to the testing and staging area (if autodeploy is not configured) as agreed upon with the technical director
- At the end of the day, even if the tasks are not completed, upload all the code to GitHub marked wip (work in progress)
- Check the task done in the tracker
- If the deadline is not as expected - mark it and indicate the reason
- Report the work done, problems encountered, and additional requirements to the project manager and technical supervisor at the end of the day for all the tasks done
Documentation
- All technical documentation is written EXCLUSIVELY in English.
- The style of writing should be clear and understandable, avoiding jargon expressions and incorrect abbreviations. For example, the Australian Government’s suggested style for writing documents is https://www.stylemanual.gov.au/changelog.
- A Changelog should be written for each release, conforming to the standard https://keepachangelog.com/
- Commits in the git should follow the style https://www.conventionalcommits.org
Additional provisions
- The code that can be used on other projects must be saved in the archive / source code library. Solutions to non-standard problems found on forums and blogs should be saved there as well (with the source link retained)
- If part of the project code can be claimed and improved in other projects (including by developers of other companies), an open source project should be released on the company’s account and a senior technical manager should be contacted to promote the repository
- If some tasks are regularly repeated, it makes sense to use automation tools, for example, to make a template