Introduction to Programming I: Installation
Introduction to Programming I: Installation
If you want to learn programming, it is a very interesting adventure. I will cover the basics in these tutorial series. I will teach you four language: Python, Ruby, C/C++ and Java. I wish you enjoyable moments and strength.
0x01. Definition Before we start the programming, you should be familiar with the next terms:
-
Computer programming (often shortened to programming): ~ a process that leads from an original formulation of a computing problem to executable computer programs.
-
Source code: ~ In computing, source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.
-
Executable code/file/program: ~ In computing sometimes simply an executable, causes a computer “to perform indicated tasks according to encoded instructions,” as opposed to a data file that must be parsed by a program to be meaningful.
-
Object code/module: ~ What a computer compiler produces.
-
Compiler: ~ A computer program (or a set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language), with the latter often having a binary form known as object code.
-
Interpreter: ~ In computing, an interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without previously compiling.
0x02. Installation Windows: If you want to run them from anywhere, you should set their path in command line. For example: set path=“%path% c:\Python35-32“ set path=“%path% C:\MinGW\bin“ set path=“%path% c:\jdk1.8.0_102\bin“
-
Python a. Windows: https://www.python.org/downloads/ (Make sure you add python to your environmental variables) b. Linux: https://www.python.org/downloads/source/
-
Ruby a. Windows: http://rubyinstaller.org/downloads/ (Make sure you check Add Ruby executables to your PATH) b. Linux: Debian/Ubuntu: sudo apt-get install ruby-full CentOS, Fedora, or RHEL: sudo yum install ruby Gentoo: sudo emerge dev-lang/ruby Arch Linux: sudo pacman -S ruby
-
C/C++ a. Windows: https://sourceforge.net/projects/mingw/files/Installer/ (mingw32-base, mingw32-gcc-g++) b. Linux: Debian/Ubuntu: sudo apt-get install g++ CentOS, Fedora, or RHEL: sudo yum install gcc-c++
-
Java a. Windows: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html b. Linux: Debian/Ubuntu: sudo apt-get install default-jdk CentOS, Fedora, or RHEL: yum search java | grep java- java-1.7.0-openjdk.x86_64 yum install java-1.7.0-openjdk*
May the force be with you! ♥ psyl0cke