Good morning. Anyone in here using Netsuite Fast t...
# suitescript
c
Good morning. Anyone in here using Netsuite Fast track Tookit SS2 in their suite scripts? Looks like the github repository that was hosting it has been moved under gitter-badger and the npm repository package has been removed. Does anyone have a recommendation on another Netsuite ORM?
s
I of course recommend continuing to use NFT 🙂. I'm surprised they chose to stop supporting the open source version, but you should have the latest and greatest. Using your own fork would also make it easy for you to add those additional features you wanted. If you want to make your copy open source I'd be happy to contribute
the project was MIT licensed throughout its history so any public source for it is about as open as possible.
c
To be honest I've been sweating a bit about pinging you about the fork/if you would be okay with it. I ended up setting one up on ns-tools/framework, and I've been making quite a bit of changes to it. I'd love to have you as a contributor! :) Quick question if you don't mind me asking. Is there any reason you didn't make the Sublist iterable? I added a base implementation of it (still need to handle testing/other stuff). It was driving me nuts having to do a for loop on the length and then casting the line as a separate statement. Potentially a gotcha issue with dynamic mode? I'd love to have a chat on the framework if you ever have some free time.
s
sublists are iterables as in they follow the iterator protocol - we always used them with 'functional' libraries like
lodash
and
immutable
good NFT code basically never has a
for
loop 🙂
let's chat more in DM if ye like. Like I said, I'm shocked that they deleted the open source repo and npm package but I can understand from their perspective. If you have an up-to-date fork that we can rally around that sounds good to me
c
I'm hoping for a more vanilla approach, and moving lodash/immutable to a separate repository for additional functionality if people want them. Right now my node_modules directory is sitting at 418 packages 😅
s
Aye, NFT doesn't depend on lodash or immutable - NFT included it because those were used in almost every script, so basically including NFT in a project once gave all your scripts for that client access to the most used tools - and helped avoid less experience developers from skipping their use due to deployment confusion.
in that sense, NFT was intended to be a toolkit with the most commonly used tools - sounds like you'd like to focus more on the ORM portions, which is fine and would make sense
Personally, I still like the idea of having a minimal package I deploy to NS which contains the most usable stuff - I really considered NFT to be a baseline, as if SuiteScript included it from the factory.