Script47 Posted August 25, 2013 Share Posted August 25, 2013 (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 August 25, 2013 by Script47 Quote Link to comment Share on other sites More sharing options...
Coly010 Posted August 25, 2013 Share Posted August 25, 2013 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? Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 25, 2013 Author Share Posted August 25, 2013 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? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2013 Share Posted August 25, 2013 OO, I have used both, and still feel OO is easier Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 25, 2013 Author Share Posted August 25, 2013 OO, I have used both, and still feel OO is easier How so? --too short-- Quote Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2013 Share Posted August 25, 2013 How so? --too short-- Just what I have got used to. Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 25, 2013 Author Share Posted August 25, 2013 Just what I have got used to. I meant say you could choose again as a beginner, which one would you pick from the start? Quote Link to comment Share on other sites More sharing options...
mixmaster Posted August 25, 2013 Share Posted August 25, 2013 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 :) Quote Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2013 Share Posted August 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 25, 2013 Author Share Posted August 25, 2013 (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 August 25, 2013 by Script47 Quote Link to comment Share on other sites More sharing options...
mixmaster Posted August 25, 2013 Share Posted August 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 25, 2013 Author Share Posted August 25, 2013 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? Quote Link to comment Share on other sites More sharing options...
mixmaster Posted August 25, 2013 Share Posted August 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
SRB Posted August 25, 2013 Share Posted August 25, 2013 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. Quote Link to comment Share on other sites More sharing options...
Alan Posted August 25, 2013 Share Posted August 25, 2013 I wouldn't have started with PHP.There's hope for the boy yet Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 26, 2013 Author Share Posted August 26, 2013 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? Quote Link to comment Share on other sites More sharing options...
SRB Posted August 26, 2013 Share Posted August 26, 2013 Why not? Try this for starters then research more on how bad PHP really is. What do you mean? It was directed to me - you don't need to know. Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 26, 2013 Author Share Posted August 26, 2013 (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 August 26, 2013 by Script47 Quote Link to comment Share on other sites More sharing options...
Coly010 Posted August 26, 2013 Share Posted August 26, 2013 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->. Quote Link to comment Share on other sites More sharing options...
Seker Posted August 26, 2013 Share Posted August 26, 2013 Try this for starters 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. Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 26, 2013 Author Share Posted August 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
Barrikor Posted August 27, 2013 Share Posted August 27, 2013 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 Try this for starters Thanks! I've been looking everywhere for an article to print onto toilet paper =) (just kidding) Quote Link to comment Share on other sites More sharing options...
DeathsAlive Posted August 27, 2013 Share Posted August 27, 2013 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? Quote Link to comment Share on other sites More sharing options...
Coly010 Posted August 27, 2013 Share Posted August 27, 2013 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 :/ Quote Link to comment Share on other sites More sharing options...
Script47 Posted August 27, 2013 Author Share Posted August 27, 2013 With Mysqli, mixing OO and Procedural is the best way to go I tried that, but I was told not to do it, as it's a bad idea. 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.