Course Details

Programming paradigms

MF0364

Course
Programming paradigms
Code
MF0364
Academic Year
2023/2024
Curriculum Year
2022/2023
Degree Programme
BIOLOGY
Curriculum
000 - CORSO GENERICO
Course coordinator
Lecturers
Credits
9
Lecture Hours
72
Scientific Disciplinary Sector (SSD)
INF/01 - Computer Science
Course Type
Single-subject learning activity
Course Delivery
OBB - Obbligatoria
Year
2
Teaching period
Primo Semestre
Campus
VERCELLI
Teaching language
Italian
Course Contents
The course consists of two parts. In the first, object-oriented programming in Java and the Test-based program development methodology are introduced. In the second part, functional programming is introduced using the Python language.
Reference Texts
Bruno, Corradini, Gervasi. Programmazione in Java, 2° edizione, AOGEO.
Recommended:
Programmare con Python. Guida completa di Marco Buttu, pro Dgital Life Style.
Core Python Programming (2nd Edition) di Wesley J Chun, Prentice Hall.
Material supplied by the teacher.
Learning Outcomes
Mastering of the theoretical foundations of object-oriented and functional programming.
Being able to model an application by identifying the components and the best paradigm for their description. Knowing how to design and implement the chosen solution using both Java and Python. Perform tests with JUnit. Master the Java and Python Collections framework. Knowing how to recognize and manage non-standard cases through exceptions.
Prerequisites
Formal prerequisites: passing grade in the Programming 1 and 2 courses.

Substantial prerequisites: mastering the principles of imperative programming.
Teaching Methods
Classroom lessons and lab sessions.

In classroom lessons are introduced the theoretical topics through slide presentations, with examples and some question sessions to test student understanding.

In the lab sessions, students are guided in the implementation of simple projects designed to put into practice the theoretical knowledge acquired.
Additional Information
The student is presented with weekly exercises (optional), which solution is started during the lab sessions and that should be completed by the student. The exercises are discussed and corrected both individually and in the classroom.
The final tests (described in "modalità di verifica") assess the student autonomy with respect to the design, implementation and testing of object-oriented programs implemented in Java.
Assessment Methods
The exam is made of three parts.

The first part done in the lab is aimed at testing the mastering of the programming tools (IDE use, test development) exercised during the lab sessions and of the theoretical concepts presented in lesson. For the testing of the tools the student is required to implement 2-3 classes with their test classes using the eclipse IDE, and for the acquisition of the theoretical concepts the students have to answer to 2-3 questions about the Java-oriented programming basics.

The second part requires to present a project designed and implemented either individually or in a group to asses both the ability to structure a problem in the object paradigm and its implementation with the use of Java libraries. The project is discussed during an oral exam.
The third part aims at testing the acquired competences as regards functional programming.

The score is determined by the scores in the three tests.
Detailed Syllabus
Introduction to Java.
Objects, classes, methods
Basic types, syntactic structures for flow control, arrays.
Wrappers for primitive types and auto-boxing/unboxing
Interfaces, polymorphism, inheritance
Parametric programming
Exception handling
Overview of the core libraries
New functional features of Java 8 and new collections libraries
Test-Driven Development
Pattern Programming Model-View-Controller
Introduction to functional programming in Python.
Functions as values
Higher order functions
Immutable data
Lazy evaluation
Working with Collections: recursion and reduction
Expected Learning Outcomes
Knowledge and understanding: familiarity with the principles of object oriented and functional programming, with the specific Java language, the model/view/controller architecture and the language Python.

Applying knowledge and understanding: ability to design and implement a project using object programming tools and deriving code from tests.

Making judgments: ability to recognize 1) good and bad programming practices, 2) when a programming paradigm is more or less appropriate and 3) and to evaluate the architectural quality of a project.

Communication Skills: mastering the specific terminology of object programming and functional programming and improving teamwork skills.

Learning Skills: ability to learn autonomously the use of other languages and other object oriented and/or functionally structured libraries.
Last update:09-09-2026 00:14:31