r/java • u/vladmihalceacom • Dec 11 '25
Modern Bytecode Instrumentation with ByteBuddy – Rafael Winterhalter | The Marco Show
https://www.youtube.com/watch?v=AzfhxgkBL9s
40
Upvotes
r/java • u/vladmihalceacom • Dec 11 '25
View all comments
Show parent comment
3
u/repeating_bears Dec 12 '25
I didn't mean to imply that named and default params were the only language features that start to obviate the need for builders; they were just examples. There are other features that also help: some kind of spread operator, or withers like you mentioned.
But with only having named and defaults params, we could structure our tests like this
Post's constructor in this instance may either provide default params (e.g. for app code) or not. It doesn't matter, as the test code will provide all of them.
Why is that worse than your example?