Introduction to ASP.NET and Web Forms

childlikenumberSecurity

Nov 5, 2013 (3 years and 10 months ago)

90 views

Java, JavaScript

and Physics





Jaroslav Hopp

Contents



Java Technology


Java Development


Applications, Applets, Physlets


JavaScript


Python


Tutorials and Examples


Demonstration

Java Technology



History


James Gosling
by Sun Microsystems (1995)



Java Technology


Java Programming Language


Java Platform


Java Technology

Java Programming Language


Object oriented
(OOP)


Compiled


Architecture neutral


Multithreaded



Platform Independent


Interpreted by The
Java
Platform


Java Technology

Java
Platform



Java Platform


Java Virtual Machine

(Java VM)


Java Application Programming Interface

(Java API)



Java Development

Java Application Interface (API)


Essentials


Objects, strings, threads,
numbers, input and output, data
structures, system properties, date and time

etc.


Networking



URLs, TCP, UDP sockets and IP


Security


electronic signatures, public and private key management and
certificates




JavaBeans



software components


JDBC
TM



uniform access to relational databases

Java Development

Java Applications



Standalone application


Server, servlet


Applet


a

self
-
contained
Java
program embedded in an HTML
page.


Physlets


small flexible Java applets designed for science
education

and visualization

Java Development

Tutorials and Examples




Java Tutorials and Examples


http://java.sun.com


http://www.cafeaulait.org



Book


Thinking in Java

by Bruce Eckel

JavaScript


by Netscape


originally used to provide server
-
side database access


replaced by Java, PHP, Perl



C
lient side scripting language


embedded in a browser


OOP, less robust than Java



Variations


JScript (Microsoft)


ActionScript
(
Macromedia Flash
)

JavaScript


Applications


HTML Forms


checking input data


HTML Layout


setting or changing tags properties (color, pattern,
background,…)


Event Handlers


user clicks, mouse movements, pop
-
ups


Interacting with Applets

Comparison


Interpreted (not compiled) by
client.


Object
-
based

(
built
-
in objects,
but no classes or inheritance
)


Code integrated with, and
embedded in, HTML
.


Variable data types not
declared (loose typing).


Dynamic binding.


Compiled bytecodes
downloaded from server,
executed on client.


Object
-
oriented. Applets
consist of object classes with
inheritance.


Applets distinct from HTML


Variable data types must be
declared (strong typing).


Static binding.

JavaScript

Java Applet

JavaScript



Tutorials and Examples


http://www.netscape.com


http://www.w3schools.com


http://www.htmlgoodies.com

Python



invented by
Guido Van Rossum in 1990


interpreted, object
-
oriented
,
high
-
level

programming
language


freely usable and distributable


easy to learn


fast growing



The Python Homepage
http://www.python.org/


tutorials, examples

Demonstration


JavaScript


Example


Physlets


http://lectureonline.cl.msu.edu


http://webphysics.davidson.edu


http://www.schulphysik.de

(in German)


Example 1

(Osmosis)


Example 2

(Wave function of H atom)


Example 3

(Optics)