jueves, 25 de agosto de 2016

Hi C#

INTRODUCTION

C# is a language oriented to objects inside Visual Studio (IDE), with C# you can develop software of desktop, web(with .NET) and smartphone(Android and iOS)

Mainly Visual Studio is only for windows but also you can use Visual Studio with Linux or Mac but in the light version called "Visual Studio Code". Here we are going to use for Windows and the example will be only to an interfaz in desktop, Later in other topic We'll write the same C# but for web and smartphones.

 REQUIREMENTS TO RUN

Visual Studio is private and We need to pay for a license, but Visual Studio has a free license called "Visual Studio Community":

https://www.visualstudio.com/downloads/download-visual-studio-vs

Download and install.

HELLO WORLD

1) Open your Visual Studio
2) File --> New --> Project
3) Select Templates/VisualC#
4) In the right panel we can choose different projects, in this case we are going to use console project, then choose "Console Application".
5) On the bottom, write the project's name: test and click on the button "OK".
6) In the Program.cs and inside of Main method write:

System.Console.WriteLine("Hello World");
While(true);

7) To Run: Debug --> Start Debugging
8) To stop the project: Ctrl + C or Debug --> Stop Debugging



Thanks!!!

miércoles, 24 de agosto de 2016

Hi Java

INTRODUCCTION

Java is a language oriented to objects and can be executed in any platform.
This programming language is for development projects about interfaces on desktop, web and smartphones.

REQUIREMENTS TO RUN

You need to download a IDE, either netbeans or eclipse:

https://netbeans.org/downloads/ (remember also download the jdk)
https://eclipse.org/downloads/

HELLO WORLD

Here we use netbeans,

1) Open your netbeans.
2) File --> New Project --> Select Projects: Java Application and click button Next
3) Write the project name: test
4) Check if the checkbox "Create Main Class" is true and click button Finish
5) Inside of the method main write:

System.out.println("Hello World");

6) Run --> Run Project or F6

and it's all!, in the console you can see the text "Hello World"



SIMILAR SYNTAX

C++ is the language more similar to Java, because :

1) They have the same syntax to comment "//"
2) Both are languages oriented to object.
3) They use ";" to finish a sentence



martes, 23 de agosto de 2016

Hi Python

INTRODUCTION

Python is a language oriented to objects, the main philosophy of python is to do a readable code. Hence, is very important the spaces(indentation).


REQUIREMENTS TO RUN

To download:

https://www.python.org/downloads/

Choose the installer for your OS and install.(remember install with option PATH to use python anywhere)


HELLO WORLD


IN TERMINAL

- Open your terminal and write: python
- after write: print "Hello World"



IN FILE

Here we going to use class and methods to say "hello world", I did that for understand generally how to use python.

We create a file named hi.py
Inside we put this code:


after in the terminal we go to the file and execute the file with the python command:


All the description of the code is as a comment in the image. As you can see this tutorial is only to say "hello world" with python and no more.

Thanks!!

lunes, 22 de agosto de 2016

Hi Ruby

INTRODUCTION

Ruby is a lenguage oriented to objects  focused to simplicity and productivity, Its sintaxys was inspired on python and perl with charasteristics to programming oriented to objects similar to smalltalk.

Its official implementation is distributed under the licence of free software.

REQUIREMENTS TO RUN

To download:

https://www.ruby-lang.org/es/documentation/installation/

choose the installer for you OS and install.

HELLO WORLD

IN TERMINAL

- Open your terminal and write: irb
- after write: puts "Hello World"



done!, remenber "puts" is to show a variable in console, similar to : echo(PHP), print(python), console.log(JavaScript), etc.

IN A FILE

Here we going to use class and methods to say "hello world", I did that for understand generally how to use ruby.

We create a file named "hi.rb"
Inside we put this code.


after, in the terminal we go to the file and execute the file with the ruby command :



All the description of the code is as comment in the image. As you can see this tutorial in only to say hello world with ruby and no more, if you want to learn deeper in ruby, you need to search others tutorial.

Thanks!!!