<@U5TF1GQ20>, how do I get better at writing Suite...
# general
m
@battk, how do I get better at writing SuiteScript?, I´m new to it and I manage to do what I want but probably do lots of things in an inefficient manner i.e. I used to load an entire record just to get a couple of fields or a single field. I learned to run a search now instead, to avoid loading the entire record etc...
b
_the SAFE_ guide is a fair place to start if you want to start learning performance related techniques
🙌🏼 1
m
@battk I just glanced at it, that's a great document. Thank you.
d
Taking a look at sample code helps a lot. Even if it doesn't apply to what you're working with, stare at it for a while and try to understand how it is touching records, sublists, etc.
m
@dansteg thank you, I will try that as well. I want to learn this stuff ASAP and prepare for my certification process.
e
@erictgrubaugh's youtube channel is great for beginners: https://www.youtube.com/c/StoicSoftware/videos But the NS help docs are beneficial as well - governance is listed for all functions. Like you mentioned, creating a search is more efficient than loading a record... though using search.lookup is generally even more efficient than creating and running a search. But knowing when to use which is something that come with experience. I'd also recommend looking over sample code like @dansteg mentioned. I learn best when given a working example, then changing certain things to see how that impacts the results. A ton of samples can be found in the help docs here: https://system.netsuite.com/app/help/helpcenter.nl?fid=chapter_1551381633.html
🙏 1
❤️ 1
m
@ericbirdsall, thank you. You solved my question before I even asked it. I wanted to find code to learn from. Thank you.