go to post Evgeny Shvarov · Mar 11, 2019 Hi, Ed!it’s good that you cited docs here, all is fair.but you didn’t answer my question on the cases you use this particular expression. And considering that it checks the error status it mostly means that you quit from the method with it, right?so this should be return and not quit. Right?
go to post Evgeny Shvarov · Mar 11, 2019 But I think in this case should be: return:$$$ISERR(sc) sc I believe it's always the return from the method. Right, Ed?
go to post Evgeny Shvarov · Mar 11, 2019 Hola Daniel!Thank you for your explanation! And thank you for a really great tool! if condition do ..something() I agree, and this is not a good practice - two lines with if. But nobody does that in ObjectScript. As developers consider spaces in Python so developer follows the nuances of the ObjectScript. And oneliner if condition do ..something() is considered as a readable and convenient way to code ObjectScript. As well as postconditions on quit:$$$ISERR(sc) sc Daniel! I suggest to let Developer Community vote for the rules and this will let Community have a general version of adopted ObjectSript coding guidelines along with a general tool - CacheQuality which can so nicely help to control these guidelines. What do you think?
go to post Evgeny Shvarov · Mar 10, 2019 Don't like post conditions.And anyway - for this you'll get from CacheQuality:"Consider using an If statement instead of a postconditional (cachequality:OS0039)"with description:"This feature of the language may lead to shorter code overall; however, users unfamiliar with the language may have trouble understanding what this syntax means.For understandability reasons, it is preferred to use an if statement instead.";)
go to post Evgeny Shvarov · Mar 10, 2019 Why the construction: if condition do ..Method() is considered as a bad practice? IMHO it's more readable than : If condition { do ..Method() } I have plenty of this, e.g. here: if globalPath[".gz" do ..importXMLGlobal(globalPath) if globalPath[".xml" do $System.OBJ.Load(globalPath) Can I turn off the rule?
go to post Evgeny Shvarov · Mar 10, 2019 Also, there were some images of IRIS Community Edition baked by community members: this one by @Rob Tweed which goes with QEWD package inside. Another was published by @Dmitry Maslennikov, don't remember the post with the link.To make it work on your laptop you need Docker installed with the version 18+.
go to post Evgeny Shvarov · Mar 6, 2019 Hi @JAQUELINE KRIEGER ! I've introduced an issue to make it solved
go to post Evgeny Shvarov · Mar 6, 2019 Hi Mike!I'll answer on private messages. We don't have the option. We have it in Global Masters, but not all the DC members are GM participants at the moment. Request a feature?
go to post Evgeny Shvarov · Mar 4, 2019 BTW, is there any issue tracker for the general ObjectScript rules?
go to post Evgeny Shvarov · Mar 4, 2019 Great staff, thank you @Dmitry Maslennikov and @Daniel Tamajon! This makes VSCode for ObjectScript even more useful.Also, CacheQuality for VSCode is available on Open Exchange.
go to post Evgeny Shvarov · Mar 1, 2019 IMHO this deserves an enhancement request. Data for mapped lib classes is stored in User Namespaces, but tune params for this data in Lib Namespace. Looks difficult to use persistent classes as part of a library in this case. Maybe you can generate automatically the storage class @Eduard Lebedyuk mentioned with the first call from a User Namespace?
go to post Evgeny Shvarov · Feb 28, 2019 But why? "@" introduces an additional stack, right? And what is above in stack should be visible. Or not?
go to post Evgeny Shvarov · Feb 28, 2019 Wow. Confirm that for IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2019.1.0S
go to post Evgeny Shvarov · Feb 26, 2019 Hi David!Great you've found the answer by yourself! It happens to me sometimes right after I end writing a question)There is no need to add "Solved" to the title to indicate the question is closed. We have the feature of an accepted answer. So you can mark your answer as Accepted and this will be the indicator for the question as solved and it will disappear from the filter of Not accepted answers.Thanks for your contribution!
go to post Evgeny Shvarov · Feb 26, 2019 Kyle! Really great staff! This is also very helpful for DeepSee/IRIS Analytics projects, where you every time need to expand the access rules on yet another listing table.
go to post Evgeny Shvarov · Feb 24, 2019 Hi @Elize VdRiet !Have you tried VSCode ObjectScript plugin already? It doesn't have a debugger (yet), but it's lite-weight and cross-platform and has some nice features for ObjectScript support.
go to post Evgeny Shvarov · Feb 23, 2019 Yes, understood. Maybe we need to allow this? But the idea is if Author of the question accepted the answer that means he doesn't want any new changes to it and wants to keep it.
go to post Evgeny Shvarov · Feb 22, 2019 Agree with @Eduard Lebedyuk answer, want to introduce another toolset:1. Import ISC_DEV utility to a DEFAULT_INSTANCE say in a USER namespace and map the classes of the utility to %All.2. Setup the workdir to export the code YOURNAMESPACE> w ##class(dev.code).workdir("/path/to/your/wor king/directory/") 2. export code calling: YOURNAMESPACE> w ##class(dev.code).export() This will export cls, routines, and dfi (DeepSee) into separate files. 3. Create the repository in git and commit all the files from the directory into the repository (and even push, if you use Github/Gitlab) 4. Repeat p1-2 for a PRODUCTION_INSTANCE and export classes into the same directory. 5. Compare the changes. If you Open the directory in VSCode with Object_Script plugin by @Dmitry Maslennikov you will immediately see the changes in Source Control section of VSCode. E.g. I introduced one line and saved the class and it shows the files changed since the latest commit and the line with the change. Alternatively you can commit and push changes to Github/Gitlub and see the diff since the latest commit. E.g. like changes in this commit. If you don't have DeepSee resources, p.1 can be changed to Atelier or VSCode - both have the out-of-the-box functionality to export the source into files in UDL form. HTH