-
Notifications
You must be signed in to change notification settings - Fork 157
[nano] Follow support? #21
Comments
Yes, I considered it for a while and then decided to keep it simple until a someone complained. It can make sense both ways: If you feel strongly about this and think you can do a good job at keeping the impact to a minimum send in a pull request. Side note: You might be interested in this project from @dominictarr - I know I was :) |
for what it's worth, follow is a dependency for replicate and it's working quite well so far. -Mikeal On Sep 20, 2011, at September 20, 20118:51 AM, Jason Smith wrote:
|
Yeah Follow is extremely robust, but unfortunately not demonstrably so because it has zero test coverage. For months I just ran a follow stream on my laptop and workstation while WiFi would crash, DSL would crash, I put my laptop to sleep, joined public WiFi networks, used Bluetooth and USB tethering over EDGE from 9,000 miles away, etc. If I ever found a crash I would figure out why and improve the code. Unfortunately those sorts of situations are hard to write unit tests for, e.g. you timeout and reconnect but DNS resolution is also down. Not that that is an excuse. But I in that context succumbed to the temptation to shirk the unit tests. |
Anyway, I am thinking of adding Nano support in Follow rather than the other way. Instead of giving it a string URL, you could give it a Nano DB object. From there it would pull out the info it needs. So you could write:
If that works well, maybe we can talk later about bundling follow into Nano:
|
Looks like a great plan for me. :) |
Hi, Nuno.
Is it appropriate to integrate any Follow functionality into Nano?
On the one hand, Follow also strives for simplicity and tries to mirror the
request
API. The other major advantage IMO is the inactivity timeout which is the only way to detect some kinds of error.On the other hand, I am not sure if it is "feature bloat" or "mission creep" for Nano.
Do you have any thoughts about this?
The text was updated successfully, but these errors were encountered: