This is a little meta...

I need you to golf some code that takes no input whatsoever but outputs your username. That may seem easy enough, but you are code restricted. For example, if my username was JimmyOlson172 my code for generating JimmyOlson172 cannot contain characters (numbers, upper case or lower case versions of any of the letters, or symbols) in my username; therefore no 1, 7, 2, i, j, l, m, n, o, s, y, I, J, L, M, N, O, S, OR Y...


  1. This is code golf, shortest character count (modified by bonuses) gets the tick of approval.
  2. All entries must be executable. If possible provide some means of showing your code's execution; some sort of online execution of your code... like jsFiddle, etc.
  3. To deter you from using any characters in your username (this includes upper case or lower case letters, and numbers), a 100 point penalty is imposed on EACH use of a forbidden character. So if your username is "harry" and you use an h, an A and a y, that's a 300 point penalty right then and there... Remember, a forbidden character is ANY character in your username, inclusive of uppercase and lower case versions of all letters, as well as numbers and symbols. (I have no idea if symbols can form part of these usernames?)
  4. All is not lost, if you successfully complete this task, you accrue an additional amount of points bonus totaling the length of your username. So if your code for generating Harry took 26 characters, your score becomes 26 + penalties (let's assume none in this example, so 0) - 5 characters = 21.
  5. No loopholes
  6. NO INPUT, that means no STDIN, no imported files, etc. The username must be generated by the code.

Special note: Username changes are banned from this challenge to prevent people abusing the "change-username-to-something-small-then-do-challenge" loophole mentioned by @xnor... Anyone abusing this loophole will be flagged and their answer will be marked invalid...

  • 10
    \$\begingroup\$ I don't think this adds to existing challenges to "print X without X" (like this one). The username thing just makes it more random and gives different users an advantage or disadvantage. \$\endgroup\$ – xnor Jun 4 '15 at 7:05
  • 4
    \$\begingroup\$ Honestly, the whole genre of "do [simple task] without [the obvious method]" has been overdone and I found it to rarely produce interesting answers in the first place. Even if it wasn't a dupe, I'd still downvote it. But, about the difference of depending on username, I can't see it being a plus. It spoils the supposed competition of making the shortest code when some people have an advantage over others because they have a shorter or more amenable username. The only amusing thing I can see is people making new accounts to post shorter solutions \$\endgroup\$ – xnor Jun 4 '15 at 7:23
  • 2
    \$\begingroup\$ I voted to reopen just because I feel that calling this question a dupe of any other question of the similar idea is a bit more questionable and should be left up to the community to decide (as opposed to dupe hammer) \$\endgroup\$ – Optimizer Jun 4 '15 at 7:39
  • 1
    \$\begingroup\$ You should ban any user name change after the post was posted so as to prevent loopholes such as one which xnor just posted \$\endgroup\$ – Optimizer Jun 4 '15 at 7:43
  • 7
    \$\begingroup\$ I'd just want to see @n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ do this :D \$\endgroup\$ – PurkkaKoodari Jun 4 '15 at 10:16

CJam, 10 bytes - 6 = 4


Try it online.

A trivial bypass of the requirement. This method requires that your username does not contain consecutive ASCII characters/letters, so looking at the top users list this method can be used by @flawr and @grc but not @orlp or @xnor.

I'm sure other users would have their own methods though, so it really comes down to who has the most workable username - not something I'm a fan of in a challenge.

  • \$\begingroup\$ you need to alter your score to accommodate for the length of your name, I believe you need to subtract 6 from your score? \$\endgroup\$ – WallyWest Jun 4 '15 at 8:22
  • \$\begingroup\$ @WallyWest Right, sorry somehow I missed that part. In any case though I'm still not sure the username thing is a great idea... e.g. xnor's found some usernames which are just digits which could win by arithmetic \$\endgroup\$ – Sp3000 Jun 4 '15 at 8:30
  • \$\begingroup\$ True but they still need to derive the username and output it using some sort of language... \$\endgroup\$ – WallyWest Jun 4 '15 at 8:37
  • 3
    \$\begingroup\$ Very happy! :) \$\endgroup\$ – Erik the Outgolfer Apr 18 '16 at 14:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.