Jump to content
MakeWebGames

OOP or Procedural MySQLi


Script47

Recommended Posts

  • 6 months later...
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? :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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