Description
This course will allow you to improve the performance of your programs and maintain them efficiently by teaching you the main primitives of the kernel, the creation of graphical interfaces and input masks. You will also be introduced to the modern approach to Object programming, allowing you to better master this essential tool for creating high-performance software.
Who is this training for ?
For whom ?
Computer scientists concerned with operating procedures in Unix, Linux or Windows environments.
Prerequisites
Good knowledge of the Perl language or knowledge equivalent to that provided by the "Perl Language" course ref. PRL.
Training objectives
Training program
- System programming
- Reminder of the principles of processes: fork and exec.
- Reminder of the principles of signal management.
- Send a signal to processes: the kill function rnManage signals: the sigtrap pragma, install a signal manager.
- Programming sockets and services from IO::Socket to Net::Server.
- Programming presentation threads.
- Practical work rnWriting Perl programs to manipulate system functions.
- Perl and the object
- Some definitions: object-oriented programming, class, instance, constructor, destructor, inheritance.
- Implementation of the object: the package for the class, the hash for the attributes, functions for methods.
- Instance creation: the blessing of the object reference.
- Programming a constructor.
- Act when the object is destroyed, the DESTROY method.
- Inheritance: the table
- ISA and the UNIVERSAL class.
- Method overloading, the use of SUPER.
- Abstraction: the future of the object in Perl, from Class::Std and Class::Accessor to Moose.
- Practical work Programming classes .
- Implementation of object concepts (inheritance, overload).
- Graphical interface: from Perl/Tk to GTK
- Understand and maintain code written in Perl/Tk.
- Overview and installation of Perl/Tk.
- Geometry manager: Pack, Grid, Place .
- Widgets by family.
- Buttons: Button, Checkbutton, Radiobutton.
- Label and input area: Label, Entry.
- Lift, list, menu and text entry: Scrollbar, Listbox, Menubutton, Optionmenu, Text.
- Containers: Canvas, Frame, Toplevel.
- Practical work Creation of an application with a graphical interface in Perl/Tk and event management.
- Write new code using GTK
- Link between Pert and GTK: install GTK and its libraries.
- Widget: hierarchy, creation, keyboard accelerators, base containers, .
- Widget: signals and events.
- Types of buttons: Toggle (switches), radio, .
- Practical work Manipulation of different components: buttons, button box, Widget frame, .
- Evolutions
- Features brought by Perl 5.10, 5.12, 5.14.
- Perl 6: a new language.
- New features: sigils, static and dynamic typing, formal parameters of functions.
- A true Object language.
- Junctures and lazy evaluation.