Skip to content

Francisco briceno#2

Open
fjavier wants to merge 27 commits intoProject5Q:masterfrom
fjavier:francisco-briceno
Open

Francisco briceno#2
fjavier wants to merge 27 commits intoProject5Q:masterfrom
fjavier:francisco-briceno

Conversation

@fjavier
Copy link

@fjavier fjavier commented Oct 5, 2015

Greetings,
I complete the challenge. 😃 ✋ ⌚

fjavier added 27 commits October 4, 2015 11:35
Welcome is the home page of the app.
creating JS in the view, this is not so Ok. but by now i just wanna play with The RxJs:
I created a Observable for the request and response from the API.
I made a Observable Stream to control some actions for each minute.
I made a function to get BPI (Bitcoin Price Index) results, from the stream Response.
And the best part(It work.git commit -m
creating JS in the view, this is not so Ok. but by now i just wanna play with The RxJs:
I created a Observable for the request and response from the API.
I made a Observable Stream to control some actions for each minute.
I made a function to get BPI (Bitcoin Price Index) results, from the stream Response.
And the best part(It work)
…olling average.

Show at the user a diferente msg at the user, if the length is less than 5.
Fix function Calculate Rolling Average (it function get The rolling average from the last five prices)
The rolling average is just the calculate of n elements given.
The array bpiList stored all the values getting of the response and the array grows exponentially.
The buffer got the elements of a stream of the array.
this method to calculate the average consuming many resources.

The solution:
push the elments in the array, when have a lenght of five elements, calculate the rolling average and
shift the first element of the array.
when the next value is comming then push the value at the array.
in this manner the array ever will have 5 elements and the calculation will be faster.
Stream get data and rendered in each column.
The columns are waiting the values.
The rolling average is appended at the table, in the column where wait the data, rendered the msg: please wait.
Move the app to a file js.
show the time left to pudate the current price.
Move all the inline styles in document at file .css
Footer added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant