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
Programmer Humor
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
I unironically love this. Of course it isn't practical in the least, but I love it.
Managust, the manliest of months.
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
I assume the post is the maximum. I wonder if there is an algorithm for that
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
Thanks for saving me time, my head was already spinning on the previous comment but you made it stop.
I'm really disappointed by June, April and August. Without these months, everything would be so neat and orderly
Freaking romans with their gods and emperors, they couldn't go from unember to duodecember
Interestingly
- Aprch
- Maril
are the only two hallucinations, everything else is always a legit month
"Lousy Smarch Weather"
'Do Not Touch -Willie'
"Hey, good advice!"
My wife and I always wanted a joctober baby...
I love the month of Jay
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.
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')
Febranber. Those who know, remember.
Ask your doctor if Moctopril™ is right for you!
My insurance won't cover it so I have to take Novemugust...
Novemugust is what I’ve been feeling since last November.
This is disgusting. Who enters dates in month/day/year order?
How do you see that and this is your reaction?
Because I'm not used to entering dates in month/day/year order.
Neither am I but much less am I used to the day starting at 0
That’s just adding salt to the would
Decay is my favourite month
I was born in _arch, btw.
Wake me up when Septempril ends
Like my father's come and past, 1900 years has gone so fast!
Hmm. A bit redundant.
[ j ] [ uly ] [ y ]
Shoulda just been [ ul ].
Best CAPTCHA ever!
I, too, was born in Septulyber.
y
a
m
I use febr a rch btw
You know about neo-pronouns, get ready for neo-months
12 options as 21. At least it counts as lines of code for a performance review
Might be a decent way to sort out bots, actually.
Febroctobus