go to post Evgeny Shvarov · Oct 2, 2020 "Great minds think alike!" @Rob Tweed , @Dmitry Maslennikov ;)
go to post Evgeny Shvarov · Oct 2, 2020 Another "Realworld" ) That's funny ) Looking forward to seeing how two "realworlds" will compete with each other)
go to post Evgeny Shvarov · Sep 30, 2020 Thanks for the reply, Alexey. my topic is an attempt to find the value in %Status why people use it even for their own methods. IMHO it steals the option of return values from methods and code looks dirty with “mandatory” $$$TOE or $$$ISERR for every call of the method with %Status
go to post Evgeny Shvarov · Sep 30, 2020 AFAIK Try/catch indeed slows a bit the execution (@Dan.Pasco is it true?) And try/catch shouldn’t be presented in every method - it could be somewhere on top and in the places where you need to catch errors. I like your answer but for better understanding it deserves a sample code to see how do you manage error scenarios. we really lack of good templates for beginners on how to better handle errors in serious project.
go to post Evgeny Shvarov · Sep 29, 2020 Thanks for the insights, @Herman Slagman! $ZT + Label is better than try/catch %Status is better than try/catch too. why %Status is better than throw ("something went wrong") approach? But, how to do you track errors of your solutions happen on a customer side? There is an elegant way to manage this with try/catch: catch e { do e.log() // store the error and stack in Application Errors // handle error } How could you manage this with %Status and $ZT approach?
go to post Evgeny Shvarov · Sep 28, 2020 Thanks, Jon! Why try-catch doesn't work well without finally? I think finally is only for the cases when you need to free resources taken, isn't it?
go to post Evgeny Shvarov · Sep 28, 2020 Thanks for the answer, Gertjan! May I ask you, why don't you like try/catch? Is it slow? Imho it has all the error and stack information, what's wrong with try/catch?
go to post Evgeny Shvarov · Sep 28, 2020 I think if the method should return something else, it should return not %Status but the value.
go to post Evgeny Shvarov · Sep 27, 2020 Thanks, Ben! This is another good topic for discussion on should the test code be included in the production
go to post Evgeny Shvarov · Sep 25, 2020 right. We really need Global->JSON or GLobal to YAML export/import.
go to post Evgeny Shvarov · Sep 25, 2020 I like the name awesome objecscript! @Sergey Mikhailenko, @Dmitry Maslennikov - I can create awesome-objectscript repo in community github- please update as a VSCode extension for ObjectScript?
go to post Evgeny Shvarov · Sep 25, 2020 What is the easy way to add such snippets to my VSCode? Should it be a yet-another VSCode extension?
go to post Evgeny Shvarov · Sep 25, 2020 I agree on VSCode as a tool to use it. But what are the ideas on advertising and making improvements? A git repository then?
go to post Evgeny Shvarov · Sep 24, 2020 There is also a switcher if you want to generate and download it from the URL.
go to post Evgeny Shvarov · Sep 24, 2020 BTW, @Guillaume Rongier recently published an amazing example of a full-stack app: csvgen-ui. You can install it with zpm "install csvgen-ui" and it gives you the option to import any csv to IRIS just with drag-n-drop. Here is the demo:
go to post Evgeny Shvarov · Sep 23, 2020 Hi Henrique! It's a known issue. You need to add the attribute which disappears after check in and commit from Windows. I made a fix to the Full-stack repo