Conditionals

Requirements:Linux Distributionpython3A Shell Interface My Setup:Debian GNU/Linux for some examples, ArchLinux for others.python3BASH Normally within a program, when you want to do something if a condition is met, you would use conditional statements. There are a couple conditional statements that python supports. This includes : if – “If this statement is true, do this” elif […]

Variables And Datatypes

Requirements:1. Linux Distribution2. python33. A Shell Interface My Setup:1. Debian GNU/Linux2. python33. BASH Despite the fact that python is a dynamically typed, variables still have a type to them. Variables are locations in memory which you may store values to be used within your program. The fundamental data types consist of : None – object […]

Introduction To Python

Requirements:Linux Distributionpython3A Shell Interface My Setup:Debian GNU/Linuxpython3BASH Python is a general-purpose programming language created by Guido Van Rossum. It is an interpreted language. This means that when you run a python program, it is run through an interpreter, which will parse the program on a line by line basis, rather then a compiled programs, which […]

Variables

Requirements:Linux DistributionJava Development Kit (JDK)Java Runtime Environment (JRE)A Shell Interface My Setup:Debian GNU/LinuxjavacBASH Variables are pieces of memory which can hold a value. They are used todescribe changing values of a program. Primitive Types In Java: boolean – a variable which represents either the value trueor false. One bit. char – a variable which represents […]

Introduction To Java

Requirements:Linux DistributionJava Development Kit (JDK)Java Runtime Environment (JRE)A Shell Interface My Setup:Debian GNU/LinuxjavacBASH The Java programming language was developed by Sun Microsystems Inc in 1991. It later bought by Oracle Corporation. It was developed by James Gosling and Patrick Naughton. It is a class-based object oriented programming language which runs on top of a virtual […]

Linked Lists in C

Linked lists are a linear collection of elements whose order order is not given by their physical placement in memory. Instead, each element contains a member variable which is a pointer to the next element. For example: In this section, i will be going over algorithms to help manipulate these data structures, as well as […]

File Handling

File Handling In C Requirements: Linux Distribution C Compiler a shell interface My Setup: Debian GNU/Linux GCC BASH Today we will go over the concept of file handling. Files are essential for persistent storage. So inside of the standard input / output header file (stdio.h), we have multiple functions for handling files. The FILE data […]

assert.h

Using assert.h Requirements: Linux Distribution C Compiler a shell interface My Setup: Debian GNU/Linux GCC BASH Today, i will be going over an extremely useful standard library header called assert.h . Assert.h is a header file which defines one specific function: [sourcecode language=’cpp’] void assert(scalar expression); [/sourcecode] The assert macro puts diagnostic tests into programs. […]

Programming Idioms Part 1.

C++ Programming Idioms Part 1. Requirements: Linux Distribution g++ any text editor My Setup: Debian 10 g++ version 6.3.0 pluma Today i will be going over some basic programming idioms that are generally used by C++ developers. These are acronyms to phrases that describe concepts the C++ language feature. 1. Resource Aquisition Is Initialization (RAII) […]

The String Header File

The string.h header Requirements: Linux Distribution C Compiler a shell interface My Setup: Debian GNU/Linux GCC BASH We havent really touched much on the standard header files, so I will go through some of them one by one. Today we will start off with the string.h header file. The header file declares one type, which […]