How to Fix Programming Errors (10/28)
Syntax Errors
Debugging: The process of finding and fixing errors in code
Syntax/compile errors: computer doesn’t understand what you mean
Runtime exceptions: Program crashes before it’s done running
Logical errors: Program doesn’t do what is expected
Syntax = grammar
Compiler: translator that converts human programming languages to binary 1s and 0s
Exceptions
Runtime errors/Runtime exceptions/Exceptions
Errors that pass compilation but are caught when the code is actually run
Indexing
Assigning an ordered index number to each character in a string or each item in a list
One indexing = starting with one
Zero indexing = starts at zero (Used by java)
Stack Trace
Text underneath the exception method errors
Contains all the methods that ran until that error
Logic/Semantic Errors
No error message but program does the wrong thing