Skip to content

Presentation and code from my talk: Functional Programming in Industry

Notifications You must be signed in to change notification settings

AL333Z/fp-in-industry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video

12/2019 - FPinBO at LuogoComune (BO)

12/2019 - FPinBO at LuogoComune (BO)

Abstract

The Functional Programming paradigm has largely been emphasized in academia rather than commercial or industrial settings. However, languages that support functional programming may show their best when used to actually deliver value to the business.

In this talk, You will see how a bunch of datatypes and techniques can help in implementing a pretty common business case and You will then discover how there's no need to be a mathematician in order to be a functional programmer.

How to run

  • To bring up mongo and rabbit: docker-compose up -d
  • Export these env var:
export MONGO_USERNAME=root
export MONGO_PASSWORD=example
export RABBIT_USERNAME=guest
export RABBIT_PASSWORD=guest
  • run both applications: sbt "runMain api.OrderHistoryApp" and sbt "runMain projector.OrderHistoryProjectorApp"
  • now you can create the queue and push any message, e.g.
{
  "id": "001",
  "company": "ACME",
  "email": "[email protected]",
  "lines": [
    {
      "no": 1,
      "item": "jeans",
      "price": 100
    }
  ]
}
  • and query the api

How to run tests

sbt test

About

Presentation and code from my talk: Functional Programming in Industry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages