Похожие чаты

I'Ve been getting familiar with the new features of Java

(text blocks, template strings, records, pattern matching, switch expressions).

What does the adoption of these features look like in your experience?

2 ответов

15 просмотров

They are used and highly appreciated by devs. Switch expressions is a bless, people love to use them. Same with pattern matching. Used often, when people discover them. Records are not too useful for backend because they are final (non-extendable, you can't express type hierarchy with them), but often used when you need a tuple, or do for private code. For public DTOs, I haven't seen them in this role. Template strings - haven't seen them yet, I'm still on java 17. But I feel they won't be popular because everyone is used to old good c-style string.format. Not sure, time will show. Text blocks are very useful in tests, people use them

Dmytro Buryak
They are used and highly appreciated by devs. Sw...

I've tried using string templates and I really really like it, string is much more readable and it's easier to understand what is pasted and where

Похожие вопросы

Обсуждают сегодня

Комрады, хотел уточнить. Проперть в OnDestroy юнита-хозяина по-прежнему доступна? И еще уточнение: finalization юнита наступает раньше или позже OnDestroy?
Ed Doc
38
Здравствуйте! Есть вопросы по ПК: 1.1. Безопасно ли запускать программы, которым я не доверяю, в виртуальной машине под KVM+qemu? (x86_64) 1.2. То же самое при использовании ...
Pavel
5
Проблема с Windows scripting control Множество объектов получают iDispatch обертки и отдаются в скрипты. При этом скрипты могут эти обертки держать живыми очень долго, наприм...
Arioch The
16
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
Я тут пытаюсь переработать архитектуру подсистемы памяти ядра во что-то осмысленное. Есть pmm, который создает набор range’ей(пока что только для ядра, потом для юзерспейса), ...
Evg Resh
9
Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
37
У меня вопрос, а какой уровень оптимизации ставить при сборке на i5 4 ядра 16G ddr3 ОЗУ и видюха Geforce GTX 970?
Sir Jiga
18
Guys, what’s the most expensive part of your budget for your business/startup/app/website?
Ice Kream
18
What is the best and safest exchange to trade XMR ? with no kyc ...obviously 👍
cabbageflaps
12
Oh.... Admins at the main TG is already muted me. How many months Sir you muted me? Or forever if you are here @Janevietani @JohnnySonic
Charles Dar
28
Карта сайта