Skip to content

These are the notes I prepared for the Introduction to Programming workshop that I led for the Yale School of the Environment in January of 2024

Notifications You must be signed in to change notification settings

mckenzieblaine/intro_to_programming

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Programming Workshop

Overview

The workshop will run from January 8th to 10th before spring classes begin. This three-day workshop will provide the students with no prior experience the basic programming skills required to take full advantage of YSE course offerings. The workshop will heavily focus on the programming language R, but it will introduce students to version control with GitHub (something that should be used with any programming project) and introduce students to Python (to demonstrate that the fundamental concepts hold across any programming language).

Each day will consist of two lectures in the morning (60-90 minutes with a 30-minute break between), a mini problem set to practice the skills being learned, and open office hours in the afternoon for students to ask clarifying questions.

Logistics

  • Class time: 9:00 to 12:30, with a 30-minute break around 10:30
  • Room: G01 in Kroon

The workshop is prepared and taught by Andie Creel.

The teaching fellow is Eliana Stone

Material

Day One

  • Lecture one: Thinking Like A Computer
    • what's programming
    • definitions
    • problem definition and solution
    • why code
    • pseudo-code
    • debugging
  • Lecture two: Base R
    • write and run scripts
    • basic data types
    • ways to make collections of data
    • variable assignment
    • Functions
    • Loops
    • If Else statements
  • Script written during class

Day Two

Day Three

  • Lecture Five: Coding is Coding

    • Same material as Lecture 2, but in Python
  • Lecture Six: Version Control with GitHub

    • Why use GitHub
    • Create a GitHub account
    • Install, Set Up and Integrate Git with R Studio
    • "Clone" a GitHub "Repository" to your local machine
    • Make change, write commit messages and "push" back to GitHub
    • "Pull" changes from GitHub to local computer
    • "Fork" someone's GitHub Repository so you can make changes to their files locally

Problem Sets

Navigate to the problem set folder to find the pdf and r markdown versions of the mini problem sets. They are designed to take around one hour and no more than two hours.

About

These are the notes I prepared for the Introduction to Programming workshop that I led for the Yale School of the Environment in January of 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 91.1%
  • TeX 5.3%
  • Jupyter Notebook 2.3%
  • Other 1.3%