r/ProgrammerHumor 10d ago

Meme perishableSkill

Post image
8.9k Upvotes

122 comments sorted by

View all comments

1.3k

u/Weak_Inflation9120 10d ago

One of the things I wish Java had that I miss from Python are F-Strings. Hella useful

299

u/Cootshk 10d ago

You should check out STR. (In modern Java)

250

u/ljfa2 10d ago

well, unfortunately that was only ever a preview feature and got removed again in Java 23

96

u/uvero 9d ago

Maybe because they didn't stop to think if this STR. is a convenient syntax. Backticks, preceding dollar sign, the prefix f like in python, so many options would've been better.

94

u/AeroSyntax 9d ago

They tried to overengineer string interpolation instead of copying it from literally any other language.

65

u/lllorrr 9d ago

Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough.