3 ms·
I've seen similar things, in Java as well as some other languages. It's obviously not the preferred way of doing it.
by mcv 1y ago
I've seen similar things, in Java as well as some other languages. It's obviously not the preferred way of doing it.
- readthenotes1 1y agoUnreadable+undebuggable has been the preferred way of doing it for as long as I have seen software
- seattle_spring 1y agoSeems perfectly readable to me, and I haven't used Java professionally in over a decade. What specifically do you find problematic?
- psini 1y agoThe ~12 levels of indentation and 5 layers of nesting are doing my head in personally but maybe my brainspace is too small.
- rs186 1y agoI think this perspective explain the issue well: you pretty much cannot unit test this (unless you consider the whole function a unit). It becomes very unclear what each lambda expression is about, the deeper you get.