this post was submitted on 15 Jul 2025
1108 points (99.6% liked)

Programmer Humor

25159 readers
1344 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 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] OmegaLemmy@discuss.online 2 points 3 days ago

this is how my apps look when I try optimising them, just to gut them of all its usability because 'why have an array of values if I can reuse this string or integer' like a fucking idiot

[–] ilinamorato@lemmy.world 14 points 6 days ago

I unironically love this. Of course it isn't practical in the least, but I love it.

[–] genuineparts@infosec.pub 13 points 6 days ago

Managust, the manliest of months.

[–] tetris11@feddit.uk 8 points 6 days ago* (last edited 6 days ago) (1 children)

Genuine Question:

if you could split the month names into 3, how would you split them to maximise their choice overlap?

  • "em" is a good overlap for nov/sept/dec
  • "uar" is good for jan/febr
[–] lugal@lemmy.dbzer0.com 3 points 6 days ago (1 children)

I assume the post is the maximum. I wonder if there is an algorithm for that

[–] tetris11@feddit.uk 13 points 6 days ago* (last edited 6 days ago) (2 children)

hierarchical letter clustering would be my guess, or graph-based clustering using ngrams of 2-4 as nodes and maximising for connections.

Or using an optimized Regex and printing out the DFA?

Edit: Quick N-gram analysis (min=3, max=num letters in that month)

R-code

library(ngram)

tmonths = c("january", "february", "march",
           "april", "may", "june", "july",
           "august", "september", "october",
           "november", "december")

zzz = lapply(tmonths, function(mon){
  ng = ngram::ngram_asweka(paste(unlist(strsplit(mon, split="")), collapse=" "), min=3, max=nchar(mon))
  return(gsub(" ", "", ng))
})
res = sort(table(unlist(zzz)))
res[res > 1]

This gives the following 9 ngram frequencies greater than 1:

  ary   uar  uary   emb  embe ember   mbe  mber   ber 
    2     2     2     3     3     3     3     3     4 

As you can see two longest most common motifs are "em-ber" and "uar-y"

Using this I propose the following graph

Mermaid

stateDiagram
    direction LR
    sept --> em
    nov --> em
    dec --> em
    em --> ber
    oc --> to
    to --> ber
    feb --> uar
    uar --> y
    jan --> uar
    ju --> ne
    ju --> l
    l --> y
    ma --> r
    ma --> y
    r --> ch
    
    a --> p 
    p --> r
    r --> il
    a --> u
    u --> gust

[–] UnrepententProcrastinator@lemmy.ca 4 points 6 days ago (1 children)

Thanks for saving me time, my head was already spinning on the previous comment but you made it stop.

[–] tetris11@feddit.uk 1 points 6 days ago (1 children)

I'm really disappointed by June, April and August. Without these months, everything would be so neat and orderly

[–] UnrepententProcrastinator@lemmy.ca 3 points 6 days ago* (last edited 6 days ago)

Freaking romans with their gods and emperors, they couldn't go from unember to duodecember

[–] tetris11@feddit.uk 1 points 6 days ago* (last edited 6 days ago)

Interestingly

  • Aprch
  • Maril

are the only two hallucinations, everything else is always a legit month

[–] BeNotAfraid@lemmy.world 7 points 6 days ago

"Lousy Smarch Weather"

'Do Not Touch -Willie'

"Hey, good advice!"

[–] rosco385@lemmy.wtf 7 points 6 days ago

My wife and I always wanted a joctober baby...

[–] ArchmageAzor@lemmy.world 4 points 6 days ago

I love the month of Jay

[–] gerryflap 4 points 6 days ago (1 children)

We can clearly see that this design is silly, because it allows for so many invalid states. Yet when we represent some type, let's say in Java, were so often forced to do this exact same thing. Have variables in a container of which only a certain combination is valid. And then have at most a comment saying "this number is only valid if X is also set" or "if the validity boolean is true". Luckily Java finally has some ability for the so-called sum types now, just like Haskell's data types or Rust's enum types. Imo any language should have this.

[–] Fiery@lemmy.dbzer0.com 1 points 6 days ago

Having data dependent on each other in a type means that either you have redundant data (so one of the fields should be computed) or that your container tries to be too generic (you should in this case prefer an 'Apple' class over a 'Fruit' class with an enum field 'Type')

[–] CeeBee_Eh@lemmy.world 1 points 6 days ago

Febranber. Those who know, remember.

[–] clb92@feddit.dk 175 points 1 week ago (2 children)

Ask your doctor if Moctopril™ is right for you!

[–] Postmortal_Pop@lemmy.world 41 points 1 week ago (1 children)

My insurance won't cover it so I have to take Novemugust...

[–] anomnom@sh.itjust.works 5 points 6 days ago

Novemugust is what I’ve been feeling since last November.

load more comments (1 replies)
[–] thoughtfuldragon@lemmy.blahaj.zone 105 points 1 week ago (2 children)
[–] Ediacarium@feddit.org 90 points 1 week ago (2 children)

This is disgusting. Who enters dates in month/day/year order?

[–] lugal@lemmy.dbzer0.com 2 points 6 days ago (1 children)

How do you see that and this is your reaction?

[–] Ediacarium@feddit.org 2 points 6 days ago (1 children)

Because I'm not used to entering dates in month/day/year order.

[–] lugal@lemmy.dbzer0.com 2 points 6 days ago

Neither am I but much less am I used to the day starting at 0

[–] MadMadBunny@lemmy.ca 18 points 1 week ago

That’s just adding salt to the would

[–] sailorzoop@lemmy.librebun.com 67 points 1 week ago

Decay is my favourite month

[–] PodPerson@lemmy.zip 54 points 1 week ago (1 children)
[–] gravitas_deficiency@sh.itjust.works 27 points 1 week ago (3 children)

I’ll take “le tits now” for 300, Trebek ~HEH~ ~HEH~

load more comments (3 replies)
[–] cupcakezealot@piefed.blahaj.zone 39 points 1 week ago (3 children)
load more comments (3 replies)
[–] PyroNeurosis@lemmy.blahaj.zone 35 points 1 week ago

I was born in _arch, btw.

[–] OldChicoAle@lemmy.world 33 points 1 week ago (2 children)

Wake me up when Septempril ends

[–] lessthanluigi@lemmy.sdf.org 2 points 5 days ago

Like my father's come and past, 1900 years has gone so fast!

load more comments (1 replies)
[–] mcqtom@lemmy.world 25 points 1 week ago (1 children)

Hmm. A bit redundant.

[ j ] [ uly ] [ y ]

Shoulda just been [ ul ].

[–] drangus@piefed.social 13 points 1 week ago (1 children)

The blank options solve that

load more comments (1 replies)
[–] fubarx@lemmy.world 20 points 1 week ago

Best CAPTCHA ever!

[–] UpperBroccoli@lemmy.blahaj.zone 19 points 1 week ago

I, too, was born in Septulyber.

[–] Catoblepas@piefed.blahaj.zone 18 points 1 week ago
[–] diemartin@sh.itjust.works 17 points 1 week ago (1 children)
[–] lugal@lemmy.dbzer0.com 3 points 6 days ago

You know about neo-pronouns, get ready for neo-months

[–] Deathray5@lemmynsfw.com 13 points 1 week ago

12 options as 21. At least it counts as lines of code for a performance review

[–] finitebanjo@lemmy.world 12 points 1 week ago

Might be a decent way to sort out bots, actually.

[–] lugal@lemmy.dbzer0.com 12 points 1 week ago

Febroctobus

load more comments
view more: next ›