I have published a video about what I call Access Scoping - a very simple design technique which brings benefits similar to method chaining (my previous video).
https://youtu.be/MHkmgQT7Rxo
Access scoping is a bit more verbose than method chaining - but you don't have to explicitly design your classes to support access scoping - like you do with method chaining.
Also, access scoping gives you full up-reach and self-reach during object graph creation - unlike method chaining which only gives you limited up-reach and self-reach (only on the call chain - not off).
Access scoping is similar to, but not the same as, the "with" operation in some languages.
Access scoping is also similar to Kotlin's scope functions - but Java does not yet have those, as far as I know (but I could be wrong) .
I would like access scoping to eventually be a language feature with syntax support... just like the for-each style loops in Java 😊
September 17, 2025 801