Article Evgeny Shvarov · Jul 14, 2016 1m read Caché Haiku Alex Koblov posted today a #CachéHaiku: Full command names Make your code more readable Than compact versions My haiku: Caché Globals Shows you keys to the value If you $order it Your variant? ;) #Caché 8 19 1 1K
Article Evgeny Shvarov · Jun 13, 2016 1m read Debug: using locks for breakpoints Hi, Community! Want to share with you one debugging approach from the Russian forum. Suppose I want to debug the application and I want it to stop the execution on a particular line. I add in code this line: l +d,-d When I want to start debugging in this line I block d in terminal USER> l +d And execute the app. The app stops on this line and lets me connect to it with Studio debugger. #Best Practices #Debugging #ObjectScript #Caché 0 8 1 600
Article Evgeny Shvarov · Jun 8, 2016 1m read How to post an article from Word or Google Docs Hi, Community!If you prepare your longread for DC in Microsoft Word or Google Docs there is one very easy way how to add your formatted text and images in DC post at once.To make it do the following:1.Click Create Post on Developer Community.2. Copy all the text in Word o GDocs to the buffer.3. Click the button Paste from word (see the shot):4. Paste the text to the opened window an press OK. #DC Feedback #Developer Community FAQ 0 7 0 479
Article Evgeny Shvarov · May 11, 2016 1m read The simplest snippet to read from file in InterSystems IRIS Hi! I believe the simplest is (to work with csv delimited by ";"): set file = ##class(%File).%New( "data.csv" ) set sc = file.Open( "R" ) if $$$ISERR(sc) quit ; or do smth while 'file.AtEnd { set str=file.ReadLine() for i=1:1:$length( str, ";" ) { set id=$piece( str, ";" ,i ) write !, id // or do smth } } do file.Close() Possible options: different variants of error handling with sc code. Embrace while loop into try/catch block. And what's yours? #Code Snippet #CSV #ObjectScript #Caché #InterSystems IRIS 3 16 0 6.5K
Article Evgeny Shvarov · Apr 16, 2016 1m read Try catch block I usually use in InterSystems ObjectScript Hi! Want to share with you code snippet of try catch block I usually use in methods which should return %Status. { try { $$$TOE(sc,StatusMethod()) } catch e { set sc=e.AsStatus() do e.Log() } Quit sc } Here $$$TOE is a short form of $$$TROWONERROR macro. Inside macro StatusMethod is any method you call which will return %Status value. This value will be placed into sc variable. #Code Snippet #ObjectScript #Caché #InterSystems IRIS 5 21 2 3K
Article Evgeny Shvarov · Apr 15, 2016 2m read Sources for InterSystems Global Summit 2016 Sessions and Experiences Hi! Please find all the source code Global Summit 2016 Sessions and Experiences in following GitHub repositories: #Global Summit 2016 #ObjectScript #Global Summit 4 1 0 904
Article Evgeny Shvarov · Mar 18, 2016 1m read Developer Community MVP of March and the Winner of GLobal Summit Contest II is ... Hi, Community! The Second InterSystems Global Summit Contest finished yesterday, and we have a new winner! John Murray has won the prize and showed very impressive contribution activity with the result: #Global Summit 2016 #DC Feedback #Global Summit 2 4 0 281
Article Evgeny Shvarov · Mar 10, 2016 1m read DeepSee Termlist Deployment What is the best way to deploy DeepSee Termlists? #InterSystems IRIS BI (DeepSee) 0 5 0 336
Article Evgeny Shvarov · Mar 9, 2016 2m read How to make posts with code on Developer Community Hi! Here is small "How to" again. Suppose you need to share something with source code. How can we manage it on DC? Sharing code snippets 1. Add normal post (not Code Package). 2. Paste your code in the post and format it with highlighting as it is described here. #Caché #Code Snippet #Coding Guidelines #DC Feedback 3 2 0 459
Article Evgeny Shvarov · Feb 15, 2016 2m read How to highlight Caché ObjectScript, work with htm, add image in the post and other questions Hi, Community! We've updated Developer Community (DC) portal and here are some good news. Now you can insert in your post highlighted parts of code. It works with help of highlight.js library. To illustrate it I took some code snippets from Fabian's article. #Developer Community FAQ #DC Feedback 10 13 0 1.1K
Article Evgeny Shvarov · Feb 1, 2016 1m read How to Make a Post and Other Frequently Asked Questions Hi, InterSystems Developer Community!We are working to improve this site to make it comfortable to read, contribute, share and get answers from InterSystems Developer Community!But while we haven't fixed some UI issues please find in this post some simple answers on how to deal with Developer Community.How to add post?Open Communities page, choose desired e.g. Caché and click "Create New Post" button. #DC Feedback 4 17 0 440
Article Evgeny Shvarov · Dec 14, 2015 1m read Cache Web Terminal Release 3.1.4 Hi ISC Community!I'm pleased to announce new release of Caché Web Terminal 3.1.4.What's new:1. Drag'n'drop to Studio installation: just import xml in any namespace.2. After import and comilation access your web terminal app on URL server:port/terminal/.F.e. localhost:57772/terminal/ Slash is mandatory.3. No need to use %CACHELIB anymore - please feel free to update your Caché and continue using CWT. #Caché #Development Environment #Terminal #Release 6 13 1 1.1K