Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Elm refactor: performance and readability #130

Merged
merged 7 commits into from Jan 17, 2017
Merged

Conversation

cuducos
Copy link
Collaborator

@cuducos cuducos commented Jan 15, 2017

Despite minor enhancements this PR is focused on enhancing performance and readability by:

  • Using Array (instead os List) to store data that needs to be accessed by index (the main reimbursement list, and reimbursement summaries in the same day and same subquota panels)
  • Using Dict String String (instead of List ( String, String )) to check and manipulate URL parameters (for example, whenever we need to check the hash from URL for a page parameter)

In the minor enhancements list I'd mention: changing some data types, renaming things to match the current abstraction of CEAP, compiling settings, organizing imports, some clean up etc.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 09557ad on cuducos-elm-refactor into ** on master**.

@rogeriochaves
Copy link
Contributor

rogeriochaves commented Jan 15, 2017

LGTM, naming it Reimbursement is much better than Document!

query
|> Dict.fromList
|> Dict.get "page"
|> Maybe.andThen (String.toInt >> Result.toMaybe)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@anaschwendler anaschwendler merged commit 09557ad into master Jan 17, 2017
@anaschwendler anaschwendler deleted the cuducos-elm-refactor branch January 17, 2017 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants