Coding Guide CS - BNU-CO453/ConsoleApps15 GitHub Wiki

Coding Guide for C#

How Principled Coders Outperform the Competition

C# Guides

  1. W3Schools.com C# Tutorial
  2. TutorialsPoint C# Tutorial
  3. Microsoft Documentation C#

Readable Code

The following article is a good guide to the main elements of best practice in writing code. The recommended indentation used for CO452 and CO453 is style 2.

Top 15+ Best Practices for Writing Super Readable Code

Robert C. Martin regarded as an expert in this field has written a series of books:-

Naming Conventions

  1. Capitalisation Conventions
  2. General Naming Conventions
  3. Names of Classes
  4. Names of Methods, Attributes and Properties
  5. Names of Parameters

Architectural Principles

Microsoft Architectural Principles
SOLID: 5 Object-Oriented Principles

Refactoring

  1. Refactoring Guru
  2. Design Patterns

Agile Alliance .org

Many of the principles used in CO453 come from the Agile approach to software development including these 12 principles.

Agile manifesto

  1. 12 Principles Behind the Agile Methodology
  2. Refactoring
  3. Pair Programming
  4. Test Driven Development
  5. Rule of Simplicity
  6. Extreme Programming

Unit Testing

How to Write Testable Code and Why it Matters