Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohamad-shosha/function-programming

Created a project showcasing lambda expressions and method references in functional programming, with a focus on unit testing for code reliability.
https://github.com/mohamad-shosha/function-programming

functional-interfaces functional-programming java lambda-functions method-references

Last synced: 21 days ago
JSON representation

Created a project showcasing lambda expressions and method references in functional programming, with a focus on unit testing for code reliability.

Awesome Lists containing this project

README

        

# Functional Programming Project

This project demonstrates the use of functional programming concepts in Java, focusing on lambda expressions and method references. It includes comprehensive unit testing to ensure code reliability and correctness.

## πŸ“ Table of Contents
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Getting Started](#getting-started)
- [Build the Project](#build-the-project)
- [Navigate to the Project Directory](#navigate-to-the-project-directory)
- [Running Tests](#running-tests)
- [Technologies](#technologies)
- [Resources](#resources)

## πŸš€ Features

- **Lambda Expressions**: Simplify code and enhance readability with functional programming constructs.
- **Method References**: Use concise method references to streamline code.
- **Unit Testing**: Ensure code quality and functionality with thorough unit tests.

## πŸ“– Prerequisites

Before you begin, ensure you have the following:

- **Java Development Kit (JDK)** installed (preferably JDK 11 or later).
- **Maven** installed for managing dependencies and building the project.
- Your favorite IDE (e.g., IntelliJ IDEA, Eclipse) for code editing.

## ✨ Getting Started

### Step 1: Clone the Repository

Clone this repository to your local machine using:

```bash
git clone https://github.com/your-username/functional-programming-project.git
```

### Step 2: Navigate to the Project Directory

```bash
cd functional-programming-project
```

### Step 3: Build the Project

```bash
mvn clean install

```

### Step 4: Run the Project
Run the project using Maven:

```bash
Copy code
- mvn exec:java -Dexec.mainClass="functionprogramming/src/main/java/com/shosha/springboot/demo/Main.java"
```

## πŸ§ͺ Running Tests
Execute the unit tests to verify code functionality:

```bash
Copy code
- mvn test
```

## πŸ“šTechnologies
- Java: The programming language used.
- Maven: For dependency management and build automation.
- JUnit: Framework for unit testing.
- Lambda Expressions and Method References: Key functional programming features.


## πŸ“š Resources

* [Java Lambda Expressions](https://www.w3schools.com/java/java_lambda.asp)
* [Java Method References](https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html)
* [JUnit Documentation](https://junit.org/junit5/docs/current/user-guide/)