Hi Valentin,

    with Groovy maybe one should consider doing a "Groovy" and "Groovy (Static)", since not all dynamic solutions a valid for the @CompilStatic case ?

Additional points:

1. I might contribute, as time allows.
2. Havig said that: Just go to
   https://mrhaki.blogspot.com/search/label/Groovy, copy & link back to
   Mr. Hubert A. Klein Ikkink's site and you should be all set ;-)
3. I had to laugh so hard when I saw the Cobol version of what is
   "s.startsWith(prefix)" in pretty much any other language - thank god
   I am young enough to have missed that :-)

Some general site feedback:

1. I found it confusing that there can be more than one tab per
   language (e.g. for C++), especially if one idiom is clearly inferior
   to the other
2. If multiple versions were allowed, a voting system might be the way
   to go - or someone curating each language...
3. I would have expected the landing page to not only display a search
   box, but also an (categorized) idiom list. I know the current web
   design meta is "as simple/barren as humanly possible", but the small
   link icon at the bottom that leads to a menu, where you can then get
   this infromation under "All idioms" or "Language coverage"  is easy
   to miss.
4. Speaking of "categorized idiom list": To be able to quickly filter
   after idioms relating to e.g. "threads" or "strings" would imho
   generally be helpful
5. On the other hand like the cheat sheet feature (though I find the
   name misleading), since oftentimes being able to just search/browse
   in a complete result set in the browser can imho be a good way to
   find what you are looking for (and maybe discover something you were
   not looking for*) :-)
6. Being able to have two languages displayed side by side in the
   "cheat sheet" view would be great for comparing languages

Cheers,
mg

*In the category of "So close, but not Groovy" I stumbled upon the fact that it seems Kotlin still does not have a list/map literal syntax: https://programming-idioms.org/idiom/8/initialize-a-new-map-associative-array **; the Java-like solution looks to be the best of the 3 solutions offered, but it comes with a "use only if performance isn't critical" caveat... (see also https://github.com/Kotlin/KEEP/pull/112 ; https://kotlinlang.org/docs/reference/constructing-collections.html)

**Is it possible to link directly to a specific language version of an idiom ?


On 09/10/2020 12:06, Valentin Deleplace wrote:
Hello folks
I admin https://programming-idioms.org/about and I'd like to add Groovy to the list of available languages. The website is a collection of "how to do X in language Y". My friend Guillaume Laforge advised me to ask this mailing list for help! The goal is to encourage contribution of quality contents so it can actually be helpful to a beginner or seasoned groovyist visitor.

A quality contribution is a snippet that is correct, concise, having an explanation, a link to the official docs, and ideally a link to an online demo. For example at https://programming-idioms.org/idiom/96/check-string-prefix some implementations are high-quality, but not all of them.

Writing a correct snippet takes about 3mn, while writing a high-quality contribution easily takes over 15mn. Before I open the gates by adding Groovy in the system, I'd like to know if some of you would be willing to contribute and curate some contents?

Thank you in advance
Valentin


Valentin
Happy path engineer
Google Cloud Platform
Twitter : @val_deleplace

Reply via email to