This is your first visit inside The Matrix. Welcome!

The Matrix has you…

This place will take you into the mirage of learning C# programming language, without any previous coding experience being required

Follow the White Rabbit…█

Close
Friday, November 24, 2017 16:25

C# differentiates between uppercase and lowercase

December 24th, 2016

When you are writing your programs, you must remember that C# considers lowercase and uppercase characters as different. As a general rule, most C# commands start with a capital letter and continue with lower case letters. C# constants are usually written all in uppercase, while variables use a mix of upper and lower case letters.… Read more

Structure of a C# Console program

December 23rd, 2016

In our previous post, we created our first C# program, a console application that displayed a single sentence and which contained the following instructions:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.Read();
        }
    }
}

It is now time to analyze the structure of a C# Console program.… Read more

Short introduction to Visual Studio interface

December 22nd, 2016

Ok. In the previous lesson we created our first project. Fine so far. But… what’s next? What’s with all those buttons and files, and lines of text and… damn! What do we do now?!

Chill! Don’t panic, stay with me. I know it’s intimidating at first, and you will easily get lost.… Read more

Creating first project

December 21st, 2016

Now that you have successfully installed Visual Studio (hopefully), it’s time to create our first project. Open Visual Studio. Once it loads, you can either click on File – New – Project menu at the top, or click the “New Project” link on the start page.… Read more

Installing Visual Studio 2017 Community Edition

December 21st, 2016

Since I started this C# learning project, a few things have changed. Today I will talk about one of these things. And, good news: a new version of Visual Studio has been released. So, today we will talk about installing Visual Studio 2017 Community Edition.… Read more

Installing Visual Studio 2015 Community Edition

December 21st, 2016

Important note! This article is now obsolete, a new version of Visual Studio is now available (Visual Studio Community Edition 2017). Read about the installation process of the new version here!

In the last post, I have explained that in order to be able to develop programs, you will need a compiler, and if you’re not directly interested in programming blindly (and trust me, you aren’t!), some form of IDE.… Read more

Introduction to programming

December 19th, 2016

Computer programs, also known as “software”, are a series of instructions that the computer can execute. When you are creating a program, you must specify the instructions that the computer must execute in order to achieve the desired operations. The process of defining the instructions that the computer executes is called programming. Read more

Contents

December 19th, 2016

Chapter INTRODUCTION

Introduction to programming
Installing Visual Studio 2015 Community Edition
Installing Visual Studio 2017 Community Edition
Creating first project
Short introduction to Visual Studio interface
Structure of a C# Console program
C# differentiates between uppercase and lowercase
Comments in C#
Formatting codes
Semicolon character
Variables
Variable types
Declaring and initializing variables
C# keywords
Choosing significant variable names
Int variable type
Char variable type
Float variable type
Double variable type
Decimal variable type
Type modifiers
Overflow exception
Real types error calculations
Boolean variable type
String variable type
Object variable type
Nullable variable types
Value and reference types
Escape sequences
Operators
Operator precedence
Arithmetical operators
Incrementing operator
Decrementing operator
Logical operators
Concatenator operator
Bitwise operators
Comparison operators
Assignment operators
Conditional operator
Other operators
Casting and type conversion
Implicit type conversion
Explicit type conversion
Conversion to type String
Conditional processing
Representation of True and False values
Testing a condition with If
Conditional statement If-Else
Nested If statements
Conditional statement Switch
While loop
Do While loop
For loop
Foreach loop
Break operator
Continue operator
Nested loops

Chapter ARRAYS

Arrays
Declaration of arrays
Initialization of arrays
Accessing the elements of arrays
Iteration through the elements of an array
Multidimensional arrays
Arrays of arrays

Chapter FUNCTIONS

Functions
Methods and functions declaration
Methods and functions parameters
Variable Scope
Execution workflow
Optional parameters
Functions and methods overloading
Methods and functions signature
Return operator
Best practices when using methods and functions
Recursive functions

Chapter OBJECTS

Object oriented programming
Classes
Properties
Constructors
Instantiation
Access modifiers
Static members
Nested classes
Generic classes
Generic methods
Structures
Constants
Enumerations
Namespaces

Chapter GUI

WPF
Graphical User Interface (GUI)
XAML
Control Properties
Control Events
GUI Controls

Read more

The red pill

December 19th, 2016

Last year, my friends and I were discussing the possibility of starting a free online resource for teaching programming to the (to my happiness) ever increasing number of people willing to make the leap from “consumer” to “creator”, and whether such a project is realistic or not.… Read more

There is no spoon!

December 17th, 2016

Have you ever had a dream, that you were so sure was real? What if you were unable to wake from that dream? How would you know the difference between the dream world and the real world?

Let me tell you why you’re here.… Read more