Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: comp.lang.java.help Subject: Re: Lambdas/Callback Functions/Functional Programming. What is the point? Date: Thu, 22 Jan 2015 18:33:47 +0100 Organization: Informatimago Lines: 29 Message-ID: <87ppa6u3d0.fsf@kuiper.lan.informatimago.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 6m0wEjsIBzqnTgDNwnQ77AeUSmV+iC9v4ufSAhJoNMywaVCHvK Cancel-Lock: sha1:MWFlMWQwNTJhYTgwNmNkMTQ4ODA0MDU2YTkwNTg4Y2QzODg5MTNhYg== sha1:A/UfRNIPrGkMNx7KtL+MxrX9tpc= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Xref: csiph.com comp.lang.java.help:3151 Steve writes: > Hi all, > > I had my first introduction to Java 8 last night via a talk on > lambdas, streams, and functional programming. > > I understand that this is they way college students are learning to > program in Java, so it is here to stay, so I plan on learning it too. > > I want to understand why Oracle implemented lambdas, streams, and functional programming. > > It looks very similar to the "callback funcitons" I have seen in > javascript and the jQuery library. I never liked that as it seemed to > me to be a poor way of organizing things ( feeding blocks of > code/functions into other functions ). > > Basically, what I would like to understand is what are the benefits of these things? http://web.stanford.edu/class/cs242/readings/backus.pdf http://worrydream.com/refs/Hughes-WhyFunctionalProgrammingMatters.pdf -- __Pascal Bourguignon__ http://www.informatimago.com/ “The factory of the future will have only two employees, a man and a dog. The man will be there to feed the dog. The dog will be there to keep the man from touching the equipment.” -- Carl Bass CEO Autodesk