as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
list five rules for following best practice when coding.
user
five rules for following best practice when coding include using code comments to document programs, writing code in small blocks, avoiding the use of global variables, using consistent naming conventions and formatting, and monitoring memory leakage. code comments should include a brief description of the code and any assumptions made. code should be written in small blocks to make it easier to debug. global variables should be avoided, as they can lead to unpredictable results. the use of naming conventions and formatting should be consistent to ensure readability and understanding. finally, memory leakage should be monitored to ensure memory resources are being properly managed.
assistant