Skip to main content
77 of 157
Added link to Clojure answer, and instructions on how to obtain direct answer links

Showcase your language one vote at a time

In this experimental popularity contest users will be able to showcase their favorite programming languages. However, the amount of code they are allowed to write is dependent on the number of votes their answer has received.

How This Works

An answer to this question with N votes (upvotes minus downvotes) will contain up to N snippets of code, all with a unique number of characters ranging from 1 to N. All the snippets will be written in the same programming language and attempt to showcase its obscure or interesting features.

Since all answers start off with 0 votes, answers will initially contain 0 code snippets. Instead, a short interesting fact or feature of the language will be mentioned in plain English, without using code or pseudocode.

Once a 0-vote answer receives a vote the user who posted it may edit it and add a 1 character long code snippet to their showcase. They can choose to remove the factoid or leave it there.

Similarly, when a 1-vote answer becomes a 2-vote answer the user who posted it may then add a 2 character code snippet to their showcase. They can keep or remove the factoid and the 1 character snippet.

If an answer quickly accumulates say 5 votes (N = 5), the user can include up to 5 snippets, one of each length from 1 to 5, as well as the factoid.

Thus users will continually have to monitor and edit their answers to continue to get upvotes and have a chance of winning the contest.

It is suggested that you choose a programming language that has not been posted already but this is not a requirement.

You are welcome to submit more than one answer.

Example

Suppose an answer showcasing Python has 4 votes. It might look something like this:

#Python Length 4 snippet:

4**2

Exponentiation.

Length 3 snippet:

x=7

Variable assignment.

Factoid:

Python got its name from [Monty Python's Flying Circus][1].

Real answers should roughly follow this format. Note that it is missing snippets of length 1 and 2, which may not be optimal for getting upvotes but it is allowed.

Discrepancies

The fluctuation of upvotes and downvotes will undoubtedly cause some answers to be out of date and others to be invalid. Ideally users will keep an eye on their vote count and change their answer (for the better or the worse) accordingly.

Keep in mind that this is a new experimental type of challenge that the Stack Exchange system is not optimized for. I'm not certain if this will successfully play out.

Notes

  • The snippets do not need to be full programs, just anything worth "showcasing".

  • The snippets do not need to be related. They could be but it might be boring if they are too similar.

  • "Characters" means characters, not bytes. You may use any Unicode characters. Newlines and spaces count as characters.

  • If your answer has negative votes you may only keep your factoid in it.

  • You may choose a language that was developed after this challenge was posted.

Scoring

This is a popularity contest, the highest voted answer will win.

Current Answers

(sorted alphabetically by language name)

(And for those who'd like to add to the list above, you can get a direct link to an answer using the [share] button next to the [edit] button).

Feel free to update this list as needed. [1]: http://en.wikipedia.org/wiki/Monty_Python%27s_Flying_Circus

Calvin's Hobbies
  • 90k
  • 46
  • 339
  • 555