In: Computer Science
What professional responsibilities does a software developer have with respect to the testing and documentation of code that he/she develops?
# Responsibilities of a developer with respect to testing :-
* Check the basic functionality/features of the software :- Check all the possible ways by which an application can get crashed . also check input fields ,buttons on every screen that they are working fine or not. if you find any bug or something is not working properly tell the tester that you are aware of that and working on that or will fix it later . also check all the API calls( if you have used in your application) that response is correct .
* Peer Review on your code :- make sure to verify your code by your peer or any other senior deeloper because sometimes it may happen that you have missed something or used something wrong in your code and you are not aware of that .
* Use tools/plugins for quality code checking :- use any plugings or tools like lighthouse dev tool(for web application) for checking your code quality and response time of the code that you have written . if you have find out that backend api or any front-end code is taking a lot of time try and change it as soon as possible.
* Unit testing :- Unit testing is must from the developer side . Developer should write unit cases for all the units(class ,methods ) so that we can find that all the small units of our code is working fine as described.
* Write testable code :- make sure to write the code that can be easily tested . if you write any complex code then it will problem you as well as to tester as well to debug if found any bug.
* Take the tester feedback in positive way do not feel guilty or try to fight with tester if something is wrong.
# Responsibilities of a developer with respect to code documentation :
* Code documentation plays a very important role in software developement . From the developer perspective code commenting is must that can help developer to understand what/why he did something in the code .
* Keep track of the file changes and the features listing with you so that you can understand or verify what you are trying to build or what you have done earlier .
* Code documentation will not only help programmer only but also to the other developer who are or will work on the project . code dcumentation will give them brief idea how they can get start in the project.
* Also make sure to create/use flow diagrams and architecture diagram and other diagram like ER and class diagrams of the software and work according to that .
* At any point of time if you want to debug something in your code documentation will help you a lot.
* With code documentation make sure to use better naming and structure for the variables or the comment.
Hope this answer will help you . if you still feel confused comment down or try connect with me .
thanks.