Readit News logoReadit News
Posted by u/codingclaws a year ago
Ask HN: 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 · a year ago
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 · a year ago
:(){ :|:& };:

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

wruza · a year ago
Is that a shell script? Doesn’t seem to do anything on my linux server.
trealira · a year ago
It's a fork bomb in shell script. It's more human readable like this:

  bomb() { 
    bomb | bomb &
  }; bomb
Apparently this trick doesn't work nowadays due to cgroups:

https://unix.stackexchange.com/questions/469950/why-cant-i-c...

smarm52 · a year ago
// DON'T TRY TO FIX THIS, IF REMOVED BREAKS PRODUCTION
fuzzfactor · a year ago
If the footwear was appropriate, you could say something like:

>BOOT DEVICE NOT FOUND;

>FALLING BACK TO SNEAKERNET . . .

afitnerd · a year ago
Bash fork bomb. In fact, I have the tshirt.

:(){ :|:& };:

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

ahazred8ta · a year ago
The export-restricted perl munition t-shirt text:

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

#!/bin/perl -sp0777i<X+dlMLa^lN%0]dsXx++lMlN/dsM0<j]dsj

drstewart · a year ago
// TODO: Fix me
fuzzfactor · a year ago
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.

codegladiator · a year ago
and those who mistake it for binary.
defrost · a year ago
that's why it works better with 11