Actually, the case is very practical.

We need to know, which of the tags in DC relate to InterSystems Products and Services.

Every post on DC has a Tags field, which is a comma delimited string,  consists of  any of 150+ tags.

We need to form a Big Tag field, which is filtered Tags field with only the following values:  Caché, Ensemble, HealthShare, Intersystems IRIS, DeepSee, iKnow, Atelier, Online Learning, Documentation, WRC.

E.g. this particular post has Tags: Beginner, Caché

Big Tags will be: Caché

My variant is the following. General function of extracting subtag from tagsring which contains certain tags (intag):

ClassMethod SubTag(intag, tag, dlm As %String) As %String

{



for i=1:1:$L(intag,dlm) set intag($p(intag,dlm,i))=""

for i=1:1:$L(tag,dlm) {

set t=$p(tag,dlm,i)

if $D(intag(t)) set subtag($Seq(subtag))=t

}


while $d(subtag($Seq(l))) {

set $p(subtag,dlm,l) = subtag(l)

}

return $G(subtag)

}

And the calling function:

ClassMethod BigTag(tag As %String) As %String

{

set intag="Caché,Ensemble,HealthShare,Intersystems IRIS,DeepSee,iKnow,Atelier,Online Learning,Documentation,WRC"

return ..SubTag(intag,tag,",")

}

Usage:

USER>w ##class(Utils.Strings).BigTag("Beginner,Caché,Ensemble")
Caché,Ensemble
USER>w ##class(Utils.Strings).BigTag("Beginner,Caché")
Caché
USER>

Sorry, Alexey )

They are clickable for real but on the leaderboard pages. Here is the ObjectScript leaderboard, which you can join if you register on Advent of code site with email - and you'll have normal "white" name, and "green clickable one", if you join via Github or any other applicable for Advent site OpenID provider.

E.g. see the overall "world-wide" leaderboard which is available without authentication.

Here is the final Leaderboard for the contest is:

1st place - @Fabian.Haupt

2nd place -@Bert.Sarens

3rd place - @Dmitry Maslennikov

Congrats to winners and to all the participants!

We'll provide all the prises shortly and would appreciate if you share your repos (a lot of participants already did).

It would be great to know how people solve the same tasks with ObjectScript independently. Thanks in advance!

Hurry up to get your $100 from December Caché and IRIS campaign from Gartner and InterSystems! ;) Only 12 days left!

The recipe is the following: 

1. You are our current customer of Caché or/and InterSystems IRIS.

2. Make the review using this link.

3. Get your $25 for Caché or InterSystems IRIS review ($50 for both).

4. Save the screenshots of reviews and submit it in Global Masters - get another $25 for every Caché and InterSystems IRIS from Global Masters.

5. Merry Christmas and have a great new year 2019!

I decided to participate too!

Here is my repo.

And here is a short "Coding talks" Video on how to code Advent of Code and use Github and VSCode.

 

https://www.youtube.com/embed/GyFJ67jqXCU
[This is an embedded link, but you cannot view embedded content directly on the site because you have declined the cookies necessary to access it. To view embedded content, you would need to accept all cookies in your Cookies Settings]

Hi Bert!

I think you are right twice. First, no one can stop cheating in the world and the second no one can win this contest with cheating. And of course no one can stop copy-n-paste in coding :) On the other hand, there is a chance to know something new even with copy-pasting.

As a community manager, I would love to see more open repositories with ObjectScript and I like what we had last year - the open discussion of Advent of Code problems solved with ObjectScript. Thanks for sharing your repo! 

Speaking about the prize it's clear that it can be interesting only to people who develop with InterSystems Data Platforms and I believe this is the key motivation to win.  

As we see it now the competition is active and healthy, we don't plan to change any rules but encourage the fair play.