Saturday, July 20, 2019 16:00

Archive for December, 2016

Formatting codes

Sunday, December 25th, 2016

Formatting codes refers to the process of adding spaces, new lines and tabs, with the sole purpose of improving the visibility and readability of our codes. The compiler does not care of white spaces. For it, they have no meaning. Consider these four pieces of codes:

Read more

Comments in C#

Saturday, December 24th, 2016

Sooner or later, you will need comments in C# programs (and any other programming language, for that matter). No doubt about that. You must become accustomed to using comments in your programs that explain the processes that the software executes. This means, in short, messages to yourself (and other programmers) that will help you remember and understand in the future what the program is about and what various bits and parts of it do and behave.… Read more

C# differentiates between uppercase and lowercase

Saturday, 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

Friday, 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:

Read more

Short introduction to Visual Studio interface

Thursday, 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

Wednesday, 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

Wednesday, 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

Wednesday, 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

Monday, 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 programmingRead more

Contents

Monday, 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
Interacting with the Console
Bit.

Read more