194.026 Functional Programming
This course is in all assigned curricula part of the STEOP.
This course is in at least 1 assigned curriculum part of the STEOP.

2023W, VU, 4.0h, 6.0EC, to be held in blocked form
TUWEL

Properties

  • Semester hours: 4.0
  • Credits: 6.0
  • Type: VU Lecture and Exercise
  • Format: Presence

Learning outcomes

After successful completion of the course, students are able to (among others)

  • explain the basic principles and concepts of the functional programming style and its theoretical foundation, to distinguish it from other programming styles like procedural, object-oriented, logical programming, and to identify and illustrate them considering the functional programming language Haskell.
  • solve programming tasks in-the-small by means of task-adequate Haskell programs, to develop expressive test cases to validate these programs, and to execute them using an interpreter like GHCi or Hugs.
  • explain the meaning and evaluation process of Haskell programs in a step-by-step manner for various evaluation orders.
  • reason about the chosen proceeding of programming and non-programming related issues factually and professionally.
  • investigate, assess, and compare Haskell programs with respect to syntactical and semantical correctness, generality, reusability, efficiency and performance properties, and adequate usage of functional language concepts.

This course is held in German. Without sufficient command of the German language you are unlikely to benefit from attending the course.

Subject of course

The course introduces the principles and concepts of functional
programming, where it stretches from the foundations to the
application. Using concrete problems as examples it will be
demonstrated and discussed how to use them for solving problems in the
tutorials complementing the course. Own proposals to solve
specific problems shall be presented and put up for
discussion. Practical assignments as part of the lab tutorial offer
the opportunity to independently apply and practice the functional
programming style, and to gain a deep practical understanding of the
concepts and principles of functional programming. For demonstration
and implementation in course and tutorials the state-of-the-art
functional programming language Haskell is used.

Part I: Introduction

  • Motivation

Part II: Basics

  • Elementary types, tuples, lists, strings
  • Functions
  • Type synonyms, new types, type classes
  • Algebraic data type declarations
  • Patterns and more

Part II: Applicative Programming      

  • Recursion
  • Evaluating expressions
  • Program development, program understanding

Part IV: Functional Programming

  • Higher-order functions
  • Polymorphism

Part V: Foundations of Functional Programming

  • Lambda calculus
  • Evaluation orders
  • Type checking, type inference

Part VI: Extensions and Advanced Concepts

  • Input and output
  • Error handling
  • Modules
  • Reflexive programming
  • Programming with streams and higher-order functions

Part VII: Conclusions

  • Looking back, looking ahead

References

Appendix

  • Formal models of computation
  • Other functional languages
  • Aspects of Implementation

Selected Reading Recommendations

  • Simon Thompson. Haskell: The Craft of Functional Programming.
    Addison-Wesley/Pearson, 3rd edition, 2011.
  • Ernst-Erich Doberkat. Haskell: Eine Einführung für Objektorientierte.
    Oldenbourg Verlag, 2012.
  • Peter Pepper. Funktionale Programmierung in OPAL, ML, Haskell und Gofer.
    Springer-V., 2nd edition, 2003.
  • Simon Peyton Jones (Edt.). Haskell 98: Language and Libraries.
    The Revised Report. Cambridge University Press, 2003.

Teaching methods

Methods:

  1. Guided self-dependent learning and practicing: Guided by means of lecture and flipped classroom sessions, the self-dependent learning and practicing of the competencies described in the learning outcomes utilizing lecture notes, theoretical and practical exercises, and self-reliantly chosen further material from text books, tutorials, and scientific articles proposed for further reading.
  2. Feedback-oriented, role model and informal learning: Direct individual feedback and hints for improvment in private student-teaching assistand meetings; direct and indirect feedback on contributions like presenting, explaining, comparing, contrasting, and rating own and others solutions of assignments in tutor-guided tutorials; working and agreeing on joint solutions of assignments in teams of 2 students.
  3. Self-assessing, self-reflexive learning: Tests, central and control questions supporting the regular self-assessment and self-reflection of one's own previous progress and success of learning.

This course is held in German. Without sufficient command of the German language you are unlikely to benefit from attending this course.

Mode of examination

Immanent

Additional information

The course is planned as in-person activity.

ECTS Break Down:

The course is assigned 6.0 ECTS points. This corresponds to an average
workload of 150 hours. This average workload is divided among the
various learning activities of the course as follows (Part I to Part VII refer to the respective parts of the course notes):

  • Guided learning activities (23.5h)
    • Lecture: 12.5h (10 units * 1.25h)
    • Flipped classroom: 2.5h (10 units * 0.25h)
    • Tutorials: 6.0h (8 units * 0.75h)
  • Independent learning activities (123.5h/125.0h/126.5h)
    • Self-dependent acquirement of learning outcomes: 28.0h (Reference point: Part I/6.0h, Part II/510.0h, Part III/6.0h, Part IV/12.0h, Part V/612.0h, Part VI/8.0h, Part VII/2.0h)
    • In particular: Solving assignments: 56.0h (Reference point: 6 (not graded) Assignments * 6.0h + 2 (graded) Assignments * 10.0h)
    • Preparation for the written tests (e.g., Central&Control Questions, Self-Assessment Tests, Questions&Answers Lectures and Lab Forums): 10,0h
  • Written tests (participating in 1, 2 or 3 tests (free choice) of 1.5h each): 1.5h/3.0h/4.5h

The course starts with a kick-off meeting and the first lecture on Tuesday, 3 October 2023, 11.15pm-12.45pm, in Informatik-Hörsaal.

 

Lecturers

Institute

Course dates

DayTimeDateLocationDescription
Tue11:00 - 13:0003.10.2023 - 16.01.2024EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon12:00 - 13:0023.10.2023 - 18.12.2023FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Mon12:00 - 13:0023.10.2023 - 18.12.2023Seminarraum FAV 01 A (Seminarraum 183/2) 194.026 Functional Programming (Tutorial group 1)
Mon17:00 - 18:0023.10.2023 - 18.12.2023Seminarraum FAV EG B (Seminarraum von Neumann) 194.026 Functional Programming (Tutorial group 2)
Wed09:00 - 11:0013.12.2023EI 5 Hochenegg HS LVA 194.026 Functional Programming
Functional Programming - Single appointments
DayDateTimeLocationDescription
Tue03.10.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Tue10.10.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Tue17.10.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon23.10.202312:00 - 13:00FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Mon23.10.202312:00 - 13:00Seminarraum FAV 01 A (Seminarraum 183/2) 194.026 Functional Programming (Tutorial group 1)
Mon23.10.202317:00 - 18:00Seminarraum FAV EG B (Seminarraum von Neumann) 194.026 Functional Programming (Tutorial group 2)
Tue24.10.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon30.10.202312:00 - 13:00FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Mon30.10.202312:00 - 13:00Seminarraum FAV 01 A (Seminarraum 183/2) 194.026 Functional Programming (Tutorial group 1)
Mon30.10.202317:00 - 18:00Seminarraum FAV EG B (Seminarraum von Neumann) 194.026 Functional Programming (Tutorial group 2)
Tue31.10.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon06.11.202312:00 - 13:00FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Mon06.11.202312:00 - 13:00Seminarraum FAV 01 A (Seminarraum 183/2) 194.026 Functional Programming (Tutorial group 1)
Mon06.11.202317:00 - 18:00Seminarraum FAV EG B (Seminarraum von Neumann) 194.026 Functional Programming (Tutorial group 2)
Tue07.11.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon13.11.202312:00 - 13:00FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Mon13.11.202312:00 - 13:00Seminarraum FAV 01 A (Seminarraum 183/2) 194.026 Functional Programming (Tutorial group 1)
Mon13.11.202317:00 - 18:00Seminarraum FAV EG B (Seminarraum von Neumann) 194.026 Functional Programming (Tutorial group 2)
Tue14.11.202311:00 - 13:00EI 3 Sahulka HS - UIW 194.026 Functional Programming
Mon20.11.202312:00 - 13:00FAV Hörsaal 2 194.026 Functional Programming (Tutorial group 3)
Course is held blocked

Examination modalities

Assessment of the concluding two assignments and written tests
on the lecture and tutorial material.

Detailed information on the assessment procedures and modalities are given
in the notes of the kick-off course meeting (cf. TUWEL course of the course).

Exams

DayTimeDateRoomMode of examinationApplication timeApplication modeExam
Fri10:00 - 12:0007.06.2024FH Hörsaal 1 - MWB written01.04.2024 11:11 - 31.05.2024 23:59TISSTest 3 (schriftlicher Test auf Papier)
Thu - 16.01.2025written09.12.2024 11:11 - 09.01.2025 23:59TISSTest 1 (schriftlicher Test auf Papier)
Fri - 07.03.2025written31.01.2025 11:11 - 28.02.2025 23:59TISSTest 2 (schriftlicher Test auf Papier)
Fri - 13.06.2025written07.04.2025 11:11 - 06.06.2025 23:59TISSTest 3 (schriftlicher Test auf Papier)

Course registration

Begin End Deregistration end
02.10.2023 11:11 06.10.2023 12:00 27.10.2023 18:00

Group Registration

GroupRegistration FromTo
Übungsgruppe 1 (12-13 Uhr, SR FAV 01)13.10.2023 08:0020.10.2023 18:00
Übungsgruppe 2 (17-18 Uhr, SR von Neumann)13.10.2023 08:0020.10.2023 18:00
Übungsgruppe 3 (12-13 Uhr, FAV HS 2)13.10.2023 08:0020.10.2023 18:00

Curricula

Study CodeObligationSemesterPrecon.Info
033 521 Informatics Mandatory electiveSTEOP
Course requires the completion of the introductory and orientation phase
033 526 Business Informatics Mandatory electiveSTEOP
Course requires the completion of the introductory and orientation phase
033 534 Software & Information Engineering Mandatory electiveSTEOP
Course requires the completion of the introductory and orientation phase

Literature

No lecture notes are available.

Previous knowledge

  • General: Mastering of the professional, methodological, cognitive, practical, social and self-competencies instructed in the lectures of the 1st study year on the competency levels to be achieved there.
  • Specifically: Abstract thinking, mathematical-logical thinking and diction.

Preceding courses

Accompanying courses

Continuative courses

Language

German