this post was submitted on 10 Oct 2024
123 points (100.0% liked)

Programmer Humor

19623 readers
2342 users here now

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

founded 1 year ago
MODERATORS
 
top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 month ago (1 children)
[–] qaz 5 points 1 month ago (1 children)
[–] [email protected] 3 points 1 month ago

Thank you :)

[–] sylver_dragon 10 points 1 month ago (2 children)

Someone is trying to re-create the virus from Snow Crash

[–] shalafi 3 points 1 month ago

The opening lines were prophetic:

"... When it gets down to it–we're talking trade balances here–once we've brain-drained all our technology into other countries, once things have evened out, they're making cars in Bolivia and microwaves in Tadzhikistan and selling them here–once our edge in natural resources has been made irrelevant by giant Hong Kong ships and dirigibles that can ship North Dakota all the way to New Zealand for a nickel–once the Invisible Hand has taken all those historical inequities and smeared them out into a broad global layer of what a Pakistani bricklayer would consider to be prosperity–y'know what? There's only four things we do better than anyone else:

  • music
  • movies
  • microcode (software)
  • high-speed pizza delivery
[–] [email protected] 1 points 1 month ago

Snow Crash was my exact first thought

[–] [email protected] 7 points 1 month ago

Thanks, I hate it.

[–] kshade 6 points 1 month ago* (last edited 1 month ago)

Haskell will probably come with some of these predefined, what with ∀ already being an alias for "forall" and so on.

[–] GroundedGator 5 points 1 month ago

I interviewed someone once who had sublime set up to use emojis in place of keywords. The only one that made me actually chuckle more than groan was using the 💩 emoji for catch.

[–] [email protected] 5 points 1 month ago

You need to use a language with powerful macros (like LISP) so you can avoid English entirely.

[–] [email protected] 4 points 1 month ago

This is glorious. I so need to try something silly like that at work...

[–] A_Union_of_Kobolds 3 points 1 month ago (1 children)

I think that's how you summon actual demons

I know one extremely burnt out dude who would absolutely try it

[–] [email protected] 1 points 1 month ago

Bob Howard from the Laundry will be with you shortly.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

what language is that

it looks like an unholy fusion of Python and Rust

[–] qaz 2 points 1 month ago
[–] pelya 2 points 1 month ago

One big problem is font size. Smaller features of many scripts like CJK are barely visible, and this example shows the same problem.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Feeling mischievous?

Python 3.12.6.
>>> 𒁎=3
>>> 𒁎**𒁎
27
#include <iostream>

int main() {
  int 𒇤 = 2;
  std::cout << (𒇤 + 𒇤) << std::endl;
  return 0;
}
$ ./a.out
4
touch 𒇤.java
nvim 𒇤.java
public class 𒇤 {
 public static void main(String[] args) {
    System.out.println("LMAO");
  }
}
[–] [email protected] 2 points 1 month ago

Which one of you is gonna trying translating this?

[–] steventhedev 2 points 1 month ago (1 children)

this doesn't hold a candle to APL:

sudoku←{⎕io←0       ⍝ Whitney/Last
    p←{(↑⍵)∘{(⍺∨.=⍵)/⍳n×n}¨,⍵},(n*÷2){⍵,⍺⊥⌊⍵÷⍺}¨⍳n n←⍴⍵
    m←{(⊂⍵)⌈(⊂⍺=⍳⍴⍵)×(1+⍳n)~⍵[⍺⊃p]}
    (⍴⍵)∘⍴¨⊃{⊃,/⍺ m¨⍵}/{(⍸⍵=0),⊂⊂⍵},⍵
}
[–] bhamlin 3 points 1 month ago (1 children)

The difference is that the above Sumerian could be dealt with using find and replace in a dire situation, while APL is a write-only language.

[–] stingpie 2 points 1 month ago

I dunno, there's probably less than ten people who can actually speak Sumerian, and there's at least a dozen people who can read APL.

[–] ZILtoid1991 1 points 1 month ago
> keywords still written in English
bruh.wav
[–] [email protected] 1 points 1 month ago

Okok.. Does this make sense? And if so, how long did it take you to write this?