You are assigned to modify an existing Webpage by adding several tables that contain precise wording. The Webpage has had several developers working on it, each of whom were given strict instructions about text wording. All the developers belong to your team and will probably be working on the same page again after you finish your tasks. Which strategy represents good coding practice in this situation?

Respuesta :

When a team of developers are working in the same module of a project is convenient to follow the next good practices:

USE NAME CONVENTIONS: in a team project is important to use descriptive names to the variables, functions, classes and files, so others developers can understand more quickly what the code is doing.

CLEAN FOLDER STRUCTURE: if project is too big (and must be, or will be, if there are many developers) then is you should avoid putting all the code in 1-2 files. It would not break the code but it will be a nightmare to read, modify and debug. Use different files and define a clear responsabilit for each file.

DON'T REPEAT CODE: this is obvious advice but frequently hard to follow when each developer in a team act like a lonely wolf. It is important to comunicate inside the team to avoid this kind of mistakes. If there is no communication every developer will implement their own solution and that will follow to a lot of repeated code. Try to make reusable code.

USE A VERSION CONTROL SOFTWARE: like git. As man people are working in the same codeit will be common when someone make a mistake that break all the project, so it's important to keep safe old versions. Besides, if the team divide in internal teams, each one with it's own module on the project, it will be useful to keep isolate some changes until the module is complete.