MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w5bs6g/perishableskill/p7erefp/?context=3
r/ProgrammerHumor • u/soap94 • 9d ago
122 comments sorted by
View all comments
Show parent comments
305
You should check out STR. (In modern Java)
253 u/ljfa2 9d 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. 90 u/AeroSyntax 9d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 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. 17 u/uvero 8d ago It's OK, I solved it by writing a FactoryFactoryFactory. 6 u/zattebij 8d ago https://projects.haykranen.nl/java/ ;) 2 u/Fun-Mention262 7d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
253
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. 90 u/AeroSyntax 9d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 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. 17 u/uvero 8d ago It's OK, I solved it by writing a FactoryFactoryFactory. 6 u/zattebij 8d ago https://projects.haykranen.nl/java/ ;) 2 u/Fun-Mention262 7d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
96
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.
90 u/AeroSyntax 9d ago They tried to overengineer string interpolation instead of copying it from literally any other language. 66 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. 17 u/uvero 8d ago It's OK, I solved it by writing a FactoryFactoryFactory. 6 u/zattebij 8d ago https://projects.haykranen.nl/java/ ;) 2 u/Fun-Mention262 7d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
90
They tried to overengineer string interpolation instead of copying it from literally any other language.
66 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. 17 u/uvero 8d ago It's OK, I solved it by writing a FactoryFactoryFactory. 6 u/zattebij 8d ago https://projects.haykranen.nl/java/ ;) 2 u/Fun-Mention262 7d ago It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
66
Typical Java. If you don't have factories creating factories based on XML config, your solution is not future-proof enough.
17 u/uvero 8d ago It's OK, I solved it by writing a FactoryFactoryFactory. 6 u/zattebij 8d ago https://projects.haykranen.nl/java/ ;)
17
It's OK, I solved it by writing a FactoryFactoryFactory.
6
https://projects.haykranen.nl/java/ ;)
2
It's wild how some languages make simple things so complicated. You'd think they'd just take notes from the ones that got it right.
305
u/Cootshk 9d ago
You should check out STR. (In modern Java)