Intro to Coding - Breather

play_circle_filled

What is Coding

Pre-reading for the 4-part workshop. This video explains how coding can positively impact almost any job. Hence you should learn the basics too!

Summary

Why should I learn coding?
It teaches you how to break big problems into small ones, and solve it in the most efficient way.
How can I get the most out of this 4-part workshop?
Make sure you do your suggested readings. DM me on Slack (@fadyazmy) if you have questions, and we can chat over lunch.
What should I expect from the workshops?
First off, we'll use Javascript as the language of choice. Expect to brush on how to write simple functions and data types. In the end we'll write programs (collection of functions) to solve a practical problem :)

Contents

Intro to coding + Data types + simple functions (if statements)

Introduction to Coding

What is Coding?
  • DRY: don't repeat yourself (try coding it)
  • A way to break down problems into small steps
  • Putting together rules to solve a problem

Primitive Data Types

  • String
  • Charachter
  • Float (number)
  • Boolean

More info here.

Code example here.

IF functions

A good resource explainint IF functions here

Simple functions

Make a function to decide if you should party tonight called goParty:

  • Comments
  • IF functions
  • Logging / printing

Code example here.

Summary

Summary examples part I

Summary examples part II

Contents

Review of Lesson 1 + Conditions + Simple Functions

Conditional

IF / IF ELSE / ELSE explanaition and examples

More functions

Part I - returning variables

Part II - calling a function from inside another function

Simple Program

Who can you trust in life - source code

Logical Operators

Examples

Summary

PART I

Excercises

Problem

Contents

Loops

LOOPS

For loops examples

While loops examples

Mini Program (incomplete)

Code set

After class excercise

FizzBuzz challenge

Mini Program

Array readings

Find the salami burglar code set

Contents

Data Structures + Capstone project!

Loops + Arrays

Loops refreshers + Arrays examples

Mini Project (Sorting Algorithms)

Find the most embarrassing gamers @ Breather project

Bubble sort Algorithm examples

Summary

Congratulations on finishing this 4-part workshop! Below are the list of topics you have covered so far.

Topics

Lesson 1
  • Primitive Data Types
  • If functions
  • Simple functions
Lesson 2
  • Nested functions
  • Logical Operators
Lesson 3
  • Loops (if and while loops)
  • FizzBuzz exercise
Lesson 4
  • Data Structures - Arrays
  • Sorting Algorithms
Back to home