Top "Method-chaining" questions

Method chaining, also known as named parameter idiom, is a common syntax for invoking multiple method calls in object-oriented programming languages.

PHP method chaining?

I am using PHP 5 and I've heard of a new featured in the object-oriented approach, called 'method chaining'. What is …

php oop method-chaining
Method chaining - why is it a good practice, or not?

Method chaining is the practice of object methods returning the object itself in order for the result to be called …

oop fluent-interface method-chaining
Chaining selectors in jQuery

I'm a guy used to mootools' way of chaining selectors, and I can't seem to find anywhere how to do …

javascript jquery css-selectors method-chaining
Calling multiple methods in Java

I found a new way of calling multiple methods in Java and I don't really understands what's happening behind: public …

java class methods method-chaining
Basic method chaining

I found this method chaining in python, but even with it I couldn't understand method chaining in Python. Here the …

python method-chaining
How to do method chaining in Java? o.m1().m2().m3().m4()

I've seen in many Java code notation that after a method we call another, here is an example. Toast.makeText(…

java method-chaining
How does basic object/function chaining work in javascript?

I'm trying to get the principles of doing jQuery-style function chaining straight in my head. By this I mean: var …

javascript methods chaining method-chaining
Mockito - Stubbing a method of an object that was returned by a mock object method

Let's say I have an mock object, and I don't want to stub any of it's methods, but I want …

java mockito method-chaining stubbing
method chaining in python

(not to be confused with itertools.chain) I was reading the following: http://en.wikipedia.org/wiki/Method_chaining My …

python method-chaining
Conditional Builder Method Chaining Fluent Interface

I was wondering what would be the best way to implement a .When condition in a fluent interface using method …

c# design-patterns builder fluent-interface method-chaining