"> Introduction to Programming – Code Immersives

Introduction to Programming

Overview

A program is a set of instructions that tell the computer to do various things; sometimes the instruction it has to perform depends on what happened when it performed a previous instruction. This course gives an overview of the two main ways in which you can give these instructions, or “commands” as they are usually called. One way uses an interpreter, the other a compiler. As human languages are too difficult for a computer to understand in an unambiguous way, commands are usually written in one or other languages specially designed for the purpose.

Introduction

  • What is a program
  • machine code
  • assembly code
  • higher level languages
  • basic logic
  • flow charts

LAB – Flow Charting

Good Code
  • Well commented code
  • Good Variable Names
  • Document as you write
  • Sanity Checking
  • Interpreted Programs
  • Compiled Programs
  • Security Considerations
  • /bin/sh basics
  • Variable assignments – the back tick trick

LAB – Shell programming

Input/Output & control
  • Terminal I/O
  • File I/O
  • Command line arguments
  • if/then/else
  • exit codes
  • loops

Programming lab assignment

Variables in action
  • String operations
  • Numeric operations
  • Checking Input Data

Programming Lab assignments

Compiled Programs in C
  • What is source code
  • What is object code
  • How is code compiled
  • Comments in C
  • C program structure and Syntax
  • Library Calls
  • Programming lab assignments
Input/Output & control
  • Terminal I/O
  • File I/O
  • Command line arguments
  • if/then/else
  • exit codes
  • loops
  • Programming lab assignment
Variables in action
  • String operations
  • Numeric operations
  • Checking Input Data
  • Programming Lab assignments
Introduction to Make
  • managing projects with make

Make Lab Assignment

Source Control Control
  • CVS
  • SVN
  • GIT

LAB Source Code Control

GIT in a team environment
  • Team GIT lab