Headline

A basic Python 3-based implementation

Motivation

Python is a dynamically typed scripting language, mainly focussed on OO-programming but nonetheless offering some tools to also provide basic functional programming capabilities. Python also prides itself on it's "Batteries included" philosophy which means that the language's standard library shouldcover all possible basic use cases of the language. This implementation takes the basic OO approach, implementing Company, Dept and Employee as classes, though due to python's dynamic approach, no inheritance hierarchy is needed (we could do this using dictionaries and classes in fact aren't that much more). Using Python's Pickle serialization module, the whole model can be serialized without further adaptation. The model implements structural equality, but only for the purpose of unit testing serialization.

Architecture

All classes and methods are contained in Company.py. Tests are in CompanyTest.py. Serialization is implemented by the pickle module.

Usage

Make sure to grab Python 3 from python.org, then from the project directory execute

 python3 CompanyTest.py -v

to run the test cases


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.