Transcript Document
Chapter 01
Introduction
1
Patterns
Paul.Kyberd @ brunel.ac.uk
Tower D Room 409
2
Introduction
Organization
Three hours – I can easily speak for three hours
you may have trouble listening!
Plan
A break at 15:00 corresponding to the room
break extended for 15 minutes
In the break you can collar me and ask
questions.
Recommendation
The only way to slow me down is to ask
questions.
3
Introduction
Preliminaries
ASK QUESTIONS …
ANSWER QUESTIONS
ASK QUESTIONS …
4
Introduction
Reading
Too many to list, amazon return 49,316
(17,237; 5068; 4690; 4411) ….
Beginning Java 2: Ivor Horton. Wrox
Beginning Java Networking: Darby et al.
Wrox..
are two I have used
JavaTech – good book make sure you get
an upto date edition
Excellent web site with code examples.
Written by particle physicists – so it may be
to my taste
Java
26,307
Java 4
5,277
on
Java 5
5,383
Amazon
Java 6
4,786
77 (19/08/07)
Java 7
3765
5
Introduction
Versions
A
6
Java 7
July 28 2011
Java 8
Expected 2013
-
delayed
Introduction
Resources
The sun web site is very good (now Oracle)
Examples, tutorials
Download the core api documentation
7
Introduction
Plan
8
Introduction
Plan
9
Introduction
Plan
10
Introduction
Example
.TITL HELLO
02
; "HELLO, WORLD" FOR NOVA RUNNING RDOS
03
; USES PCHAR SYSTEM CALL
04
.NREL
05
.ENT START
06
07
START:
08 00000'022424 DOCHAR: LDA 0,@PMSG
; LOAD AC0 WITH NEXT CHARACTER,
09 00001'101015
MOV# 0,0,SNR
; TEST AC0;
10 00002'000412
JMP DONE
; SKIPPED IF NONZERO
11 00003'006017
.SYSTM
12 00004'010000
.PCHAR
; PRINT FIRST
13 00005'000413
JMP ER
; SKIPPED IF OK
14 00006'101300
MOVS 0,0
; SWAP BYTES
15 00007'006017
.SYSTM
16 00010'010000
.PCHAR
; PRINT SECOND
17 00011'000407
JMP ER
; SKIPPED IF OK
18 00012'010412
ISZ PMSG
; POINT TO NEXT WORD
19 00013'000765
JMP DOCHAR
; GO AROUND AGAIN
20
21 00014'006017 DONE: .SYSTM
11
; NORMAL EXIT
Introduction
Example
22 00015'004400
.RTN
23 00016'000402
JMP ER
24 00017'063077
HALT
25 00020'006017 ER:
.SYSTM
26 00021'006400
.ERTN
27 00022'063077
HALT
28 00023'063077
HALT
; ERROR EXIT
29
30 00024'000025'PMSG: .+1
31
; NOTE BYTES ARE PACKED RIGHT-TO-LEFT BY DEFAULT
32 00025'042510
33
046114
34
026117
35
053440
36
051117
37
042114
38
006441
39
000012
40 00035'000000
.TXT /HELLO, WORLD!<15><12>/ ; THAT'S CR LF
0 ; FLAG WORD TO END STRING
41
12
42
; ADDRESS OF FIRST WORD OF TEXT
Introduction
.END START
Advantages
13
Introduction
……
14
Introduction
OO Design
In software engineering, a design pattern is a general
repeatable solution to a commonly occurring problem in
software design. A design pattern is not a finished design
that can be transformed directly into code. It is a description
or template for how to solve a problem that can be used in
many different situations. Object-oriented design patterns
typically show relationships and interactions between
classes or objects, without specifying the final application
classes or objects that are involved. Algorithms are not
thought of as design patterns, since they solve
computational problems rather than design problems.
Wikipedia
15
Introduction
……
16
Introduction
Course Aims
17
Introduction
Aims
18
Introduction
Correctness
19
Introduction
Bug reporting
Should you report security problems in say the windows OS?
And why?
20
Introduction
Outcomes
21
Introduction