Scripting Languages

Data is displayed for academic year: 2023./2024.

Course Description

Scripting languages represent a very different style of programming compared to traditional programming languages. They are designed for "gluing" applications - composing new programs by combining existing applications - components. That approach leads to higher level of programming and more rapid application development. In this course students explore the nature of scripting and their application areas. The topics include shell programming, regular expressions, Unix tools, and basics of Perl and Python programming.

Study Programmes

University undergraduate
[FER3-EN] Computing - study
Elective Courses (6. semester)
[FER3-EN] Electrical Engineering and Information Technology - study
Elective Courses (6. semester)

Learning Outcomes

  1. define scripting languages and list their properties
  2. select programming language and tools suitable for given problem
  3. write and apply simple bash scripts
  4. write and apply simple Perl scripts
  5. write and apply simple Python programs
  6. analyze and adapt simple bash, Perl and Python scripts

Forms of Teaching

Lectures

Lectures will be held two hours per week.

Independent assignments

Individual assignments will be solved as a preparation and within the laboratory exercises.

Laboratory

Laboratory exercises will be held in three blocks of 4 hours.

Grading Method

Continuous Assessment Exam
Type Threshold Percent of Grade Threshold Percent of Grade
Laboratory Exercises 50 % 30 % 50 % 30 %
Mid Term Exam: Written 0 % 30 % 0 %
Final Exam: Written 30 % 40 %
Exam: Written 50 % 70 %

Week by Week Schedule

  1. Introduction – features of scripting languages, typical application areas. Glue languages. Command line interpreters.
  2. Operating system shell programming. Redirection of input and output streams.
  3. Standard Unix tools.
  4. String manipulation via pattern-matching (regular expressions).
  5. Basic syntax and semantics of a higher-level language. Variables and primitive data types. Expressions and assignments. Introduction to Perl programming language.
  6. A type as a set of values together with a set of operations. Association of types to variables, arguments, results, and fields. Lists, arrays and associative arrays in Perl.
  7. Conditional and iterative control structures. Functions and parameter passing.
  8. Midterm exam
  9. Text processing in scripting languages. Regular expressions in Perl.
  10. Introduction to Python programming language. Simple I/O including file I/O. Conditional and iterative control structures. Functions and parameter passing
  11. Passing command line arguments.
  12. Lazy evaluation and infinite streams.
  13. Dynamic code evaluation (“eval”).
  14. Module systems. Modules and namespaces in Python. Object-oriented programming in Python.
  15. Final exam

Literature

Zoran Kalafatić (2012.), Skriptni jezici - materijali za predavanja u elektroničkom obliku, FER-2, Zagreb, 2012.,
Zoran Kalafatić, Antonio Pošćić, Siniša Šegvić, Julijan Šribar (2016.), Python za znatiželjne, Element
Stephen G. Kochan, Patrick Wood (2016.), Shell Programming in Unix, Linux and OS X, Addison-Wesley Professional
Randal L. Schwartz, brian d foy, Tom Phoenix (2016.), Learning Perl, O'Reilly Media, Inc.

For students

General

ID 210751
  Summer semester
5 ECTS
L1 English Level
L1 e-Learning
30 Lectures
0 Seminar
0 Exercises
12 Laboratory exercises
0 Project laboratory
0 Physical education excercises

Grading System

88 Excellent
75 Very Good
62 Good
50 Sufficient

Similar Courses