Output your username without using any of the characters in your username!

-11

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...

Rules:

  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...

WallyWest

Posted 2015-06-04T06:53:32.077

Reputation: 6 949

Question was closed 2015-06-04T10:09:55.877

10

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.

– xnor – 2015-06-04T07:05:20.090

I'm sorry, but I'm having trouble seeing how this particular print X without X is seen as similar... I'm making it more difficult by altering the expected output from user to user... Surely this can get a look in...? – WallyWest – 2015-06-04T07:18:31.787

4Honestly, 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 – xnor – 2015-06-04T07:23:28.737

2I 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) – Optimizer – 2015-06-04T07:39:11.797

1You should ban any user name change after the post was posted so as to prevent loopholes such as one which xnor just posted – Optimizer – 2015-06-04T07:43:36.847

@Optimizer Who? :-) – xnor – 2015-06-04T07:43:59.890

@False I would not have thought that you would come to trolling to just prove your point. Honestly, you should have mentioned the loophole here instead of posting it as an answer in order to improve the challenge. – Optimizer – 2015-06-04T07:45:03.403

@Optimizer appreciate the support – WallyWest – 2015-06-04T08:12:52.990

Can I write the code that simply prints it or do I have to write a full program? Also, can I write a function that does this? – Spikatrix – 2015-06-04T08:14:28.047

@CoolGuy The code must output the username upon execution... So a function wouldn't work in this case... Unless the code defines the function and then executes it... – WallyWest – 2015-06-04T08:19:22.607

@CoolGuy were you thinking of doing something like f=x=>{some code here that prints out "CoolGuy"};x() ...? – WallyWest – 2015-06-04T08:20:50.190

@WallyWest , Ok. BTW, spaces don't need to be outputted? – Spikatrix – 2015-06-04T08:37:57.087

Oh, good point... In your case yes you would need to print the space... – WallyWest – 2015-06-04T08:39:51.247

If non-printable ascii characters are allowed, @grc can get a score 3 using Sclipting, or 1 using UTF-16.

– jimmy23013 – 2015-06-04T10:09:19.627

7

I'd just want to see @n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ do this :D

– PurkkaKoodari – 2015-06-04T10:16:04.200

1It's funny how this question was marked as a duplicate of a question which was marked as a duplicate of another question. – ericw31415 – 2016-05-12T21:46:16.143

1From review queue, I think this question should remain closed, since everyone has different usernames. It doesn't matter whether you change them or not, there's no way for you to know why a user changed their username. And what about users that join after this question was posted? It's not a good question overall for these reasons. – mbomb007 – 2018-04-30T16:44:59.333

Okay, let it be closed... – WallyWest – 2018-05-01T00:47:21.633

Answers

7

CJam, 10 bytes - 6 = 4

"Ro2///":)

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.

Sp3000

Posted 2015-06-04T06:53:32.077

Reputation: 58 729

you need to alter your score to accommodate for the length of your name, I believe you need to subtract 6 from your score? – WallyWest – 2015-06-04T08:22:24.123

@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 – Sp3000 – 2015-06-04T08:30:00.727

True but they still need to derive the username and output it using some sort of language... – WallyWest – 2015-06-04T08:37:24.760

3Very happy! :) – Erik the Outgolfer – 2016-04-18T14:05:20.657