After reading this thread the other day I spent some hours building the website 
and learning about jekyll/liquid and preparing some code samples that were at 
least somewhat varied and that fit into the rather small space the website 
gives to the code.

But when I got to the CSS crafting stage, I decided this was a bad idea. The 
idea I had in mind was [https://dlang.org](https://dlang.org)/ 's selection 
menu with lots of different code samples. I think that's completely doable with 
the current website. But, do you really want to do it? Look around. Can you 
find any other programming language page that has a display like dlang's?

I looked around, and my favorite code samples were those in the form of a 
normal webpage. Click a link, there's some code, there's some prose talking 
about the code, and you can just scroll down the page to get more examples, 
with earlier prose helping to explain later examples. Meanwhile, on dlang.org 
you have to fiddle with HTML UI elements to make random-access selections from 
a list, with no explanation.

The popular thing to do now is to link to Rosetta Code. And nim-lang.org does 
that. And although that gives the reader a huge list of 
possibly-individually-interesting links to look at, RosettaCode is not at all 
optimized to make a language look good. I think the code example we have now is 
fine, and the easiest enhancement would be to replace the RosettaCode link with 
a link to a tour of Nim that has what you're hoping to get out of a bunch of 
code examples on the front page.

That's something anyone could do. If it's not done when another weekend rolls 
around I might try again at this. Start with something like your own blog 
entry. Theme: sell Nim with sample code.

But if you want something _really_ cool, look at 
[https://www.haskell.org](https://www.haskell.org)/ . I don't think they pull 
it off that well, and it's not yet a good fit for Nim or for nim-lang.org. But 
it's certainly attention-getting.

Reply via email to