Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jesperancinha/radioactive-narwhals-shop

This repo wants to show examples of how sequences can be used and how code can be made clean and readable using extension functions. It also tries to unlock the misconceptions about the usages of BigDecimals and how solutions like using Long everywhere may not be the best possible option.
https://github.com/jesperancinha/radioactive-narwhals-shop

go go-lang go-li jdk19 kotlin kotlin-coroutines kotlin-maven-plugin maven

Last synced: about 1 month ago
JSON representation

This repo wants to show examples of how sequences can be used and how code can be made clean and readable using extension functions. It also tries to unlock the misconceptions about the usages of BigDecimals and how solutions like using Long everywhere may not be the best possible option.

Awesome Lists containing this project

README

        

# Radioactive Narwhals Shop

---

[![Generic badge](https://img.shields.io/static/v1.svg?label=GitHub&message=Radioactive%20Narwhals%20Shop%20☢%20&color=informational)](https://github.com/jesperancinha/radioactive-narwhals-shop)

[![RNS Build](https://github.com/jesperancinha/radioactive-narwhals-shop/actions/workflows/rns.yml/badge.svg)](https://github.com/jesperancinha/radioactive-narwhals-shop/actions/workflows/rns.yml)

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b324ede66f994efda4a7f9f22b9fdf3c)](https://www.codacy.com/gh/jesperancinha/radioactive-narwhals-shop/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jesperancinha/radioactive-narwhals-shop&utm_campaign=Badge_Grade)

[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/b324ede66f994efda4a7f9f22b9fdf3c)](https://www.codacy.com/gh/jesperancinha/radioactive-narwhals-shop/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jesperancinha/radioactive-narwhals-shop&utm_campaign=Badge_Coverage)
[![codecov](https://codecov.io/gh/jesperancinha/radioactive-narwhals-shop/branch/main/graph/badge.svg?token=DBqHBjzDxf)](https://codecov.io/gh/jesperancinha/radioactive-narwhals-shop)
[![Coverage Status](https://coveralls.io/repos/github/jesperancinha/radioactive-narwhals-shop/badge.svg?branch=main)](https://coveralls.io/github/jesperancinha/radioactive-narwhals-shop?branch=main)

[![GitHub language count](https://img.shields.io/github/languages/count/jesperancinha/radioactive-narwhals-shop.svg)](#)
[![GitHub top language](https://img.shields.io/github/languages/top/jesperancinha/radioactive-narwhals-shop.svg)](#)
[![GitHub top language](https://img.shields.io/github/languages/code-size/jesperancinha/radioactive-narwhals-shop.svg)](#)

---

## Intro

--- Under Construction ---

This repository is here to show and try to break the stereotype that sequences "are complex".
Kotlin sequences do allow for a much better presentable and beautiful code and standardizes the way we implement
algorithms.

The story that backs-up this article is located in [Narwhals.md](Narwhals.md).

## Project Layout

- [commons](commons) - A common library where the domain and the data transfer objects are shared
- [rn-data-reader](rn-data-reader) - A data reader for input files in XML format
- [backend](backend) - The go-to solution for the current case
- [backend-long](backend-long) - A solution based on old paradigms, filled with anti-patterns and old software patterns now obsolete. In the code references to anti-pattern will be used to refer code used by this module.
- [backend-long-vanilla](backend-long-vanilla) - One solution that avoids using decimals by using long

>NOTE: The `long` and `long-vanilla` solutions are currently being implemented, and they have started out as blatant copies of the `backend`.

## How to build

Build everything in one go with command:

```shell
make b
```

## About Narwhals

- [Narwhal Wikipedia](https://en.wikipedia.org/wiki/Narwhal)

## Coverage Graphs

![alt sunburst](https://codecov.io/gh/jesperancinha/radioactive-narwhals-shop/branch/main/graphs/sunburst.svg?token=DBqHBjzDxf)
![alt grid](https://codecov.io/gh/jesperancinha/radioactive-narwhals-shop/branch/main/graphs/tree.svg?token=DBqHBjzDxf)
![alt icycle](https://codecov.io/gh/jesperancinha/radioactive-narwhals-shop/branch/main/graphs/icicle.svg?token=DBqHBjzDxf)

## About me

[![GitHub followers](https://img.shields.io/github/followers/jesperancinha.svg?label=Jesperancinha&style=for-the-badge&logo=github&color=grey "GitHub")](https://github.com/jesperancinha)