back
user profile
doekenorg
88karma·13submissions·October 8, 2021
recent activity (13 total)
comment
I have a slight visual disability, so I kept wanting to read this on my e-reader at my own font size instead of clicking through dozens of pages on a bright screen. That's why I built a script th…
comment
Learn how a ClockInterface helps you decouple time and write stable, testable code.
comment
You can use the SPL LimitIterator, feed it the generator, and give it the offset and limit. ```
foreach (new LimitIterator($generator, 0, 3) as $value) {
echo $value;
}
``` https://www.…
comment
I agree, but I had to draw the line somewhere on this article as it was already getting pretty long. And since I'm tackeling concurrency in the next post, it made more sense to me to start talkin…
comment
Just to clarify my intent with posts like this: I'm not suggesting that PHP is the ideal tool for every use case. The goal is to share a concept that might be unfamiliar to some developers, using…
comment
Yes, there is! However, even if the `iterable` it was yielding from a different Generator, the "outer" generator would still be "running", which still makes it asymmetrical. `yield…