First Theory Class: Prog Language
today is the first class for theory, or I should say, classic class teaching in the classroom... where the lecturer teach us with power point and there is no practice. in this class, we got introduced to network and web application.
I got to know about:
I got to know about:
- Programming Language
- History of internet and WWW
- Network Architecture
Let's briefly review what I just learn in class about programming language...
- Programming Language
- Machine: the basic language of machine and understood fully by computer.
- Assembly: using English-like abbreviation to overcome the problem when using machine language(that consist of only number). need an assembler to change to machine language
- High-Level: using single statement for multi purposes. similar to everyday English and mathematical notation. need compilers to translate to machine languages.
- e.g. FORTRAN, COBOL, BASIC
- Scripting: shorten the traditional process. can also be compiled, but interpreters are simpler, that's why they are used more often.
- Properties of Web Languages:
- Compiled Languages: compiler scans the entire program and then writes machine languages to implement the operation
- e.g. Java, C, and C++
- key feature: code is generated before the program sees any data and will fail if the data is not the expected type
- Interpreted Languages: executed line by line as the data flow in
- e.g. JavaScript, JScript, VBScript, Perl, Rexx, and Python
- Object-Oriented Languages: concentrate on the classes that make up the entities that are manipulated by the program
- e.g. JavaScript, JScript, VBScript, Java, and C++
- then, between compiled language and interpreted languages, which one is better?
- in term of speed and how easy it is to write. compiled languages are faster in execution while interpreted languages are easier to write.
- compiled language is providing very powerful syntax checking that let you detect many error at compile time that make it easier to debug than runtime errors.
- interpreted is slower and don' provide powerful syntax checking capabilities that make them inferior by the time to debug the program
- compiled languages is best for large programs which process lots of data because of the ability to detect error, while interpreted languages is better suited to small program where runtime errors are easier to find
that is the material i got in class, and next is, about the internet.
Comments
Post a Comment