Do thin fluent builder method chains have any need to be “extensible”?
In an environment where refactoring is difficult extensibility can be a life saver. However, this is no excuse to over engineer code.
Do thin fluent builder method chains have any need to be “extensible”?
In an environment where refactoring is difficult extensibility can be a life saver. However, this is no excuse to over engineer code.
How to avoid long call chains?
I have a hierarchy of objects, mostly connected by composition. I.e. (not showing the class methods for readability):
Coding style issue: Should we have functions which take a parameter, modify it, and then RETURN that parameter?
I’m having a bit of a debate with my friend over whether these two practices are merely two sides of the same coin, or whether one is genuinely better.
Method for all objects for checking conditions which also includes method chaining and avoiding variables
(I am currently using groovy but it should apply to most OO languages so I also put the langauge-agnostic tag)
Method for all objects for checking conditions which also includes method chaining and avoiding variables
(I am currently using groovy but it should apply to most OO languages so I also put the langauge-agnostic tag)
C# OOP Class Usage [duplicate]
This question already has answers here: What is the name for the idiom using method chaining to build an object? (3 answers) Closed 9 years ago. I am just being picky and really wanted some of my code to look, feel, and be used a specific way but am not sure if its possible. I […]
C# OOP Class Usage [duplicate]
This question already has answers here: What is the name for the idiom using method chaining to build an object? (3 answers) Closed 9 years ago. I am just being picky and really wanted some of my code to look, feel, and be used a specific way but am not sure if its possible. I […]
Returning the object/$this [duplicate]
This question already has answers here: Are there any actual drawbacks to self-referential method chaining? (4 answers) Closed 9 years ago. A very general question. I was thinking about method chaining, which seems useful, and began wondering if there is a reason to not return the object in a class member, as a matter of […]
Returning the object/$this [duplicate]
This question already has answers here: Are there any actual drawbacks to self-referential method chaining? (4 answers) Closed 9 years ago. A very general question. I was thinking about method chaining, which seems useful, and began wondering if there is a reason to not return the object in a class member, as a matter of […]