CoSc 450: Programming Paradigms Paradigm A pattern of thinking that - - PowerPoint PPT Presentation

cosc 450 programming paradigms paradigm a pattern of
SMART_READER_LITE
LIVE PREVIEW

CoSc 450: Programming Paradigms Paradigm A pattern of thinking that - - PowerPoint PPT Presentation

CoSc 450: Programming Paradigms Paradigm A pattern of thinking that is frequently difficult to change. A world view. CoSc 450: Programming Paradigms Objective To learn three major programming models that complement the procedural and OO


slide-1
SLIDE 1

CoSc 450: Programming Paradigms Paradigm A pattern of thinking that is frequently difficult to change. A world view.

slide-2
SLIDE 2

CoSc 450: Programming Paradigms Objective To learn three major programming models that complement the procedural and OO models:

  • Functional paradigm
  • Declarative/logic paradigm
  • Concurrent paradigm
slide-3
SLIDE 3

CoSc 450: Programming Paradigms Programming language

  • Functional paradigm — Scheme
  • Declarative/logic paradigm — Prolog
  • Concurrent paradigm — Java and C--
slide-4
SLIDE 4

CoSc 450: Programming Paradigms Motivation A good background in different programming languages has given me the ability to think

  • utside the box of one language style or
  • another. Without this background, I would not

be as valuable to my decidedly practically- minded company—even though we do not generally use theoretically interesting languages. — John Prevost, ArsDigita Corporation

slide-5
SLIDE 5

CoSc 450: Programming Paradigms

Computer Science and Programming

01

slide-6
SLIDE 6

CoSc 450: Programming Paradigms Demo Scheme The read – eval – print loop.

slide-7
SLIDE 7

CoSc 450: Programming Paradigms Lambda expression A lambda expression evaluates to a function.

(lambda (x) (* x x))

Function

slide-8
SLIDE 8

CoSc 450: Programming Paradigms Lambda expression A lambda expression evaluates to a function.

(lambda (x) (* x x))

Parameter list

slide-9
SLIDE 9

CoSc 450: Programming Paradigms Quilt pattern class exercise