Barrikor Posted August 28, 2013 Share Posted August 28, 2013 I tried that, but I was told not to do it, as it's a bad idea. If you only could pick one then you would need to pick Procedural, since the speed of the fetch functions will matter. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted March 11, 2014 Share Posted March 11, 2014 I have always preferred OOP with procedural-style functions. Always have, always will. I have multiple arguments to support my preference, but I've recently had a tooth pulled - so I'm a little groggy :P Quote Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2014 Share Posted March 11, 2014 I have always preferred OOP with procedural-style functions. Always have, always will. I have multiple arguments to support my preference, but I've recently had a tooth pulled - so I'm a little groggy :P How can you have "procedural style functions"? Enlighten me? :) Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted March 11, 2014 Share Posted March 11, 2014 How can you have "procedural style functions"? Enlighten me? :) Again, I was/am groggy. That was bad phrasing, sorry about that. I meant $db = mysqli_connect('yada yada') instead of $db = new mysqli('yada yada'); Quote Link to comment Share on other sites More sharing options...
sniko Posted March 11, 2014 Share Posted March 11, 2014 (edited) Again, I was/am groggy. That was bad phrasing, sorry about that. I meant $db = mysqli_connect('yada yada') instead of $db = new mysqli('yada yada'); Ew. [noparse]/IWantedToKeepItShortForEmphasisButForumSoftwareSaidNoNo:([/noparse] Edited March 11, 2014 by sniko Quote Link to comment Share on other sites More sharing options...
Dave Posted March 19, 2014 Share Posted March 19, 2014 I'll always be an OO fan! Generally I'm working with some form of ORM so my need for straight up database interactions is small. I'd rather build a good ORM then use procedural functions but I am a PDO lover. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted March 20, 2014 Share Posted March 20, 2014 I'll always be an OO fan! Generally I'm working with some form of ORM so my need for straight up database interactions is small. I'd rather build a good ORM then use procedural functions but I am a PDO lover. Have you tried RedBean? One of the best ORMs I've ever used! Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 20, 2014 Share Posted March 20, 2014 Have you tried RedBean? One of the best ORMs I've ever used! Eloquent f.t.w Quote Link to comment Share on other sites More sharing options...
john. Posted March 20, 2014 Share Posted March 20, 2014 Eloquent f.t.w Agreed. Eloquent is awesome and a brief to work with. Occasionally you may have some complex queries that can be tricky to solve with Eloquent, but usually not a issue. I've tried RedBean as well, it's certainly comforting to use when developing prototypes, have never used it in a released project or in work however. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.