At the end of this lesson, you will be able to:
know some basic Linux terminal commands
create your first Github repository that has code in it
With a pencil and paper, answer the following questions:
What is the difference between a compiler and an interpreter?
State 1 programming language that uses a compiler.
State 1 programming language that uses an interpreter.
I am in the root directory ICS3U. Write the Linux command to move to the directory Unit1-01.
Write the code in Python to display (one per line) your name, hobby and favourite food to the console.
For ICS3U Only:
Do the above question in C++.
logging into Codespaces through GitHub
creating your "Hello, World!" program in Python and C++
creating your "Address Program" in Python and C++
logging into Github
remember Git != GitHub
go over Linux:
read "What is Linux?"
ls -> list all files and folders in the current directory
cd <name of directory> -> change to <name> directory
cd .. -> change to the previous directory
make sure to put the repo in your ICS3U Programming organization!
use this naming convention (Unit# Language):
Unit1-02 Python
Note: yes there are spaces here. Github will replace the spaces with dashes.
add in a GitHub Action -> Mr Coxall Super Linter
inside the GitHub repo you created above, click on Code, then SSH
copy the URL (see picture below)
go to Codespaces
ENSURE you are in the correct directory!!
Unit1/Unit1-02
open a terminal from the above folder & type the following:
git clone git@github.com:<Organization name/repo>.git
Note: paste the URL that you copied in the previous step after the word "clone"
Note that "Organization name/repo" is replaced with your login and angle brackets are not included!
For example, mine looks like this:
git clone git@github.com:ICS3U-Programming-Sophie-Student/Unit1-02-Python.git
inside Codespaces, go to the folder for this day (Unit1/Unit1-02-Python):
create the "Hello, World! Updated" program in Python3
Save the file as “hello_world_updated.py”
say hello to someone you know
write 1 additional statement to them
inside Codespaces, go to the folder for this day (Unit1/Unit1-02):
open a terminal from this folder and type the following:
git add -A
git commit -m "commit message"
remember to replace "commit message" with a statement about what you changed in your code
git push origin main
you will be asked to add in your GitHub login and password to ensure it is you changing the repo
complete the Daily Assignment section in Hãpara Workspace for this day
if Hãpara is not working, make a copy of this document
move it to your IMH-ICS folder for this course
watch the videos below
recreate the "Hello, World! Updated" program in C++
Note: You will have to go through the above steps again but for C++