Jump to content
MakeWebGames

Recommended Posts

Posted
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.

  • 6 months later...
Posted

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

Posted
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? :)

Posted
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');
Posted (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 by sniko
Posted

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.

Posted
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!

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...