Talk:Method chaining

Jquery is not a language
Can we get some non-jquery Javascript examples, maybe subsection jQuery inside of it? - eranimo

Same object or some object?
Typically, method chaining simply consists of many methods on a class, each of which return the current object itself.

Isn't this rather atypically? One often encounters methods chained together, with each method returning some object, not necessarily the same object from which the first method was called.

For example, this "official" Java tutorial uses the notion method chaining for methods chained together, with each method invocation returning some object.

--Abdull (talk) 11:06, 12 June 2009 (UTC) --202.53.168.118 (talk) 07:22, 20 October 2011 (UTC)Swapno

Misleading jQuery Example
It also makes code more clear and prevents executing the same selection several times (hence improving performance).

It is easily possible to not execute the same selection multiple times without method chaining, with the following example : The claim that method chaining improve performance by not executing the same selection several times is wrong.

Aralicia (talk) 08:54, 21 May 2013 (UTC)

C# and LinQ
Why don't you cite C# and LinQ as examples of method Chaining? LinQ syntax introduced with C# 3.0 transpose a query expression to a chain of function calls. Using also lambda function to generate mapping between results and construct predicate, we create a functional language over the classical static type C# language. Gnbc (talk) 16:18, 15 February 2016 (UTC) comment added by Gnbc (talk • contribs) 16:13, 15 February 2016 (UTC)

POV dispute
This page is negatively tilted against its topic.

> A method chain is also known as a train wreck due to the increase in the number of methods that come one after another in the same line that occurs as more methods are chained together[4] even though line breaks are often added between methods. — Preceding unsigned comment added by Wycats (talk • contribs) 19:28, 17 November 2017 (UTC)

External links modified (January 2018)
Hello fellow Wikipedians,

I have just modified one external link on Method chaining. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
 * Added archive https://web.archive.org/web/20110222112016/http://firstclassthoughts.co.uk/java/method_chaining.html to http://firstclassthoughts.co.uk/java/method_chaining.html

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

Cheers.— InternetArchiveBot  (Report bug) 19:11, 26 January 2018 (UTC)