What is Nostr?
🇵🇸 Álvaro González /
npub17qp…wjdg
2024-07-16 16:10:00

🇵🇸 Álvaro González on Nostr: Me doing reviews: "No design, just list of instructions in long function. But solves ...

Me doing reviews: "No design, just list of instructions in long function. But solves bug and old code isn't better. Gotta be practical, approved."

Me getting reviews: "No, you cannot create object instances yourself, ever. Best practice is to inject class in constructor and let Symfony load it."
Alright, I'll get rid of new \DateTime() call and build some DateTimeServiceInterface.

(Names changed for rant purposes)
#php #symfony
Author Public Key
npub17qp6g325e7hqsn7440yk9xj3cspvlw08fs8jvqeqzflrdn60fzxqdswjdg