Servizi per la didattica
PORTALE DELLA DIDATTICA

Distributed programming I

03MQPOV

A.A. 2018/19

Course Language

English

Course degree

Master of science-level of the Bologna process in Computer Engineering - Torino

Course structure
Teaching Hours
Lezioni 39
Esercitazioni in laboratorio 21
Teachers
Teacher Status SSD h.Les h.Ex h.Lab h.Tut Years teaching
Sisto Riccardo Professore Ordinario ING-INF/05 39 0 0 0 8
Teaching assistant
Espandi

Context
SSD CFU Activities Area context
ING-INF/05 6 B - Caratterizzanti Ingegneria informatica
2018/19
Course for the Laurea Magistrale degree in Computer Engineering, taught in English during the 2nd semester of the 1st year. The objective of this course is to provide the student with the knowledge and abilities required for developing distributed applications, starting with the so called 'network programming', up to the programming of a web application, including the access to a distributed relational data base. In particular, the course aims at providing the basic knowledge and abilities necessary for evaluating the main design choices for the above applications.
Course for the Laurea Magistrale degree in Computer Engineering, taught in English during the 2nd semester of the 1st year. The objective of this course is to provide the student with the knowledge and abilities required for developing distributed applications, starting with the so called 'network programming', up to the programming of a web application, including the access to a distributed relational data base. In particular, the course aims at providing the basic knowledge and abilities necessary for evaluating the main design choices for the above applications.
• Knowledge of the socket interface in C, for network programming, including both IPv4 and IPv6 versions. • Ability to apply the knowledge of the socket interface to implement distributed applications, including the case of dual-stack (IPv4 and IPv6) servers. • Knowledge of HTML (including the main aspects of HTML5), CSS and Javascript. • Ability to apply the knowledge of HTML, CSS and Javascript to develop simple web pages, including the interaction with the user using Javascript. • Knowledge of web applications that use server-side programming (dynamic web pages) and interaction with relational data bases. • Ability to develop web applications that use client-side programming (Javascipt), server-side programming (PHP) and interaction with remote relational data bases. • Knowledge of robustness, security, interoperability, and performance issues and related best practices
• Knowledge of the socket interface in C, for network programming, including both IPv4 and IPv6 versions. • Ability to apply the knowledge of the socket interface to implement distributed applications, including the case of dual-stack (IPv4 and IPv6) servers. • Knowledge of the main aspects of HTML5, CSS and Javascript. • Ability to apply Javascript to develop interactive web pages. • Knowledge of advanced aspects of web application programming: sessions, data serialization standards (JSON, XML), AJAX. • Ability to develop web applications that jointly use client-side programming (Javascipt), server-side programming (PHP) and interaction with remote relational data bases, including single-page and AJAX-based applications. • Knowledge of robustness, security, interoperability, and performance issues and related best practices
Knowledge of advanced C programming, including the basics of process management and synchronization in Unix. Knowledge of database management systems and ability to describe operations on them using the SQL language. Knowledge of the main protocols for computer networks, with particular reference to HTTP, TCP, UDP, IPv4 and IPv6. As the practical part of this course is very important, good debugging skills are also required, and the ability to use packet sniffing tools (e.g. Wireshark).
Advanced C programming abilities, including the basics of process management and synchronization in Unix. Knowledge of database management systems and ability to describe operations on them using the SQL language. Knowledge of the main protocols for computer networks, with particular reference to HTTP, TCP, UDP, IPv4 and IPv6. As the practical part of this course is very important, good debugging skills are also required, and the ability to use packet sniffing tools (e.g. Wireshark). Knowledge of HTML, PHP with access to data bases, and ability to develop simple web applications based on these languages.
• Introduction (0,3 CFU):  distributed interaction models (client-server, peer-to-peer, 2-tier, 3-tier, ...)  architecture of client-server applications and of web applications • Network programming (2,4 CFU):  the socket interface  network programming in the C language with the socket interface  handling concurrency and OS-specific aspects (in Linux)  using binary data representation standards (XDR) • Distributed applications based on the web paradigm (3,3 CFU):  HTML and CSS  scripting in the client side (Javascript)  scripting in the server-side (PHP)  managing sessions (cookies and other mechanisms)  integration with data bases
• Introduction (0,3 CFU): distributed interaction models (client-server, peer-to-peer, 2-tier, 3-tier, ...) architecture of client-server applications and of web applications • Network programming (2,1 CFU): the socket interface network programming in the C language with the socket interface handling concurrency and OS-specific aspects (in Linux) using binary data representation standards (XDR) • Distributed applications based on the web paradigm (3,6 CFU): HTML5 and CSS scripting in the client side (Javascript), Model-View-Controller (MVC) pattern advanced aspects of scripting in the server-side with PHP: sessions, cookies, files, objects management of robustness, security, interoperability, and performance issues and related best practices in web application development data serialization with JSON and XML, AJAX and single page applications
In addition to lectures, the course includes a programming laboratory (21 hours) about the application of the presented techniques. During laboratory time, the students will discuss with the teachers about the solution of the assigned exercises.
In addition to lectures, the course includes a programming laboratory (21 hours) about the application of the presented techniques. During laboratory time, the students will discuss with the teachers about the solution of the assigned exercises.
The teacher will provide material (copy of slides and links to online resources) that will be available on the course web site. Suggested textbooks: • W.R. Stevens, B. Fenner, A. M. Rudoff, Unix Network Programming, Volume 1, 3rd Ed., Pearson, 2004 • R. Nixon, Learning PHP, MySQL & JavaScript, 4th Ed., O’Reilly, 2014
The teacher will provide material (copy of slides and links to online resources) that will be available on the course web site. Suggested textbooks: • W.R. Stevens, B. Fenner, A. M. Rudoff, Unix Network Programming, Volume 1, 3rd Ed., Pearson, 2004 • R. Nixon, Learning PHP, MySQL & JavaScript With jQuery, CSS & HTML5, 4th Ed., O’Reilly, 2014
Modalità di esame: prova orale obbligatoria; prova di laboratorio; progetto individuale;
The exam consists of verifying the expected knowledge and skills acquired by the student by means of two practical tests followed by an oral discussion: a programming test on Network Programming (program to be developed in C with given requirements) and a programming test on Web Programming (web site to be developed using HTML, CSS, JavaScript, PHP, DB access, with given requirements). The two tests will contribute with the same weight to the final mark. The network programming test takes place in the lab in the date of the exam call while for the web programming test an assignment is given about 3 weeks before the exam call and the student develops the solution autonomously at home by the deadline indicated in the assignment. Only the students who have submitted their solution to the web assignment by the deadline are admitted to the network programming test. In order to take the network programming test, it is necessary for the student to have solved all the network programming assignments given in the labs during the course. The network programming test has a duration of about 2 hours. It requires the student to develop the code of some network applications by making some variations on the solutions of the exercises that were proposed in the labs during the course. These solutions must be loaded by each student in his/her personal area on the lab network disks, in the days before the exam. Each student can also load other electronic material in the same area (e.g. slides, pdf, etc) and access this material during the test, while no internet access will be possible during the test. Finally, during the test, each student can bring and use a single piece of paper material, that is, one set of bound notes or book. The evaluation of the network programming test is based on automated tests, some of which are provided to the students during the test. The web programming test solution is evaluated by the teacher together with the student, only if the network programming test has been passed, by means of manual verification of the web application functionalities and programming practices, according to a checklist not previously known by the stutend and dependent on the web assignment. The teacher also checks that the student has a puctual knowledge of the submitted code and can discuss the project with reference to the topics illustrated in the course.
Exam: compulsory oral exam; practical lab skills test; individual project;
The exam consists of verifying the expected knowledge and skills acquired by the student by means of two practical tests followed by an oral discussion: a programming test on Network Programming (program to be developed in C with given requirements) and a programming test on Web Programming (web site to be developed using HTML5, CSS, JavaScript, PHP, DB access, with given requirements). The two tests will contribute with the same weight to the final mark. The network programming test takes place in the lab in the date of the exam call while for the web programming test an assignment is given about 3 weeks before the exam call and the student develops the solution autonomously at home by the deadline indicated in the assignment. Only the students who have submitted their solution to the web assignment by the deadline are admitted to the network programming test. In order to take the network programming test, it is necessary for the student to have solved all the network programming assignments given in the labs during the course. The network programming test has a duration of about 2 hours. It requires the student to develop the code of some network applications by making some variations on the solutions of the exercises that were proposed in the labs during the course. These solutions must be loaded by each student in his/her personal area on the lab network disks, in the days before the exam. Each student can also load other electronic material in the same area (e.g. slides, pdf, etc) and access this material during the test, while no internet access will be possible during the test. Finally, during the test, each student can bring and use a single piece of paper material, that is, one set of bound notes or book. The evaluation of the network programming test is based on automated tests, some of which are provided to the students during the test. The web programming test solution is evaluated by the teacher together with the student, only if the network programming test has been passed, by means of manual verification of the web application functionalities and programming practices, according to a checklist not previously known by the student and dependent on the web assignment. The teacher also checks that the student has a punctual knowledge of the submitted code and can discuss the project with reference to the topics illustrated in the course. The students who submit good quality and original solutions to some exercises proposed during programming laboratories and get positive evaluation are exempted from the network programming test but are required to answer a question about their solutions during the oral exam. Exemption is valid for the current academic year, but only for the first time the exam is taken.


© Politecnico di Torino
Corso Duca degli Abruzzi, 24 - 10129 Torino, ITALY
m@il