Rethinking Loops

John Kary (09.Apr.2016 at 14:00, 50 min)
Talk at Lone Star PHP 2016 (English - US)

Rating: 5 of 5

Rethinking Loops

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Comments closed.


Rating: 5 of 5

09.Apr.2016 at 14:43 by Taylor Otwell (6 comments) via Web2 LIVE

Such a good topic! Well presented intro into getting rid of loop cruft. Love it.

Rating: 5 of 5

09.Apr.2016 at 14:47 by Michael Diviesti (13 comments) via Web2 LIVE

The description doesn't lie. This does change the way in which we think about loops.
The talk was very informative and brought a new way of looking at tackling (and avoiding) loops for cleaner more descriptive code.

Rating: 5 of 5

09.Apr.2016 at 14:56 by Jason Goodman (14 comments) via Web2 LIVE

Well presented. Interested to try some of these soon.

Rating: 5 of 5

09.Apr.2016 at 15:00 by Colin O'Dell (122 comments) via Web2 LIVE

I've been using functional programming concepts in PHP for a while but never thought to use a collection pipeline. I'll definitely be integrating those packages into my projects.

Great talk!

Rating: 5 of 5

09.Apr.2016 at 15:05 by Chris (14 comments) via Web2 LIVE

Great challenge to the common use of explicit loops in our interpreted languages. +1 for anticipating my question about performance.

Rating: 5 of 5

09.Apr.2016 at 15:35 by Jenniffer Onukwugha (11 comments) via Web2 LIVE

Great automated example of how to clean up code.

Rating: 4 of 5

09.Apr.2016 at 17:14 by kyle sloan (12 comments) via Web2 LIVE

Enjoyed the talk, really made me think about the speed of writing code, vs being able to read it later.

I personally haven't used array map/reduce/filter so a brief description of the purpose on the slides of the function. You gave an example, and maybe you said it out loud, but I was deep in thought/read digestion of the code on the slide.

Rating: 4 of 5

09.Apr.2016 at 20:03 by Mark Priddy (18 comments) via Web2 LIVE

Rethinking Loops? I was expecting another talk on the humorously named IteratorIterator. What I got instead was astonishing - nothing less than chaining built in array processors to completely remove loops.

Rating: 5 of 5

09.Apr.2016 at 22:16 by Brant Messenger (10 comments) via Web2 LIVE

This one made me really ponder what I'm doing. All I could think was that I need to REFACTOR!!! Very concise.

Rating: 4 of 5

09.Apr.2016 at 22:37 by moazzam khan (2 comments) via Web2 LIVE

Great talk. I liked this one better than the others I attended.

One thing though: using plain numbers (instead of variables) may not always be a good idea (like age). It is not always clear what the number is supposed to represent so maybe assign it to a constant (if not a variable). I do agree, though, if a variable is being used only once then it's better to just use the method call() instead of assigning the value to a variable and then using the variable.

I benchmarked the performance of array_map() vs foreach loop and array_map was always slower than foreach (and foreach is slightly slower than for loop). If speed is primary concern then using array_map() , array_reduce() might not be a good idea. I haven't benchmarked this for PHP7, yet so I'm not sure how PHP7 handles it.

Rating: 5 of 5

10.Apr.2016 at 20:18 by James Kersbergen (29 comments) via Web2 LIVE

This is a great topic! I am always looking for ways to eliminate loops and with this information I am ready to find new ways.

Rating: 5 of 5

11.Apr.2016 at 11:36 by Keith Casey (105 comments) via Web2 LIVE

So I walked into this one with more intrigue than interest and I'm sincerely glad I did..

I default to loops most of the time because they're a nice hammer that I know. Using map reduce concepts to collapse and simplify loops is a powerful approach that I hadn't considered.

This is one of the few decks I've bookmarked to come back to later.

Rating: 5 of 5

21.Apr.2016 at 17:15 by David Trower (13 comments) via Web2 LIVE

Interesting topic at how to avoid using loops. While I think some of them might be overkill just to avoid doing a loop, the talk was great at causing people to think of different ways to code without relying on loops all the time.

© 2019