
The Return and The Refactor
Hello there dear reader. Remember me? š Itās been almost 2 years since the last blog post and I can imagine it has felt like JS Bin has been the same for a little while now.
The issue tracker was building up (a high of over 650 open issues) and various server problems have continued to roll in. The height of which was a notification from Amazon (where JS Bin hosts on AWS), telling me the server JS Bin runs on, will be terminated and removed from usage in 7 days! š±
That last issue prompted a āquickā upgrade from node 0.10 to node 4, and then node 7. Which then triggered a cascade of problems to which eventually I threw my toys out of the pram and decided it was time to return to simpler times.
I started, from scratch, to write a new JS Bin. The first (working, but utterly limited) version was this:
In fact, this isnāt much of a departure from the original, v1 of JS Bin from back in 2008 (sure, itās less orange though!):
So, Iāve been working on this new refactor since July 2017 on and off between ārealā paid work and making slow progress. The current alpha version of JS Bin v5 is quite a decent way along, thought thereās still lots to do, thereās quite a few nice toys tucked inside new JS Bin too. Hereās one to whet your appetite:
Imports on (new) jsbin are pretty cool I think. Downloaded result includes full working version plus original source. pic.twitter.com/ARVH89ij9u
ā @rem (@rem) January 25, 2018
What does this mean?
It means thereās going to be a new, streamlined, modern JS Bin available soon. Just as importantly, all of the legacy code will be dispatched and the new code based entirely on modern development practises.
The biggest driver for the refactor is the constant downtime that JS Bin suffers for various reasons. This new, v5, version will run from entirely static content served over a CDN. It will have minimal reliance on online servers so the webapp aims to be fully offline capable.
There will be a number of features that will be dropped, and there will be some functionality yet to be written (for instance, mobile support is great on current JS Bin, but terrible in v5).
The aim: back to simple. Simple and fast is what JS Bin was good at. Now I want to add reliable to those principles.
Can you try it out?
Why yes, you can! And, if you donāt like it, you can always āejectā back to JS Bin v4 (from the palette menu).
Keep in mind that v5 is still in alpha, and there will be some undocumented parts, some broken parts, some missing parts. If you feel thereās something important or unobvious thatās going wrong, thereās a dedicated support link in v5 that you file an issue.
Thanks for reading, and Iāll be in touch again with updates the progress of v5 development.
ā¤ļø Love JS Bin?
Support this open source project today, and help it continue to run for another decade š