Skip to content

brymlee/functional-programming-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functional Programming Exercises


Getting Started

  1. Download and install IDE or setup workspace through command line
  2. Utilize the git clone command to clone this repository
  3. Install proper Java version: Suggested version is 8
  4. Run unit test for project either through IDE or command line (Uncomment test cases to begin TDD)

Code Direction

  • Only utilize data structures that are immutable
  • Mutable variables (local and otherwise) shouldn't be used
  • Reassignment of variables are not allowed
  • Try to use Guava or Java 8 functional utilities

Why Functional?

  • Immutability - Utilizing data structures that are immutable means unexpected results due to incomplete or impartial state will be eliminated
  • Reduction of Side Effects - Since functional code can only utilize inputs and return outputs then by this very nature side effects due to the real world will be nonexistant. In other words, given the same inputs into a functional piece of code, the output will always be the same.

About

Functional programming exercises using TDD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages