Fibber is a command line program that calculates and prints the fibonacci Sequence in a customizable fasion.
The name "fibber" was chosen for two reasons:
- using
_
or-
can often lead to unneccary confusion & issues in executable names. (e.g., "fibonacci_gen") - i believe having a product name is important, even if it's cheesy :)
The design of the codebase is dynamic, implimenting both Object-Oriented-Programming principals, and Functionally-Oriented-Programming principals, each where is most efficient in a modern programming setting.
Fibber can be run from a contained docker image, with no external dependencies.
To build and run the docker image, run the following in your shell of choice: (assuming you have Docker installed on your system)
docker build -t fibber . # build the image
docker run -it --rm --name fibber-instance fibber # run an anstance of the image
any desired args/flags can simply be appended to the run
command., i.e.:
docker run -it --rm --name fibber-instance fibber {args_go_here}
NOTE: the first time you build, the build may take ~2 minutes, this is normal and for optimization purposes
If you have Rust installed on your system, you can simply compile and run the application with ne external dependencies.
run in root of repo:
cargo run -- <args/flags here>
the --
is neccesary if running from the compiler cli, else args/flags will be passed to the compiler.
It is unadviasable in development, however you may run fibber directly from the executable provided by the compiler.
the executable is avilable at {repo_root}/target/{debug/release}/fibber{.exe}
To compile, run:
cargo build
In this case, args can simply be appended to the path of the executable, as is standard.
--count
must be <= 186, as anything greater will cause the fibonacci numbers generated to exceed
the allocation size of of a unsigned 128-bit integer (unsigned long long)