Consultation Hour By appointment through mail Outline
• What is Programming? • How to be a Programmer? • Summary
BITS Pilani, Pilani Campus
Programming
Programming in machine-code compiled language like C:
1. Write program code 2. Compile program code, obtain executable consisting (mainly) of machine code 3. Execute program: program loaded into memory and machine code is executed by CPU
BITS Pilani, Pilani Campus
Programming
1. Programming in machine-code compiled language like C
2. Programming in bytecode interpreted language like Java: a. Write program code b. Compile program code to standardized machine code, obtain executable c. Execute program: program is loaded into machine-specific virtual machine and interpreted d. Sometimes, some parts of the program can be compiled to machine code by the VM for faster execution e. Goal of Java: Write once, run anywhere => reduce developer effort
BITS Pilani, Pilani Campus
Programming
BITS Pilani, Pilani Campus
How to be a Programmer?
1. To be a Java programmer, we need to:
a. know how to write a program, b. know how to compile a program, c. know how to run a program using the Java JVM 2. . . . but this is the bare minimum. . . a. Programs must be tested to discover errors b. Errors must be found using a debugger and fixed c. Bigger programs use libraries, each implementing one specific concern d. Teams working on source code need source control and versioning e. and Build tools 3. While students usually lean how to write programs, they usually don’t learn anything about testing and debugging and hence deliver bad smelling code/software until they actually learn to work in some organization 4. We want to do this better. . . 7