Ask HN: What single line of code would you put on a programming shirt?

12 points by codingclaws ↗ HN
If you were going to make a programming shirt with one line of code or one expression on the front of the shirt right in the middle what would it be? Examples:

(+ 1 2)

or

++i;

or

x ? x : y

43 comments

[ 11.6 ms ] story [ 258 ms ] thread
System.out.println("Hello World");
// what the fuck?
// evil floating point bit level hacking
(comment deleted)
:(){ :|:& };:

Though, now that I think about it, I'm pretty sure I've already seen that as a t-shirt.

Is that a shell script? Doesn’t seem to do anything on my linux server.
// DON'T TRY TO FIX THIS, IF REMOVED BREAKS PRODUCTION
Haven't seen this in a while;

There are 10 kinds of people in the world, those who understand binary and those who do not.

I’d put $year: ERR_REQUIRE_ESM require of ES module strip-ansi not supported, cause people should know that it’s 202x and we are still practically almost already there.
/* WIP */
(comment deleted)
var let const input = variableConstant(true) - 100
If the footwear was appropriate, you could say something like:

>BOOT DEVICE NOT FOUND;

>FALLING BACK TO SNEAKERNET . . .

const y = f => (x => f(x(x))) (x => f((...y) => x(x)(...y)))
Not really programming or one line but: 01010011 01101000 01101111 01110111 00100000 01101101 01100101 00100000 01111001 01101111 01110101 01110010 00100000 01110100 01101001 01110100 01110011
I used to say that to my girlfriend. She did.
NSFW

  JavaScript:String.fromCharCode(...'01010011 01101000 01101111 01110111 00100000 01101101 01100101 00100000 01111001 01101111 01110101 01110010 00100000 01110100 01101001 01110100 01110011'.split(' ').map(i => parseInt(i, 2)))

    const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";

    import pdb; pdb.set_trace()
Or as one of these 'modern' 'linters' like to 'fix' it to:

    import pdb
    
    
    pdb.set_trace()
I second your annoyance with linters doing that.

You can add #noqa at the end of the line to avoid the linter rewrite.