Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mohamad-shosha/function-programming
- Owner: Mohamad-shosha
- Created: 2024-09-17T00:46:34.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T01:20:31.000Z (4 months ago)
- Last Synced: 2024-09-18T05:10:30.029Z (4 months ago)
- Topics: functional-interfaces, functional-programming, java, lambda-functions, method-references
- Language: HTML
- Homepage: https://www.baeldung.com/java-functional-programming
- Size: 182 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)