![]() |
VOOZH | about |
dotnet add package Fluent.Calculations.Primitives --version 1.1.0-aplha.59
NuGet\Install-Package Fluent.Calculations.Primitives -Version 1.1.0-aplha.59
<PackageReference Include="Fluent.Calculations.Primitives" Version="1.1.0-aplha.59" />
<PackageVersion Include="Fluent.Calculations.Primitives" Version="1.1.0-aplha.59" />Directory.Packages.props
<PackageReference Include="Fluent.Calculations.Primitives" />Project file
paket add Fluent.Calculations.Primitives --version 1.1.0-aplha.59
#r "nuget: Fluent.Calculations.Primitives, 1.1.0-aplha.59"
#:package Fluent.Calculations.Primitives@1.1.0-aplha.59
#addin nuget:?package=Fluent.Calculations.Primitives&version=1.1.0-aplha.59&prereleaseInstall as a Cake Addin
#tool nuget:?package=Fluent.Calculations.Primitives&version=1.1.0-aplha.59&prereleaseInstall as a Cake Tool
👁 Quality Gate Status
👁 Maintainability Rating
👁 Nuget
👁 Nuget (with prereleases)
👁 Nuget
👁 GPLv3 License
One of the more powerful ways to make a program readable is to break the calculations up into intermediate values that are held in variables with meaningful names. - Robert C. Martin, Clean Code, A Handbook of Agile Craftsmanship
<div align="justify"> By following this principle together wit Fluent Calculations library we gain an ability to write readable calculations as well as get insights at runtime. </div>
<div align="justify"> <p> Having worked on many line of business and some finance applications authors have observed a common difficulty of understating and communicating non-trivial business logic or calculations. </p><p> Validating the correctness of financial calculations, like tax calculations for example, involves a lot of effort on analyst or tester side. For a developer pinpointing problems from just the final result is challenging, thus often we resort to manual debugging. </p><p> TDD falls short of communicating more complex test cases to business people as it relies on quite granular decomposition. Splitting up some algorithms is not always a good option too, due to loss of the original conciseness. Troubleshooting calculations happening in a production environment is impossible without deploying some manual logging that makes code noisy and less readable. </p> <p> This project attempts to provide a clean way to get an <b>"X-ray"</b> of calculations or business logic. </p> </div>
Spend minutes of programming to save hours of debugging and testing.
Fluent.Calculations can be installed using the Nuget package manager or the dotnet CLI.
dotnet add package Fluent.Calculations.Primitives
Basic demo calculation:
public class Demo : EvaluationScope<Number>
{
Number
A = Number.Of(1),
B = Number.Of(2),
C = Number.Of(3);
Number D => Evaluate(() => A + B);
Number E => Evaluate(() => D * C);
public override Number Return() => E;
}
Number result = new Demo().ToResult();
The result value can be :
<img src="../assets/example/fluent-calculations-demo.dot.png" alt="Demo calculation graph rendering" width="280" height="auto">
GNU General Public License v3.0
We are bunch of .NET practitioners always looking for ways to make code great.
Loving it? Show your support by giving this project a star!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on Fluent.Calculations.Primitives:
| Package | Downloads |
|---|---|
|
Fluent.Calculations.DotNetGraph
A bridge between Fluent.Calculations.Primitives and DotNetGraph |
|
|
Fluent.Calculations.Graphviz
Package Description |
|
|
Fluent.Calculations.Primitives.Benchmarks
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0-aplha.59 | 160 | 3/24/2024 |
| 1.1.0-aplha.58 | 147 | 3/24/2024 |
| 1.1.0-aplha.57 | 141 | 3/24/2024 |
| 1.1.0-aplha.56 | 148 | 3/24/2024 |
| 1.1.0-aplha.55 | 127 | 3/23/2024 |
| 1.1.0-aplha.54 | 121 | 3/23/2024 |
| 1.1.0-aplha.53 | 142 | 3/23/2024 |
| 1.1.0-aplha.52 | 138 | 3/21/2024 |
| 1.1.0-aplha.51 | 133 | 2/24/2024 |
| 1.1.0-aplha.50 | 147 | 2/22/2024 |
| 1.1.0-aplha.49 | 182 | 1/11/2024 |
| 1.1.0-aplha.48 | 177 | 12/30/2023 |
| 1.1.0-aplha.47 | 139 | 12/30/2023 |
| 1.1.0-aplha.46 | 152 | 12/30/2023 |
| 1.1.0-aplha.45 | 134 | 12/30/2023 |
| 1.1.0-aplha.44 | 144 | 12/30/2023 |
| 1.1.0-aplha.43 | 149 | 12/30/2023 |
| 1.1.0-aplha.42 | 161 | 12/30/2023 |
| 1.1.0-aplha.41 | 157 | 12/30/2023 |
| 1.1.0-aplha.40 | 155 | 12/28/2023 |