Headline

Support companies as plain collections of employees

Description

Flat companies are sufficiently described by the base feature Feature:Company.

Motivation

The data model for flat companies is supposed to provide a simple (in fact, trivial) starting point for contributions. Despite its simplicity, the data model readily exercises some data modeling facets: basic types such as strings and floats, compound types based on tuples or records, mandatory as opposed to optional properties, and list-based containers.

Illustration

The feature is illustrated with a data model in Language:Haskell; type synonyms instead of algebraic data types are used to emphasize the fact that no recursive are defined here:

type Company = (Name, [Employee])
type Employee = (Name, Address, Salary)
type Name = String
type Address = String
type Salary = Float

A sample company takes the following form:

( "Acme Corporation",
  [ 
    ("Craig", "Redmond", 123456),
    ("Erik", "Utrecht", 12345),
    ("Ralf", "Koblenz", 12342),
    ("Ray", "Redmond", 234567),
    ("Klaus", "Boston", 23456),
    ("Karl", "Riga", 2345),
    ("Joe", "Wifi City", 2344)
 ] 
)

Company data is a pair consisting of the company name and a list of employees. Each employee has a name, an address, and a salary.

These snippet originate from Contribution:haskellList.

Relationships

Guidelines

  • The terms "company", "employee", "manager", "name", "address", and "salary" should appear as part of the abstractions that realize the corresponding ingredients of the data model.
  • A sample company should be described and processed in some ways, depending on what other features are implemented.

Ralf Lämmel edited this article at Mon, 26 Jun 2017 20:18:15 +0200
Compare revisions Compare revisions

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.