Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

I know this thread may cause some arguments but all I'm simply asking from each of your experiences which one is easier to understand AND use?

Second question, which is easier to understand for a beginner?

Edited by Script47
Posted
I have used both. I have even used a mix of both, which isnt the wisest of ideas. Have you used any of the two yourself?

Yes; I have done the exact same as you. Used both, even mixed at times. Why?

Posted
I meant say you could choose again as a beginner, which one would you pick from the start?

Well i started with procedural and then moved on to oop and stuck with oop , so that's my choice :)

Posted
I meant say you could choose again as a beginner, which one would you pick from the start?

I started with procedural, though I would never recommend to start there, I would say jump in head first in OO as that is the future

Posted (edited)

I think procedural is considered (from what I have personally read) stepping stones for beginners to get "acquainted" with PHP/MySQLi? My personal opinion, not fact.

Edited by Script47
Posted
I think procedural is considered (from what I have personally read) stepping stones for beginners to get "acquainted" with PHP/MySQLi? My personal opinion, not fact.

I started on procedural from reading a few tutorials , then i stopped with tutorials and just read through php's documentation and went with oop since then , so i would class it as a stepping stone

Posted
I started on procedural from reading a few tutorials , then i stopped with tutorials and just read through php's documentation and went with oop since then , so i would class it as a stepping stone

You would say it was a good choice to switch?

Posted
You would say it was a good choice to switch?

Personally yes , but i guess it's all down to personal preference , so see which you are most comfortable with and go with that choice

Posted

While the subject is on "What would you have done as a beginner, if you had the chance to restart", my answer is simple:

I wouldn't have started with PHP.

Posted
While the subject is on "What would you have done as a beginner, if you had the chance to restart", my answer is simple:

I wouldn't have started with PHP.

Why not?

 

There's hope for the boy yet

What do you mean?

Posted (edited)
It was directed to me - you don't need to know.

Sorry, thought it was to me. :) A very good share; insightful and a very good eye opener. I read some of it now, but it's nearly half four in the morning so I think it's time for bed for me!

Edited by Script47
Posted
I started on procedural from reading a few tutorials , then i stopped with tutorials and just read through php's documentation and went with oop since then , so i would class it as a stepping stone

That was the same as me, and now personally prefer OO because I've simply grown used to it, and you don't need to include your $c = mysqli_connect(); variable in every query you try to run whereas with OO you just use say $db->.

Posted
In all fairness, to post this, one should really include the Counter.

Not saying it's right. But a one sided, biased opinion never did any good to anyone.

You are quite right, and a good read. Thanks for the share.

Posted

The problem with Mysqli is that a lot of the time the procedural and the OO functions aren't the same speed, there's a lot of cases where the procedural function is faster than the OO function, on the other hand, on a couple functions (I can't remember which) the OO version is faster due to not needing the extra var.

With Mysqli, mixing OO and Procedural is the best way to go

 

Thanks! I've been looking everywhere for an article to print onto toilet paper =)

(just kidding)

Posted

To be honest, I think it all depends on a persons logic and preference.

I rather like PDO and have used SQL, MYSQL, MYSQLi.

For my java projects I used JDBC to connect to a MYSQL database. I think it's just preference, there is no one right answer really?

Posted
To be honest, I think it all depends on a persons logic and preference.

I rather like PDO and have used SQL, MYSQL, MYSQLi.

For my java projects I used JDBC to connect to a MYSQL database. I think it's just preference, there is no one right answer really?

is this is in the wrong thread? I would have expected this answer to be in the PDO the way forward? thread as you haven't mention OOP or Procedural mysqli :/

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