this post was submitted on 16 Jul 2023
22 points (95.8% liked)

Programmer Humor

31260 readers
784 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 11 months ago (1 children)

It's time to show off my java hello world with 7 errors on line 34

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

I don't know what I did wrong, but the bug must be somewhere in HelloWorldExampleClassForTutorialBuilderFactory.HelloWorldExampleClassForTutorialBuilderFactory(StringBuilderFactory myHelloWorldExampleClassForTutorialStringBuilder, int numberOfTimesToDisplayHelloWorld)

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

I know the guy meant it as a joke but in my team I see the damage "academic" OOP/UML courses do to a programmer. In a library that's supposed to be high-performance code in C++ and does stuff like solving certain PDEs and performing heavy Monte-Carlo simulations, the guys with OOP/UML background tend to abuse dynamic polymorphism (they put on a pikachu face when you show them that there's also static polymorphism) and write a lot of bad code with lots of indirections and many of them aren't aware of the fact that virtual functions and dynamic_cast's have a price and an especially ugly one if you use them at every step of your iterative algorithm. They're usually used to garbage collectors and when they switch to C++ they become paranoiac and abuse shared_ptr's because it gives them peace of mind as the resource will be guaranteed to be freed when it's not needed anymore and they don't have to care about when that is the case, they obviously ignore that under the hood there are atomics when incrementing the ref counter (I removed the shared pointers of a dev who did this in our team and our code became twice as fast). Like the guy in the screenshot I certainly wouldn't want to have someone in my team who was molded by Java and UML diagrams.

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

I have been writing code professionally for 6ish years now and have no idea what you said

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

When I was in the military, the shooting instructors said they preferred training females because they haven't been trained poorly by somebody else.

EDIT: Designating recruits as male and female is the way the military does things. I don't use the terms male and female when referring to groups of humans. I felt the need to clarify since somebody already took offense.

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

they preferred training females

It's "women".

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

“They said”

If only there was some generally agreed upon symbol to denote direct quotes as opposed to paraphrasing an idea in your own words. If only...

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

You sound like a miserable person

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

I'd rather sound miserable than incel.

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

Go back to reddit

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

If only there were fewer dickheads looking for a fight online. If only.