4 ms·
You're correct. As other comments pointed out, this is an OOP builder pattern: `container().from('alpine').withExec(args: ["apk", "add"]).terminal()` If it wa
by myaccountonhn 2y ago
You're correct. As other comments pointed out, this is an OOP builder pattern:
`container().from('alpine').withExec(args: ["apk", "add"]).terminal()`
If it was unix pipes, they'd be context independent tools being composed together.
Dagger can be a useful but I feel a bit deceived, and it makes me worry about the rest of the quality of this product.
- levlaz 2y agoIt’s similar to a builder pattern but not just a builder pattern because depending on the type you can indefinitely pipe context independent types. So it’s a bit of a hybrid between bash and powershell.
- Kinrany 2y agoYeah this is method chaining, and method chaining is not the same as piping.