My stance: Uninitialized variables and array keys are fine. Back-end security issues with setting them should be fixed in core, not worked around by banning them.
Please, convince me that uninitialized variables are wrong. I WANT TO BELIEVE!
Use Value Objects rather than massive $options arrays when exposing an interface for configuring requests made by your SDK, because you want to make your SDK code as self-documenting as possible. - @SecondeJ#phptek
Put business logic in your SDK. Don't just wrap curl. And have very clear and in-depth testing because those tests document what the API is supposed to do. - @SecondeJ#phptek
When I was revamping "Up to my Eyeballs in Technical Debt!" talk (11am Central tomorrow morning here at #phptek!) I wrote a whole section on the #AdapterPattern, which I then had to cut out for time.
Hey #phptek, less than two hours until we talk about #PHP on the #CLI. Be there or be…in another session more aligned with your interests and/or learning goals.
Or taking time for yourself (remember: we’re only halfway through the conference and it’s important to pace yourself).
Or building lifelong friendships with fellow attendees.
I hope you spend the 3pm hour with me, but however you choose to spend it I hope you enjoy!
#phptek PHP upgrades are easier with tests, ci-cd, static analysis and orchestration. Up front investment always sucks but it pays off so much. Our last PHP upgrade took less than an hour.