HACKER Q&A
📣 codingclaws

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


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


  👤 rzzzwilson Accepted Answer ✓
If it has to be one line, the comment:

    You are not expected to understand this.
from https://en.m.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Ope... .

👤 rcfox
:(){ :|:& };:

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


👤 smarm52
// DON'T TRY TO FIX THIS, IF REMOVED BREAKS PRODUCTION

👤 fuzzfactor
If the footwear was appropriate, you could say something like:

>BOOT DEVICE NOT FOUND;

>FALLING BACK TO SNEAKERNET . . .


👤 afitnerd
Bash fork bomb. In fact, I have the tshirt.

:(){ :|:& };:

Good explanation here: https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/


👤 ahazred8ta
The export-restricted perl munition t-shirt text:

http://www.cypherspace.org/adam/rsa/

#!/bin/perl -sp0777ilMLa^lN%0]dsXx++lMlN/dsM0


👤 drstewart
// TODO: Fix me

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


👤 082349872349872

  ⊢>+⌿÷≢
(seen at https://www.bonfire.com/store/arcfide/ )

  ────┬────
  ┬─┬ ┼─┬─┬
  └─┤ │ ├─┘
  │ ├─┘
  └─┘
(I don't think Tromp has merch)

👤 120bits
Fast inverse square root

0x5f3759df - ( i >> 1 );

https://github.com/scienceetonnante/Fast-Inverse-Square-Root...


👤 callamdelaney

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

    import pdb
    
    
    pdb.set_trace()

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

👤 langcss

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

👤 AA-BA-94-2A-56

    def sleep():
        return sleep()

👤 Jeremy1026
I have a shirt from WWDC 2014 that I find humorous:

func yTown() { print("San Francisco WWDC 2014") }


👤 ChrisGranger
body { display: none !important; }

👤 throwaway211
I'm not sure exactly, but I'd probably write it in Whitespace.

👤 codetrotter
20 GOTO 10

👤 Doctor-R
System.out.println("Hello World");

👤 gaoryrt
const y = f => (x => f(x(x))) (x => f((...y) => x(x)(...y)))

👤 gaws
for (;;) { printf("%s\n", "I'm in danger!"); };

👤 ksherlock
life ← {⊃1 ⍵ ∨.∧ 3 4 = +/ +⌿ ¯1 0 1 ∘.⊖ ¯1 0 1 ⌽¨ ⊂⍵}

👤 t1mmen
/* WIP */

👤 neontomo
var let const input = variableConstant(true) - 100

👤 al_borland
return videotapes;

👤 lotsoweiners
Not really programming or one line but: 01010011 01101000 01101111 01110111 00100000 01101101 01100101 00100000 01111001 01101111 01110101 01110010 00100000 01110100 01101001 01110100 01110011

👤 petargyurov
# noqa

👤 p0d
print("Nike")

👤 geophph
// what the fuck?

👤 avinassh
fsync();