Похожие чаты

Guys i need some advice. I have to refactor a

big package wrote as s**t. It s like a big main method that calls other methods that calls other methods... And i have to write junit tests... So, i was thinking that maybe i can transform the nested methods into lambda espression. What do u think about?

2 ответов

9 просмотров

I wish you the best of luck sir

Sounds like "I want to use a feature because I learned it". Personally, I don't see any point. Lambdas are better when you need a small handler and where it's obvous what this lambda is for. In your case it looks like you need introduce more context instead - small classes with names, small methods with names. But not to remove excessive context. Or I totally missed the point

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

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

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
Ясн. Но я всеравно к кедам отношусь с опасением. Чисто субьективное кедосозерцание. Что касаемо "восторга изяшности кед" так и не вкурил, хотя много слышал, пока не поставил с...
Артем Записной
30
А чем вам питонисты не угодили?😂
.
79
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Такой вопросец - есть функция function MySuperDuperConcat(const a: array of AnsiString): AnsiString; Как мне в её теле сделать вот так? Result:=Concat(a); А не грустный вариан...
notme
15
[c8] what's the best looking best ux mobile wallet in crypto?
DiscordBridge
12
They keep hyping $FUN but where's the progress? 🙄
Noah Noure
23
Btw guys very stupid question but i haven't researchd so js asking you pros . Can ltc be traced too? Literally point to pint to the user? And getting the banks blocked ? Exch...
20
Can I deposit from Bingx-exchange to wazirx? Any problem? Admin
Crypto Alt Trader
16
Карта сайта