Common Computer Science References
At the end of this lesson, you will be able to:
compile your program(s)
review test cases
review EC2, SSH & Vim
ENSURE your user has "sudo" access
go over why we have test cases
so we know what the answer should be, before the computer shows it to us!
go over how to compile and run a TypeScript program:
what is TypeScript
it is most likely not loaded on your Linux machine, so it will need to be loaded
a super easy way to get it is to load Bun
sadly Bun does not work on the Netbook (due to AVX2)!
do demo of how to create and run a TypeScript program (see video "How to run a TypeScript program on a Debian EC2 Instance")
create: bun init .
run: bun run index.ts
create the "Hello, World!" program and then actually run it
create the GitHub repo first, clone it to the EC2 instance, add code
./ICS4U/Intro/Intro-05
create a repo called "ICS4U-Intro-05-TypeScript"
ensure you select all the correct options:
for TypeScript: a README.me and NO .gitignore
push changes back to GitHub
if you get linting errors that you can not fix, we will solve that next lesson
go over how to compile and run a Java program:
what is Java→ "Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible" (from Wikipedia)
it is most likely not loaded on your Linux machine, so it will need to be loaded
create a 2nd EC2 instance to do your Java development in
you will probably also want a 2nd Elastic IP address!
https://sites.google.com/ocsb.ca/teh-cs-resources/languages/java#h.nofavuqj14m9
do demo of how to load java (see video "Loading Java on Ubuntu EC2 Instance")
do demo of how to compile and run a java program (see video "How to run a Java program on a Ubuntu EC2 Instance")