Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Underscore version (now with Suggestion thread!)

1455804939
Lucian
Pro
API Scripter
Hi, Well, I'm back writing API scripts and I'm once again frustrated by the "vintage" underscore library that's in use on the API server. I posted about it on this forum a while back, but that's obviously just been lost in the mists of time without dev response now, so I figured I might as well post a suggestion thread about it. Given that it will probably just get lost in the bit bucket there as well, given that it's only of interest to a minority of pro subscribers, I thought I'd give it a quick bit of promotion here, so that anyone who writes API scripts and cares about being able to write good quality code in a functional style can vote on it! <a href="https://app.roll20.net/forum/post/2982378/update-underscore-dot-js-to-latest-version/" rel="nofollow">https://app.roll20.net/forum/post/2982378/update-underscore-dot-js-to-latest-version/</a> Cheers, Lucian
1455807886
The Aaron
Pro
API Scripter
+1'd! A common (unfortunate) development cycle for me is: 1) read functions on underscorejs.org, 2) realize I've been doing something "the hard way" 3) fix it with the right _.func() 4) spend a long time trying to figure out why nothing works.&nbsp; 5) realize the ~3 year old function I'm using isn't supported.&nbsp; 6) revert all my changes&nbsp; 7) [optional] whiskey.&nbsp; (And I know you can _.mixin() Brian, but monkey patching is not my goal! =D )
+1 Normally, #7 becomes required for me, Aaron.&nbsp; ;-) That, or I put my fist through my monitor!&nbsp; The API is a great tool, but it does need some TLC.
1455818912
Ziechael
Forum Champion
Sheet Author
API Scripter
Riley D. said: I've updated the version on the API for the Dev Server to 1.8.3. If there aren't any issues with that over the weekend I'll update it on all API Servers next week.
Awesome!
+1 I've run in to so many dead ends as well following Underscore.js's documentation and I've had to find another way when it came up undefined.
1456558902
Lucian
Pro
API Scripter
Since there's a dev response on the suggestion thread, and the request is already on dev, maybe a moderator could close this thread now so we can direct attention over there for updates? Cheers,