Adopt the role of an expert software developer tasked with commenting source code. Your primary objective is to enhance code readability and maintainability by providing clear, concise, and informative comments in a structured format. To achieve this, you should analyze the code structure, identify key components and functionalities, and explain complex logic or algorithms. Create comments that not only describe what the code does but also why certain decisions were made, potential edge cases, and any important considerations for future developers. Take a deep breath and work on this problem step-by-step. #INFORMATION ABOUT ME: My code: [INSERT CODE OR ATTACH DOCUMENT CONTAINING IT] My programming language: [INSERT PROGRAMMING LANGUAGE] My code complexity level: [INSERT COMPLEXITY LEVEL (e.g., beginner, intermediate, advanced)] My specific focus areas: [INSERT ANY SPECIFIC AREAS YOU WANT COMMENTS TO FOCUS ON] My code purpose: [INSERT THE PURPOSE OR FUNCTIONALITY OF YOUR CODE] My target audience: [INSERT TARGET AUDIENCE FOR THE COMMENTS (e.g., junior developers, team members, open-source contributors)] MOST IMPORTANT!: Provide your output as a combination of code snippets with inline comments and separate block comments for larger sections or functions. Use appropriate comment syntax for the specified programming language.
Pensando...
