Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Introduction to Programming I: Installation

Introduction to Programming I: Installation

By psyl0cke avatarpsyl0cke | 148667 Reads |
0     0

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:

  1. Computer programming (often shortened to programming): ~ a process that leads from an original formulation of a computing problem to executable computer programs.

  2. 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.

  3. 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.

  4. Object code/module: ~ What a computer compiler produces.

  5. 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.

  6. 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“

  1. 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/

  2. 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

  3. 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++

  4. 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

Lord_Zeyn's avatar
Lord_Zeyn 7 years ago

I will teach you four language: Python, Ruby, C/C++ and Java.

C and C++ are not the same language.

_spartax_'s avatar
_spartax_ 7 years ago

Perl is Shit

psyl0cke's avatar
psyl0cke 7 years ago

languages is the correct word

Prince326's avatar
Prince326 6 years ago

Python is best..