Skip to content

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.

License

Notifications You must be signed in to change notification settings

jesperancinha/radioactive-narwhals-shop

Repository files navigation

Radioactive Narwhals Shop


Twitter URL Generic badge

RNS Build

Codacy Badge

Codacy Badge codecov Coverage Status

GitHub language count GitHub top language GitHub top language


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.

Project Layout

  • commons - A common library where the domain and the data transfer objects are shared
  • rn-data-reader - A data reader for input files in XML format
  • backend - The go-to solution for the current case
  • 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 - 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:

make b

About Narwhals

Coverage Graphs

alt sunburst alt grid alt icycle

About me

GitHub followers

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages