r/ProgrammerHumor • • Jun 12 '25 • This 3

Meme andJavascriptForWeb

Post image
7.9k Upvotes

270 comments sorted by

View all comments

1.1k

u/skwyckl Jun 12 '25

Enterprise Java won't make you happy, but it will feed you and your family (probably)

480

u/Informal_Branch1065 Jun 12 '25

"Father, it's the fifth day in a row..."

"Do you even know how many days I spent implementing this IFoodBuilderFactory, just for you to throw a new Household.ChildExceptions.Fit()!"

161

u/Percolator2020 Jun 12 '25

Shut up and collect the garbage.

62

u/-Kerrigan- Jun 12 '25

Hungarian notation in Java? Capitalized method names? Heresy! Get this Microsoft Java outta here

5

u/evanc1411 Jun 12 '25

Microsoft Java tastes better.

22

u/Fadamaka Jun 12 '25

That's not what Hungarian notation is. That's called PascalCase.

29

u/-Kerrigan- Jun 12 '25 edited Jun 12 '25

I know what PascalCase, camelCase, snake_case, and even kebab-case are.

IFoodBuilderFactory <- here's the Hungarian notation.

I enumerated a list

→ More replies (9)

3

u/BurritoSupreeeme Jun 12 '25

Fit() is a constructor is guess

1

u/-Kerrigan- Jun 12 '25

You may be right, somehow I missed the new there

2

u/xMoop Jun 12 '25

Looks more like he wrote C# and its meant to be an interface which has naming convention starting with I then the concrete implementation just doesn't have the I

The type doesn't make sense for Hungarian notation and what it would represent.

→ More replies (1)

10

u/Fadamaka Jun 12 '25

Why did you write C# code though?

1

u/Informal_Branch1065 Jun 12 '25

To get to the other side

→ More replies (1)

3

u/ekaylor_ Jun 13 '25

Damn, now I'm gonna have to

FatherWaysToDealWithChildSubsystem.getLocalInstance().findResource(FatherSubsystemResoures.CHILD_BEATER).getBelt().useAngrily( /* and so on */ );

/j pls don't beat children it's not good

1

u/Informal_Branch1065 Jun 13 '25

Code review comment: Use SpermdonorChildSanctionFactory instead. FatherWaysToDealWithChildSubsystem was deprecated three versions ago and will be removed in the next release.

Also perhaps utilize Sanction.use(ISanctionItem item). You have to inject a belt as singleton to make use of it, but it's much cleaner that way and ensures a clean architecture.

Once that's fixed, feel free to merge. 👍🏻

2

u/TheChunkMaster Jun 12 '25

I read this in Jerma’s voices.

1

u/isr0 Jun 12 '25

Next time, better use checked exceptions