Cette personne est toujours à l'écoute de nouvelles opportunités. Il a des compétences en environnement PHP/Symfony mais il reste ouvert sur le plan technique.
Bref, si vous avez quelque chose pour lui, je vous mets immédiatement en relation !
Belle journée à tous
https://t.co/OqKYqXri8N
#SymfonyCon talks, slides and links are on @github here:
▶️ https://t.co/xIDTtox4K8
If you are a speaker, please share your slides 🥰
But also a blog post explaining your talk would be awesome
#PHP#Symfony#Twig#HTTP#Postgres
Turns out what people wanted to do was `$a = [-1 => 'first', 0 => 'last']; $a[-1] // 'first'`
Where what I wanted to do was `$b = ['first', 'last']; $b[-1] // 'last'`
😭
TFW you believe #PHP 8.3 allows you to get the last element of an array using `$a[-1]` thanks to the Negative Array Index RFC 🤯
And then when you realise that, no, it doesn't. Instead it just allows you to use negative numbera as indexes 😞
https://t.co/e9vHO0hoaZ
`[TaggedIterator(<tagName>, defaultPriorityMethod: <method>)]` to execute the Strategies in a specific order
Notes:
- "method" example: `Strategy::getDefaultPriority(): int;`
- highest priorities are executed first, lowest last
- "method" MUST be static
Blogged - Strategy Pattern, #Symfony 5.3 and autowiring https://t.co/RPXgDbEv0R
TL;DR:
- use "AutoconfigureTag" attribute on the "Strategy" Interface
- use "TaggedIterator" attribute in the "Context" constructor's strategies iterable
I'd probably make sure to use a Singleton for the AppKernel in the PHPUnit test cases (which we do in the application).
And avoid using setUp / test class properties (see: https://t.co/5R4DEHSZ65)
Blogged - PHPUnit's setUp() is a lie https://t.co/2fT7MHVZEK
TL;DR: PHPUnit creates as many instances of a Test Class, as it has test methods.
Intrigued? It gets worse 😅 as you'll find out by reading the article. What I didn't mention in it, though, is...
I've found this 2017 tweet of mine, showing the results of the #phpspec / #PHPUnit testsuite.
I thought it'd be interesting to compare it to its future self from 2024.
https://t.co/5HBeHMrvwb
Dang. It's been almost 10 years since these articles. I should probably update them... Except nothing has changed!
The principle remains the same, it'd just be about upgrading the frameworks and libs.
OOP has always been about messaging.
According to Alan Kay, the original conception involved objects communicating like cells or computers on a network, emphasizing messaging, local retention, protection, hiding of state-process, and extreme late-binding.
https://t.co/6e0dxnESro