Hello everyone,
We shipped some code today that changes the way the IDE works. Technically this affects every algorithm, but we did it in such a way that you will hopefully not be inconvenienced.
What Changed
- The handle_data function has reversed the order of its arguments.
All of the existing algorithms used handle_data(data, context).
Going forward the order is handle_data(context, data). When you
build your algorithms, you'll get a very clear error message if you
have the old order. All of the examples and documentation have
been updated (we hope!). - The portfolio object has moved from data to context. If you're in
the habit of writing data.portfolio, you should change that to
context.portfolio. Again, when you build your algorithm, you'll get a
very clear error message if you have the old object. - The data.available property has been removed. Few people were
using the available property, but for the few who try, you'll get a
good error message. Use this form instead:
if sid(int) in data:
Why We Made The Change
These changes are the result of a combination of user feedback and some internal architecture work we're doing. We're very aware that breaking changes are a pain, and we don't plan on doing this often (or ever?) in the future. But we're pretty convinced that these are the right thing to do, and we wanted to 'bite the bullet' and make the changes before we get bigger. We're in beta still, and part of beta software is sometimes realizing you made a mistake!
As always, we welcome your feedback. If you have any thoughts on the changes we're making, changes we should make in the future, or suggestions on how to manage the change process better, please let us know. Replies below or email to [email protected] are most welcome.