Hi again. These two weeks we need to master the following concepts. Please read them carefully and read all the readings associated with each concept.
- Spaghetti Code Vs Clean Code
- Camel Case Vs Pascal Case (Reading Material)
- C# Language Fundamentals
Basic Data Types (Variables and Properties):
A variable by definition is an identifier pointing to a storage location in memory, which contains its value
C# Application with Visual Studio: Reading Materials: walkthrough: Create a Simple Application with Visual C# or Visual Basic
- Console Application
- The Program Class
- The System Name Space
- The Using statement
Object Orients Concepts:
- Class Vs Object Vs Instance (Read this: declaring Classes, Creating Classes, Class Instances)
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments.
A property is a member that provides a flexible mechanism to read, write, or compute the value of a private field. Properties can be used as if they are public data members, but they are actually special methods called accessors. This enables data to be accessed easily and still helps promote the safety and flexibility of methods.
- Code Separation
Separation of concerns (SoC) is a design principle for separating a computer program into distinct sections, such that each section addresses a separate concern. A concern is a set of information that affects the code of a computer program. A program that embodies SoC well is called a modular program. Modularity, and hence separation of concerns, is achieved by encapsulating information inside a section of code that has a well-defined interface.
- API / Client
Encapsulation is a means of information hiding. Layered designs in information systems are another embodiment of separation of concerns (e.g., presentation layer, business logic layer, data access layer, persistence layer).