Irritating Strings -- Iterating Things

Eric Poe (03.Feb.2017 at 10:15, 1 hr )
Talk at SunshinePHP 2017 (English - US)

Rating: 5 of 5

Arrays are beautiful in PHP. One can map them, reduce them, filter them, foreach them, and use them in generators. Strings, on the other hand, are mere shadows to the Array. One can, uh, input and output Strings, and, when brave, manipulate them. What makes Arrays so awesome and Strings so dull? Iterators.

In this talk, we’ll look at the modest origins of the String and the basics of the Iterator. Then, we’ll look at how we can make the String as awesome as the Array through the use of iterator interfaces.

By the end of this talk, you will know the origins of the PHP String and you will be able to extend your knowledge of iterating through a String to be able to iterate through customized objects.

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

03.Feb.2017 at 11:10 by Kylie Stradley (5 comments) via Web2 LIVE

Really cool. I'll have to read through the slides & gitlab repo later

Rating: 4 of 5

03.Feb.2017 at 11:44 by Cristiano Diniz da Silva (32 comments) via Web2 LIVE

Showing the info and all the insanity that is related to the Iterators from PHP was pretty nice. Great content to get started on this portion of PHP

Rating: 5 of 5

04.Feb.2017 at 07:29 by Ron Emaus (27 comments) via Web2 LIVE

Iterating strings is often a necessary but until now a not very exciting task for me. This talk makes we want to go and redo all the string handling code I've written in the past. I've heard reference to spl iterators but have never actually seen anyone at a conference go into detail on using them. Creating an iterable null object is great and something I never would have thought of looking at the docs. I will definitely study the haystack repo to better understand the inner and outer iterable patterns.

Rating: 5 of 5

04.Feb.2017 at 13:43 by Rodrigo Vieira (13 comments) via Web2 LIVE

Great talk. Thank you.

Rating: 5 of 5

04.Feb.2017 at 17:36 by Liviu Ifrim (13 comments) via Web2 LIVE

Very helpful, I will include what I've learned in my work.

© 2019