Remembering the brilliant Marjane Satrapi, the extraordinary artist and filmmaker behind Persepolis.
Through this deeply personal and powerful film, she gave audiences a story of identity, freedom, exile and resistance that continues to resonate across the world.
@anon_opin Anyone who is capable of getting themselves made President should on no account be allowed to do the job.
Douglas Adams, The Restaurant at the End of the Universe
@nicksdot@TheCelavi@coderabbi Thanks. The PHPStan error message example illustrates your point very well. Adding generics to PHP will allow complex nested type definitions. In these cases, unless type aliases or some other abstraction mechanism is also added, PHPDoc would be more readable.
@nicksdot@coderabbi There is a threshold of complexity for most things where it should become its own entity. That's why we break code down into classes and functions. The array shapes in your example should not be inline, and preferably have a completely separate definition from the method.
@nicksdot@coderabbi I feel like array shapes are quite a PHP-specific thing due to it never having had a struct type and it's use of hashes everywhere instead. I try to keep them at the edges rather than the core of my code.
@nicksdot ... Adding new features in the PHPDoc block is a good way to experiment and see what works. I don't think making some syntax inline precludes improving how PHP works with PHPDoc.
@nicksdot Well the history of PHP has seen the progression of features from PHPDoc annotations to inline syntax. I find the inline syntax generally more readable, because information is right where it applies without having to look up the identifier. ...
@nicksdot The equivalent PHP with generics would look something like this. I don't feel overburdened by this notation. It's concise, there's no repetition, and type info is right where it's used.
You can write very complicated type signatures, but that's a problem wherever you write them
An observation test for your inner 8-year-old.
Can you spot the 6 creatures hidden in the picture?
From Treasure magazine, 1965
Official answers coming soon
(Even if you don’t reply, could you please ‘like’ or share this one?)
I was happily listening to Project Hail Mary on @SpotifyUK this morning when they suddenly dropped it from their catalogue. Rude!
Found it on @audibleuk and carried on where I left off.
@ATRightMovies I love them all, but The Worlds End is the one I like to come back to. The final confrontation of two, no three, drunk men with The Network always has me cheering them on.
Wondering if the hearts of those frustrated by small acts of petty symbolism, by the feeling that smashed windows and graffiti on bakeries are simply not enough, are cheered by the upgrade to burning ambulances this morning.