Live data from Hacker News

Show HN: A free, lightweight static page to get stock quotes using the IEX API

github.com

21–30 of 42 posts

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#22

One thing I've taken away from this is vanilla Javascript seems to have come a long way, or I've just never taken the time to fully appreciate all the features For example I didn't even realise JS supported string interpolation https://github.com/toddwschneider/stocks/blob/master/index.h...

After several years of stagnation, ES6[1] massively improved the language, and there is a pipeline of more proposals[2].

[1]: http://es6-features.org/

[2]: https://github.com/tc39/proposals

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#23

One thing I've taken away from this is vanilla Javascript seems to have come a long way, or I've just never taken the time to fully appreciate all the features For example I didn't even realise JS supported string interpolation https://github.com/toddwschneider/stocks/blob/master/index.h...

I had taken a nearly six year break from JavaScript coding until about 7 months ago. It has definitely come a long way and is pretty great to use now.

There’s still a lot of “pain” left in the build processes, transpiling, etc, but they’re less painful than they were half a decade ago. Those are also less specific to issues with the language, and more with how we need to use the language.

While not plain JS, I’d strongly recommend trying Vue if you’re getting back into JS. Is a true pleasure to use on a daily basis, and I never find myself fighting it. It makes writing non static sites with interactivity a breeze, and even when I’m building near static pages, I like how it helps me to organize my code (from a structure standpoint, it isn’t opinionated on this stuff).

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#25

One thing I've taken away from this is vanilla Javascript seems to have come a long way, or I've just never taken the time to fully appreciate all the features For example I didn't even realise JS supported string interpolation https://github.com/toddwschneider/stocks/blob/master/index.h...

There's some really good examples of this in Wes Bos' (free) javascript30.com course - 30 short videos all using vanilla Javascript and showing some really neat new features.

Another really awesome new feature which I can't remember if it's in that course or not, is fetch - super simple AJAX API using promises. It's also used in this app: https://github.com/toddwschneider/stocks/blob/master/index.h...

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#26

What makes this a "static page"? It's all non-interactive javascript.

Static doesn’t mean no JavaScript or interaction. In fact many SPAs are just static pages served out of S3 and connecting directly to some API server to fetch data. A static page means no processing is done on a web server to serve you the rendered content. This saves you time and money, and ensures scalability for any amount of traffic.

There are different meanings. Back in the day there was DHTML, where D stands for dynamic. So static page 10 years ago would mean no javascript.

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#27
hmm, while this is cool i am not sure if it is a full-fledged replacement for the Google Finance "portfolios" feature. That lets you add the number of stocks you own for each symbol and shows you an aggregate gain/loss per day, etc. That was the main reason i was using google finance.

I have now transitioned to my own Google Sheet with the "=GOOGLEFINANCE()" function for getting the stock data. Works pretty well.

Re: Show HN: A free, lightweight static page to get stock quotes using the IEX API

#28

One thing I've taken away from this is vanilla Javascript seems to have come a long way, or I've just never taken the time to fully appreciate all the features For example I didn't even realise JS supported string interpolation https://github.com/toddwschneider/stocks/blob/master/index.h...

I recently stumbled upon the Airbnb Javascript Style Guide, which I found showed a lot of good examples of how to use newer Javascript features: https://github.com/airbnb/javascript
Post reply on HN