https://github.com/gyzerok/calculus
http://calculus-app.herokuapp.com/
https://github.com/gyzerok/calculus
Last synced: 2 months ago
JSON representation
http://calculus-app.herokuapp.com/
- Host: GitHub
- URL: https://github.com/gyzerok/calculus
- Owner: gyzerok
- Created: 2016-04-25T11:26:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T12:09:36.000Z (about 9 years ago)
- Last Synced: 2025-01-15T14:12:05.481Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculus

Here is a world changing service for simple math expressions evaluation.
## Try it!
You can easily make some calculations in the [web version](http://calculus-app.herokuapp.com/)
## Additional thoughts
Since pure functional style algorithms implementation is always hard I've done this in some mix of procedural and functional approach.
All the `Calculator` API are pure functions for better testability while inside they are done in imperative manner. The good idea would be to try to reimplement this stuff in Elm. Why not JavaScript? I guess this algorithm functional implementation would use pattern matching hardly. While you can achieve the same stuff pattern matching is doing with simple `if` statements, code would become as unreadable as in imperative version.