250 points
*

Mom, can we stop and get some Python?

No, we have Python at home.

Python at home…

permalink
report
reply
192 points
*

What if I prefer this?

#define CURLYOPENRIGHTCLOSEDLEFTBRACKET {
#define CURLYOPENLEFTCLOSEDRIGHTBRACKET }
#define CURVYOPENRIGHTCLOSEDLEFTBRACKET (
#define CURVYOPENLEFTCLOSEDRIGHTBRACKET )
#define PERIODWITHPERIODONTOP :
#define COMMAWITHPERIODONTOP ;

int main CURVYOPENRIGHTCLOSEDLEFTBRACKET CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
  if CURVYOPENRIGHTCLOSEDLEFTBRACKET 1 CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
    asm volatile CURVYOPENRIGHTCLOSEDLEFTBRACKET
      "mov $1, %%rax\n"
      "mov $1, %%rdi\n"
      "lea message(%%rip), %%rsi\n"
      "mov $4, %%edx\n"
      "syscall\n"
      PERIODWITHPERIODONTOP
      PERIODWITHPERIODONTOP
      PERIODWITHPERIODONTOP "%rax", "%rdi", "%rsi", "%rdx"
    CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
  CURLYOPENLEFTCLOSEDRIGHTBRACKET
  return 0 COMMAWITHPERIODONTOP
CURLYOPENLEFTCLOSEDRIGHTBRACKET

asm CURVYOPENRIGHTCLOSEDLEFTBRACKET ".section .data\n"
  "message: .ascii \"wut\\n\"\n"
  ".section .text\n" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
permalink
report
reply
91 points

You can’t be helped, sorry. We will put you to an asylum for people like you

permalink
report
parent
reply
28 points

Asylum? We have the electric chair for this.

permalink
report
parent
reply
12 points

Yeah, now I see why you want him dead. He used mov after lea

permalink
report
parent
reply
3 points
permalink
report
parent
reply
49 points
*

You win a free trip to the Hague

permalink
report
parent
reply
18 points

They don’t even deserve the trial. Straight to gulag.

permalink
report
parent
reply
3 points

Still need at least troyka to send to gulag. Or regular court outside of stalinism.

permalink
report
parent
reply
28 points

Can this be done with emoji?

permalink
report
parent
reply
5 points

😫

permalink
report
parent
reply
20 points

Acceptable, just FYI I added a pre-commit git hook, please rebase your changes.

permalink
report
parent
reply
18 points

Thanks. I hate it.

permalink
report
parent
reply
93 points

Idk why but i fell in love with this and might just use it now

permalink
report
reply
28 points

God

permalink
report
parent
reply
9 points

I just realised why we do live coding interviews.

permalink
report
parent
reply
6 points
Deleted by creator
permalink
report
parent
reply
5 points

It would be nice and easy if we had elastic tabstops

permalink
report
parent
reply
1 point

That’s true, I wanted to port that to Kate for me to test, but I’m too dumb to port the Scala implementation to QT/KDE framework

permalink
report
parent
reply
82 points
*

Looks like Python, but in an editor with a weird TUI scrollbar

permalink
report
reply
84 points

High chance that it’s a Python programmer who is really unhappy about having to work in Java, lol

permalink
report
parent
reply
16 points

Agreed. I saw this and thought it looked beautifully passive aggressive

permalink
report
parent
reply
4 points

Ha! Now I see it - that was very funny, sir!

permalink
report
parent
reply
11 points
*

Doesn’t python need colons after if/else/for/etc. statements?

permalink
report
parent
reply
5 points

Heh, so in Python it’s possible to overload operators in the context of objects. I bet it would be possible to overload tabs to do the same thing as colons inside a context manager, but that’s pure speculation.

permalink
report
parent
reply
3 points

Perhaps I don’t understand you, but I don’t think there’s a way to override spaces in python in any way. The spaces are handled by the parser.

permalink
report
parent
reply
1 point

IIRC, Python handles whitespace indentation by having the tokenizer convert them to INDENT/DEDENT tokens. The grammar can then handle them equivalently to a curly brace language.

permalink
report
parent
reply
3 points

You can write Fortran Python in any language.

permalink
report
parent
reply
74 points

Whitespace isn’t semantically important. Ticket closed.

permalink
report
reply
22 points

That would be a very satisfying ticket closure

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 6.4K

    Monthly active users

  • 712

    Posts

  • 9.9K

    Comments