4 ms·
Hijacking a thread here trying to ask you a php question. Linked below, you said something reminds you to a old times when you were using arrays to work throug
by talldatethrow 3y ago
Hijacking a thread here trying to ask you a php question.
Linked below, you said something reminds you to a old times when you were using arrays to work through database results.
I still do this, building multidimensional arrays of results to later use.
How should/could I be doing it?
I'm self taught but built a decent sized webapp CRM/project management saas and am trying to learn a few new things before starting a new project.
PS, comically, your style of responding made me want to contact you. Reading some of your post history, we have very similar views on a lot of things. Interesting how that works.
Thank you for reading
https://news.ycombinator.com/item?id=34413404 https://news.ycombinator.com/item?id=34413404
- bakugo 3y agoI already explained how I personally do it in that comment chain: Doctrine ORM and Symfony. Instead of working directly with raw database data as arrays, you work with classes where all the database columns are defined as typed class properties and let the ORM handle the conversion between the two for you. If you're starting a new project in PHP, I recommend giving it a try. The SymfonyCasts tutorials are a great way to start (though sadly they're not free).