Larry Garfield on Nostr: I just unironically built a ...
I just unironically built a CallbackFilterIterator(CallbackFilterIterator(RecursiveIteratorIterator(RecurisveDirectoryIterator))).
PHP's iterators are powerful, but damn, they look so funky the way you have to handle recursion...
Published at
2024-08-29 21:10:59Event JSON
{
"id": "f4321e2810fed5c9477015e141da9a2406c88cc9dcfba26010110e183c26b2ff",
"pubkey": "e8201addc43dd2260f2fa3afd98a4568bd3ef7256f7173f7d444f6770340d26a",
"created_at": 1724965859,
"kind": 1,
"tags": [
[
"proxy",
"https://phpc.social/users/Crell/statuses/113047362587255510",
"activitypub"
]
],
"content": "I just unironically built a CallbackFilterIterator(CallbackFilterIterator(RecursiveIteratorIterator(RecurisveDirectoryIterator))).\n\nPHP's iterators are powerful, but damn, they look so funky the way you have to handle recursion...",
"sig": "23f53141181e46cc0200ee3d0b00416943609e8d54844d1bf62f0562f7992d6454ff4d0b575fcd81fe2c1915ed7f3c27d7db95b4c6b2a93e2869fd9294ba7f18"
}