- The process of assigning a code to something for classification or identification.
- The process or activity of writing computer programs.
We aim to teach a coding mindset that complements technical expertise by providing clear guidelines tailored to complex real-world problems.
- Solve a specific problem.
- Ensure code is easy to read and understand.
- Make code maintainable and extendable.
-
Always Solve a Specific Problem:
- Avoid attempting to create overly generic solutions.
- Articulate a clear description of the problem before coding.
- Start documentation or README with a problem description.
-
Write Readable Code:
- Use meaningful variable and function names.
- Avoid hard coding and aim for flexibility.
- Reference existing CSS files for styling that aligns with UI documentation guidelines.
- Reuse classes to maintain consistency in styling across the application.
-
Coding Convention:
- Variables and functions should reflect their purpose.
- Hard coding should be minimized or avoided.
- Consistent coding style enhances readability and understanding.
- Comments explain non-obvious rationale.
- Documentation should cover problem description, methodology, and references.
- Provide clear instructions on navigating the code.
- Reduce code duplication and enhance code reuse.
- Modularize code organization.
- Limit variable scope and use configuration files for dynamic execution.
- Utilize automated testing for quality assurance.
- Organize files and data for repeatability and ease of revisiting.
- Establish a clear, consistent, and descriptive file structure.
- Consider collaborators and future reproducibility.
- Be descriptive and concise.
- Avoid ambiguity, especially in versioning.
- Utilize context and delimiters effectively.
- Use clear and consistent naming, structuring, and context.
- Follow spacing conventions for readability.
- Use comments sparingly, focusing on providing valuable context.
By adhering to these practices, we ensure code clarity, maintainability, and reproducibility, benefiting both current and future collaborators.