this post was submitted on 11 Oct 2023
502 points (98.1% liked)

Programmer Humor

32054 readers
1556 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 24 comments
sorted by: hot top controversial new old
[–] [email protected] 55 points 11 months ago* (last edited 11 months ago) (1 children)

My friends, please stop writing "something"s that do 1001 different things.

With regards,
Devs cleaning up old projects

[–] [email protected] 15 points 11 months ago

Yeah, that won't happen.

And if you propose a separable set of functionality that you can mix as you like, you'll get shut down on the base that it's not viable (doesn't matter if you had written it already), it's too complex to understand (doesn't matter that everybody keeps doing everything wrong because nobody can understand the current one) and YAGNI (doesn't matter that keeping the current one running takes most of the time from everybody).

[–] [email protected] 29 points 11 months ago (2 children)

You see, that's why you divide all the smaller distinct batches of logic into their own functions and then give the wrapper function a name like blahBlahOrchestrator or blahBlahManager waves hands mysteriously

[–] [email protected] 18 points 11 months ago* (last edited 11 months ago) (2 children)

I prefer to have a blahBlahManagerFactory, with an XML an incredibly brittle undocumented XML configuration file. /s

I find that it makes everyone's work day simpler, because they simply cannot do their jobs. /s

[–] [email protected] 9 points 11 months ago

If you don't have your config in .txt files with incredibly confusing implicit syntax, you're doing it wrong.

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

IAbstractBlahBlahManagerFactoryControlBeansHandlerFactoryFactory

[–] [email protected] 5 points 11 months ago

I think you meant IAbstractBlahBlahManagerFactoryControlBeansHandlerFactoryFactory6ProxyHandlerAsync_Compat3, and of course its test counterpart, IAbstractBlahBlahManagerFactoryControlBeansHandlerFactoryFactory6ProxyHandlerAsync_Compat3::FakeMockVirtualDeviceTestManagerBeansFactory2_HACK_DO_NOT_USE

[–] [email protected] 6 points 11 months ago (1 children)

I wrote a bunch of if statements to work out how to handle various types of errors, and called it ErrorClassifier. Can I add "AI engineer" to my resume now?

[–] [email protected] 3 points 11 months ago

Only if you name it ErrorClassifierGPT

[–] [email protected] 28 points 11 months ago (1 children)

It is with great pride that we present you with the Patriot Children initiative. It provides funding for schools to have fireworks shows on July 4th.

*^(It also extends the Patriot Act for 900 years, makes it legal for corporations to own slaves, and revokes the 4th amendment.)

[–] [email protected] 3 points 10 months ago (1 children)

why would you be against 4th of July and children?

[–] [email protected] 3 points 10 months ago (1 children)

Must be some sort of communiss.

[–] [email protected] 3 points 10 months ago

destroying america!!!!!!

[–] [email protected] 28 points 11 months ago

There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors

[–] [email protected] 14 points 11 months ago

It really is.

I've learned a lot about language by coming up with names and seeing other people's.

I think we are blessed with things like set/get. Such wonderful, simple, short concepts that compliment each other so well.

And they rhyme.

[–] [email protected] 10 points 11 months ago

OP, I really hope you mean project names and not variable or function names

[–] [email protected] 5 points 11 months ago (2 children)
[–] [email protected] 5 points 11 months ago

Keep it staggeringly substantial.

[–] [email protected] 2 points 11 months ago

Yes. Keep it simple and stupid.

[–] [email protected] 3 points 11 months ago (1 children)
[–] [email protected] 5 points 11 months ago* (last edited 11 months ago)

If it does 1001 different things, naming it is the least of your problems.

[–] [email protected] 1 points 11 months ago

I agree also organization of your code

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

When writing a small, throwaway project, I stick with theIP, theDir, theVar, etc. More fun that way. This is with shell scripts, btw. I’m sure compiled code would be far more of a mess far quicker doing this.

ETA: also someVar, someDir, etc

[–] [email protected] 1 points 11 months ago

FreedomGloryActOf2023.exe