Lecture 9: Introduction to Computer Programming Flashcards
How do humans and computers represent numbers?
Humans represent numbers through a base 10 system while computers represent them through a base 2/binary system
What is the overall process by which humans program computers?
Programming language –> compiler –> machine language
Human readable –> Translator –> Computer-readable
What is a compiler?
Translates human-readable code to a set of computer-readable instructions
Integrated Development Environment (IDE)
Provides an interface for running and debugging code. You can view variables, debug in real time, use autocomplete, access version control (e.g. Git), and more
Drawbacks of IDE
You can lose understanding of what’s happening behind the scenes and can offer too many confusing features
Code debugging
Correcting coding errors
Compile-time error
A typo in code
Run-time error
The code works but gives the wrong output