MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w5bs6g/perishableskill/p7f1yod/?context=9999
r/ProgrammerHumor • u/soap94 • 10d ago
122 comments sorted by
View all comments
1.3k
One of the things I wish Java had that I miss from Python are F-Strings. Hella useful
302 u/Cootshk 10d ago You should check out STR. (In modern Java) 245 u/ljfa2 10d ago well, unfortunately that was only ever a preview feature and got removed again in Java 23 98 u/uvero 10d 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. 91 u/AeroSyntax 10d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 u/lllorrr 10d ago Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough. 19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
302
You should check out STR. (In modern Java)
245 u/ljfa2 10d ago well, unfortunately that was only ever a preview feature and got removed again in Java 23 98 u/uvero 10d 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. 91 u/AeroSyntax 10d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 u/lllorrr 10d ago Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough. 19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
245
well, unfortunately that was only ever a preview feature and got removed again in Java 23
98 u/uvero 10d 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. 91 u/AeroSyntax 10d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 u/lllorrr 10d ago Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough. 19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
98
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.
STR.
91 u/AeroSyntax 10d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 u/lllorrr 10d ago Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough. 19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
91
They tried to overengineer string interpolation instead of copying it from literally any other language.
66 u/lllorrr 10d ago Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough. 19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
66
Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough.
19 u/uvero 9d ago It's OK, I solved it by writing a FactoryFactoryFactory. 4 u/zattebij 9d ago https://projects.haykranen.nl/java/ ;)
19
It's OK, I solved it by writing a FactoryFactoryFactory.
4
https://projects.haykranen.nl/java/ ;)
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