I want to use Github Copilot with SuiteScript :sli...
# random
e
I want to use Github Copilot with SuiteScript 🙂
m
I do, some of the suggestions are pretty on point
😲 1
a
I literally cannot get it to predict
query.runSuiteQL(theQuery).asMappedResults()
n
I use TabNine and Mintlify, have you tried those? Mintlify is not code completion but can be very useful when looking at another persons code that's not commented and for knocking up quick comments for your own code in blocks.
Mintlify created this comment block for me:
😮 2
n
I thought it doesn't work with SuiteScript. Thanks @michoel I will give it a try.
@NElliott tabnine is working with SuiteScript? How do you rate it?
n
It's pretty impressive, seems to intelligently add in variables / objects as you type.
n
which version are you using?
n
ehm... the "free version" 😄
😂 1
message has been deleted
n
Just installed it in WebStorm... not suggesting anything 😄
n
It will learn
I also love Mintlify, it's freakily aware at times, makes your head spin.
See this:
n
😮
n
Makes life a little easier viewing someone's code and they've used variables such as "hitlersHamster" 😄
🤣 2
s
I'm going to try it out, but having comments that simply regurgitate WHAT code does are not very useful comments imho
or more like documenting HOW it does it. The high level 'what' and all the 'why' is missing from such comments.
n
Alright Debbie Downer 🤭 If I have several thousand lines of someone else's code with precious little in the way of comments I'll take a nice generated comment than nothing 🤷‍♂️
👍 1
👍🏻 1
s
Yes, shame on them 🙂
n
Lets face it there's also those in the room that would argue the code should be self explanatory. Not about to argue 🐸
99 1
Also, I recently picked up a SS1.0 script and having to put that hat back on was a ball ache. A quick highlight CTRL-SHIFT-. came in very useful on blocks of code 😉
s
that sounds like an ideal use case for a tool like this
n
At least function name should be self-explanatory
s
code should be easy to read, no doubt, so the best comments are those that enlighten on that which is important and not knowable simply by inspecting code. I guess that means humans are still useful - but too rarely write 'good' comments per this definition anyway.
I'm actually potentially more interested in the documentation linking product they have
n
Ever used JSDocs in anger to create documentation as web pages?
Like this Braintree template example:
s
Sure, but no anger. NFT generated API docs are from JSDoc content
n
😄 maybe "use in anger" is an unfamiliar phrase. I've struggled in the past to get consistent results, not had enough time to tinker with it though tbh.
oosh 16:30 already, time to log off.
s
NFT is in TypeScript so it's harder to be inconsistent I guess. Have a good one!
n
^^ I was referring to setting up the process / templates in WebStorm don't you start getting all evangelical on me about TypeScript 😄 😄 😄 😄 cheers 😉
s
maybe I have it easy - with this utility I found called 'typedoc' I just generate the docs using
gulp  docs
that executes that utility against the codebase. Perhaps typedoc is doing the heavy lifting so I don't have to?