« first day (509 days earlier)      last day (4436 days later) » 

12:00 AM
why this make me an error class SQLQuery{
public $mysqli;

public function open_connexion($host,$user,$pass,$name){
$mysqli = new mysqli($host, $user, $pass, $name);
if($mysqli->connect_errno && DEV_ENABLE) {
echo $mysqli->connect_error;
exit();
}
$this->mysqli = $mysqli;
}

public function query($sql){
$this->mysqli->query($sql);
}

}
when i try to make a query from outside ?
 
@ircmaxell , i concede ,, you are bigger geek the i am
 
Call to a member function query() on a non-object
 
@tereško :-P
 
in a positive way
 
:-P
 
12:02 AM
Can u help me guys ?
 
@MikeBoutin Clearly the property $mysqli does not hold a valid object. Since your property is open to the world to manipulate at will there's no telling what you have in that property.
 
@MikeBoutin Suggestion: post actual error messages
 
( ! ) Fatal error: Call to a member function query() on a non-object in D:\wamp\www\cms-evo\library\sqlquery.class.php on line 16
 
Alternatively, you haven't called the open_connexion() method
 
what's line 16?
 
12:04 AM
$this->mysqli->query($sql);
 
then you didn't call the open_conn method as @CharlesSprayberry pointed out...
 
my framework works this way : Login (extend from Model class Extend from SQLquery class)
theres my login
 
well .. do a var_dump() and see what is inside $this->mysqli
 
class Login extends Model {

public $_secure;

function __construct(){
$this->_secure = new secure();
}

public function sanitizePOST($post){

# infos validation compte argent
if(isset($post['username']) && isset($post['password'])){
$this->_secure->types = array('username'=>'string','password'=>'string','rdtoken'=>'string');
$this->_secure->lenght = array('username'=>30,'password'=>255,'rdtoken'=>255);
$this->_secure->minlenght = array('username'=>6,'password'=>8,'rdtoken'=>2);
$this->_secure->regex = array('username'=>regALPHANUMSYMBOL,'password'=>regALPHANUMSYMBOL,'rdtoken'=>regALPHANUMS
my model
 
gods below
 
12:06 AM
 
class Model extends SQLQuery{
protected $_model;

function __construct(){
$this->open_connexion(DB_HOST,DB_USER,DB_PASS,DB_NAME);
$this->_model = get_class($this);
$this->_table = strtolower($this->_model)."s";
}

function __destruct(){

}
}
?
 
@MikeBoutin , please , watch this video youtube.com/watch?v=wEhu57pih5w
 
why ?
 
Call parent::__construct() in Login ...but there's so many things wrong. It started with "Model extending SQLQuery"
 
@MikeBoutin , because you need to
 
12:07 AM
For one, a Model is not a means to interact with a database.
 
you are a lot of things you are doing wrong
 
The tutorial said it
im a novice
 
Model !== database
 
for one : extends signifies IS A relationship
and model IS NOT a query
 
what is Model ?
why the tutorial said that
 
12:09 AM
@MikeBoutin what tutorial?
 
model is a layer , which contains two strains of instances , each with different responsibility: domain business logic and data access
 
so its the controller who makes queries ?
 
Note that he said data access and not database. The data could be coming from anywhere
 
@MikeBoutin , no , it is not
 
I'm gonna go have dinner. See ya guys later
 
12:11 AM
i want to understand
dont be to silly guys
we aren't born programmer
 
what ? who is silly ?
 
you talk in a way to make me feel like a loser
 
don't be an ars and talk like normal person
 
the sigh
 
start by finding article in wikipedia about MVC
read it , and understand it
 
12:13 AM
ok
thank you
 
its said on Wikipedia that the model play with the datas and the databases
Thank you guys...
Ill continu this poor framework
but ill remake a good one
 
watch the "Clean Code Talks" videos on youtube
 
i have bought the PHP objects, Patterns and practice book from Matt Zandstra
 
it will contain most of stuff you need to know about OOP
 
12:17 AM
Awesome, doctrine documention went missing
 
Does this video is friendly ?
Cuas ei'm only a web integrator
who want to know more than doing visuals
sry for my english too
i'm French canadian
 
where did you get the impression that all of us here are native english speakers ?
anyway , you must understand OOP before you touch the MVC pattern
2
@MikeBoutin , watch the first 4 youtube videos : http://www.youtube.com/results?search_query=claen+code+talks
then learn about SOLID principles
and then get back to that article from Martin Fowler about GUI architectures
 
ok thank you
 
1:22 AM
how the hell i got suspended for this line ?!?!
 
RFC withdrawn
 
for the scalars ?
 
@tereško culmination of past events...?
 
@ircmaxell , i have been uncharacteristically polite lately
 
@tereško the system still tracks all flags...
 
1:27 AM
hmm ... might be
anyway , did you got an official reason for the withdrawal ? (im assuming that you didnt do it yourself )
 
1:41 AM
hello all :D
 
@NgalamCity , it is obvious that you re not a regular here , so .. you most likely have come here because you have a question
so .. if you do , please ask the question
 
user895378
2:03 AM
Anybody know if you can use named anchors with github flavored markdown for links within a single document?
 
user895378
I guess I should just try. Lazy me.
 
user895378
@ircmaxell woah, wait, what did I miss?
 
@rdlowrey nothing significant. I was thinking about withdrawing it anyway, as there's something much more radical (and beneficial) I'm thinking of proposing
 
user895378
LOL. Which is way better than the mild upsetting of the apple cart that happened with the original :)
 
yes
Do you have a second to run something by you?
 
user895378
2:09 AM
Yeah, if you don't mind reciprocating afterwards :)
 
of course
so imagine for a minute PHP6, significant BC breaks
 
user895378
I love those. Screw 'em. Upgrade, you louts.
 
what if there were only 4 types: {scalar: [numeric, string], complex: [array, object]}
"1" would be a numeric type, not a string.
as numeric is the type exposed to PHP, not stored internally
you still have is_int(), is_float() functions, but those are more checking the value of a numeric, not checking the type
You can't cast a numeric to a string, since it'll still be a numeric
but you could do string = numeric . string...
actually, scratch that. let me go back to my original thought, I haven't developed this one enough
 
user895378
Haha okay. I'm happy to listen anytime.
 
hrm...
I'm losing myself. I haven't thought this through enough yet
what's your's?
 
user895378
2:14 AM
I do that a lot. Well ...
 
user895378
Don't feel like you need to look at it right now because ... it's ... kinda ... lengthy, but ...
 
user895378
If you wouldn't mind perusing a mostly complete wiki entry on my Mediator situation and letting me know if you see any issues with any of the writing or code
 
user895378
Not like proofreading, I don't need that. Just conceptually.
 
user895378
@LeviMorrison Fancy meeting you here
 
2:17 AM
@rdlowrey Well, hello, chap! Good to run into you again!
 
user895378
@LeviMorrison I just wrangled @ircmaxell into a long and arduous read. He wouldn't have agreed if he knew what he was signing up for :)
 
:-P
 
@rdlowrey Eh, my scrollbar handle isn't that small on the wiki page ;)
 
user895378
It's frightening because I think back to school and how 250 words constituted a double-spaced page. There are literally 3000 in that thing and I have more than one section left to cover.
 
user895378
Or was it 500 words? I can't remember.
 
2:21 AM
It makes writing a thesis a bit easier when you have a lot to talk about
 
user895378
Yeah, I had no idea I had so much to talk about for 80-ish lines of code
 
user895378
Good news is I crushed my real work in record time so I get to do "fun" stuff all night
 
user895378
Public service announcement: Gonna grab some food. Back in 15 or so for anyone who cares
 
Tom
Hi! There's nobody in the JS room so I'll ask here : I'd like to do that kind of stuff object.'string taken from a variable' = 'test';
 
2:27 AM
Use object[variable] = 'test'
 
Tom
Oh really? wow it worked!
Thanks a lot!
 
2:39 AM
> The Mediator is most certainly not the entire hardware store, and you shouldn't dump it into objects that don't broadcast messages to the rest of your application.
I'm not sure that makes sense, since objects may want to listen to the events as well. So just because they don't broadcast, doesn't mean they don't need the mediator...
 
user895378
Good point.
 
I am writing a file upload script
 
user895378
Nice catch ... should be "that don't broadcast or listen for messages"
 
> The magic here is in the Mediator::setRebindObj method. It allows you to store an object as a property of the Mediator instance that all Closure listeners are automatically re-bound to when added as event listeners.
 
I am not checking file type.
I will be hacked.
 
2:41 AM
you lost me there. Up to this point, the whole theme has been reducing coupling and making lighter weight connections
then all of a sudden, this re-biding concept comes in, which throws that right out the window
now, I have a dependency on a completely unknown class (the bound to object)?
> The Artax framework utilizes Mediator::setRebindObj to store a reference to the framework's bootstrap class, giving all Closure listeners access to the framework's built-in dependency injection container and application-wide configuration settings.
so you just traded a Service locator for a mediator which fetches a service locator? Huh???
 
user895378
It sounded fishy at 2 in the morning last night too :)
 
user895378
As I was typing it I was trying to convince myself that's not what was happening
 
user895378
I think I need to reconsider how that's happening
 
yeah...
Overall quite good docs. I like them a lot. Those few points (the first simple error, and the two other logical issues) withstanding, nice job...
 
user895378
2:46 AM
Thanks very much for the input. Everything starts making sense in your own head when you say, "Oh, well I need this feature to do this."
 
user895378
I know what I'll be doing for the next 5 hours or so
 
No coding standards doc . . ?
 
:-D
 
user895378
@LeviMorrison Yeah, I'm going to do that now. Enough procrastination.
 
@rdlowrey Don't worry about refining it too much. I can help once you get the basics up there.
 
user895378
2:52 AM
@LeviMorrison Definitely. I'll hit you up in a little while with a link to gist. The good thing with about ircmaxell's input is that the problems are with the framework's implementation of the mediator, not the mediator itself. Thank goodness.
 
I couldn't do it. I had to allow only images. Couldn't let my localhost get hacked.
But
It's a naive impl
It trusts the type sent by the browser.
 
I ran a line-of-code count against one of my work projects today
a team of 4 developers averaged 10 lines of code per hour per dev on the project. I couldn't be happier with that rate...
 
The whole team averaged 10 per hour? I hope they are well-thought out lines of code and not just lazy . . .
 
no, per developer
so 40 lines of code per hour for the team
@LeviMorrison a lot of it was lost in refactoring and technical debt cleanup
 
Yeah, if your team was inheriting my current project, you'd have some clean-up to do :)
It's for a school project.
It's very poorly written.
 
3:07 AM
:-D
I'm really keen on write it until it works, then throw 3/4 of it away when you realize you don't need that cruft...
basically, admitting that we rarely get things right the first time around, and embracing that fact to make the overall project better in the long run...
 
I agree on the condition that you allow the time for refactor.
At the job I quit today, we didn't have that time.
It will bite them eventually.
And I'm glad I won't be the one cleaning it up.
 
:-D
 
user895378
Saying you don't have to rewrite much because you got it right the first time is like writing unit tests way after the fact and saying, "none of my tests ever fail, I must be an awesome programmer"
 
user895378
Just because it works doesn't make it correct. I have to refactor mercilessly to get something to a workable state.
 
user895378
Over and over.
 
user895378
3:10 AM
Or maybe that's because I'm an OCD perfectionist.
 
I don't know that I refactor over and over, but certainly SOME refactoring.
 
No, nothing should be sacred
 
user895378
@LeviMorrison Well, I should say, pare down and rewrite. Not full blown refactor.
 
@ircmaxell Being attached to code is a rough. You'll defend it all its lifetime and when it dies you are devastated.
 
agree
 
3:15 AM
Refactor everyday
OOP, people don't understand it. You read about inheritance, polymorphism and stuff and you think you kow OOP. But just because you know how to inherit doesn't mean you know when to inherit.
 
@andho which is why I list inheritance as an often-abused feature on my blog
 
class User extends DbMagic . . . I see that all the time
 
Maybe there is something to be changed about how we introduce devs to OOP
that was brought upon by the frameworks
 
user895378
<---- And just because you deride an anti-pattern doesn't mean you can't slip into recreating the same issues in a new way
 
@rdlowrey true
 
3:19 AM
:-P
 
user895378
The voice of experience.
 
For me, I started understanding OOP after a few years of USING it
i think the best thing was Domain Driven Design by Eric Evans
It really put some light on conceptual modeling even though that wasn't it's main purpose
 
user895378
The process of writing documentation outside actual docblocks always helps me a lot. I'm forced to think about and explain how/why something is implemented the way it is, which usually results in more refactoring.
 
user895378
Not to mention it puts in plain language any problems you may have created so that others can see them much more plainly.
 
also SRP should be one of the things coupled with OOP although it's not strictly part of OOP
 
3:23 AM
@rdlowrey Wait, you are saying if you actually design your project before you start it you could avoid some refactoring? What a novel idea!
 
@rdlowrey that is hard work :P
 
user895378
Well, I've got lots of time. It helps if you actually enjoy the process, though :)
 
user895378
That might be masochistic, I don't know.
 
@rdlowrey Eh, I enjoy the process as well. I don't mind writing out docs and agree with you that outside-the-code documentation does make you think about things differently.
 
hmmm i should start up on that then. or tell someone to do it :P
 
3:26 AM
Eh, you should document your own code. If you can't explain it don't expect somebody else to.
 
user895378
I enjoy the discussion that comes with writing prose documentation. It keeps me in touch with the academic side of things, which is something I've missed since being out of school. Papers are cool.
 
user895378
When you have an interest in how something works, talking (writing) about it is also interesting.
 
@rdlowrey Definitely
I normally have a wiki for most of my major projects
I've been digging Trello as a way to brainstorm ideas...not necessarily full blown papers.
 
user895378
Of course, the road to insomnia is littered with the decomposed husks of long-abandoned documentation wikis.
 
user895378
3:29 AM
But it's a great exercise nevertheless.
 
user895378
And practicing your writing is invaluable, regardless of the field in which you work.
 
user895378
Not to mention the only thing that will be left of you in a hundred or two hundred years is what you wrote (if we haven't blown ourselves to hell yet). It's a modicum of immortality.
 
@CharlesSprayberry I can't explain my code at the same level as the people who are using it. So it would be better to give them a start and let them ask the questions and document what they learn. Just my thought?
 
@andho You shouldn't need to document your code in a way that a user can understand it. You should document your code in a way that the next guy who needs to work on it has some inkling of why you did the things you did.
For example, I saw a function today that checks if a value is empty...but if it is a '0' or 0 that is considered not empty in this function. Some documentation from the original writer as to why they did that would be great right now
 
Okay that would be the technical docs, I will do that in sphinx, tried to do it in wiki, but seems just too removed from the code
 
3:34 AM
I like to do design and architecture level docs in wiki
 
@CharlesSprayberry design and architecture...you lost me there.
 
Source code docs should explain why you chose to do the things the way you did...at least in not-so-humble opinion
 
user895378
@CharlesSprayberry Me too! The formatting is fun :) using different weights and italics and headers and horizontal rules
 
@rdlowrey I mean like system design, but I do try to make my stuff not look crappy ;P
 
guys
 
3:36 AM
@rdlowrey hlol that's the best part.
 
For my serious projects I even get my fiancee to draw graphics for the wiki
 
why there are so much morons on SO nowadays? stackoverflow.com/a/9612182/251311
 
user895378
@CharlesSprayberry haha that's cool too.
 
user895378
@CharlesSprayberry One of these days I'm going to learn to use yuml.me
 
user895378
correctly.
 
user895378
3:37 AM
And not hack my way into something that approximates what I wanted.
 
@rdlowrey Thank you, thank you, thank you. I did not know this site existed.
 
user895378
@CharlesSprayberry Yeah it's great. Sorry I didn't actually include the link.
 
@zerkms :S
@rdlowrey I have never felt comfortable using it
the fear of not having a feature when you are so far along using it - featurelackaphobia
 
@rdlowrey If they can export the UML as an xml file, then I can even generate code in any language of my choice in it.
 
5.4 IDE support? Netbeans will be 7.2 (by which I'm sure they meant 8.3) but that's all I know for the moment. Should I drop down to note-paddery?
 
3:44 AM
Reading the scalar type hinting today, I have thought of another magic we can do
As in the Unix philosophy, the interface between two programs is plain text, we can take the same philosophy into php
 
@Bracketworks No, vim.
 
no please no
@andho: type hinting is good, as long as it supports implicit casting
 
@LeviMorrison I should have generalized "should I drop down to -generic-non-IDE-"
 
you should always drop down to vim
 
(ircmaxell has made a patch to support it, hope it'll be accepted)
 
3:46 AM
@zerkms yeah so i got the idea from his proposal
 
I was reading on ircmaxell's patch. Effing splendid, the syntax choice too.
 
@zerkms I generally support everything @ircmaxell does, but I don't support this proposal. It is inconsistent with current type-hints and doesn't fix the casting issues that I want to avoid altogether.
 
@LeviMorrison it's withdrawn
 
@ircmaxell What's your reasoning?
 
3:48 AM
@LeviMorrison: it is consistent with current php behaviour
 
@zerkms which is broken
 
say we have class A:
class A {
  private $_a;
  public function __construct($a) {
    $this->_a = $a;
  }

  public function __toString() {
    // string representation of the current state
  }
}

and function/method as follows:
function testing(B $b) {
  var_dump($b);
}

testing(new A('a'));
 
I'm sorry but (int) array() should NOT be zero . . . it should fail.
 
@LeviMorrison agree
 
@LeviMorrison true
 
3:49 AM
which is why I'm working on a 6.0 proposal to re-vamp the entire type system
 
@LeviMorrison how about a strict mode
 
If casting semantics were corrected, then I would support the patch as it's more flexible and nice for scalars.
@ircmaxell Good luck. Genuinely, I mean it.
 
"The syntax is similar enough to the syntax for parameter types in other languages that developers will think of it as basically the same thing."

That's just plain silly. Bracket delimitation is a major indicator that it isn't merely a statically typed parameter.
 
@LeviMorrison When I asked a few core devs on IRC about the thought (without explaining how), they seemed for it whole heartedly
I have a way I want to kick off that conversation, but it's a bit radical. SO I need to think it out first, before just posting it...
 
@ircmaxell I wish I had a large company and could afford to pay you to do a great job.
 
3:51 AM
@LeviMorrison :-P
My company like the fact that I do this stuff. My boss brags to practically everyone about it (including the higher-ups)
 
If PHP type system was corrected so casting wasn't so bizarre, it would improve the company's work undoubtably.
 
@LeviMorrison I want to white-room it. Start from scratch, thinking what would we need in a dynamic and weak typed language...
 
@ircmaxell Maybe we can support multi-byte characters while we are at it ;)
 
@LeviMorrison If it doesn't, I won't be willing to support it...
 
user895378
@LeviMorrison Almost have a draft done. It's extraordinarily incomplete because I just want to get something out right now that you can adjust.
 
user895378
3:58 AM
couple more minutes
 
One thought is base types:

 - Int
 - Float
 - Decimal
 - String
 - Text
 - Array
 - Object
 - Null
 
@ircmaxell Float vs Decimal?
 
Decimal == arbitrary precision, stored (internally) as a string
 
String vs Text?
 
String == raw collection of bytes. No charset info. Text == string with charset info
so Text can be cast to a string, but a string cannot be directly cast to Text.
and all direct output must be done from text elements
actually, scratch that
String and Bytes would be better names
 
4:02 AM
Yeah, doesn't sound like a good idea to me, at least
 
String has charset info, Bytes doesn't...
 
Bytes would be better
However, I'm not sure there's a real need for it.
 
a real need for what? bytes? Sure, you could emulate that with a string charset=ANSI, but that could yield odd results...
that won't work either, since how do you handle $string1 . $string2 when they have different charactersets...
 
I guess I've never needed a raw datatype in PHP . . .
 
4:07 AM
@ircmaxell That sounds like you may have needed raw data types, but shouldn't it be done in PECL?
 
absolutely not. Since that hampers portability
I want to be able to do anything in PHP land...
 
I guess you have loftier sights for PHP than me. I figure if I need raw bytes I should be in a lower-level language.
 
it'll cripple the language if there isn't any reasonably easy way to use raw bytes...
 
user895378
@LeviMorrison gist.github.com/1998587 <-- Your turn. I don't feel super strongly about much of anything there, a standard just needs to be set so that everything remains consistent. That was a particularly soul-crushing exercise for me for some reason. Gonna take a break for a few minutes so I can come back ready to rock.
 
@rdlowrey Tip: don't document that like that to start
build a code sniffer ruleset first. Then document the sniff
 
user895378
4:11 AM
I guess have it backwards :) I was just going to say, okay, this is what we want, let's build the code sniffer
 
that's my preference. I find it prevents unenforcable rules...
 
user895378
That's true ... It can be a PITA to setup custom rules for tiny little edge cases
 
yup :-D
 
@rdlowrey By the way ( ! empty . . .) drives me crazy. I don't like the space on single-param operators, including ++ and --.
 
user895378
Haha, like I said, anything you want to change is fine. I don't particularly care.
 
4:18 AM
For other stuff I consider it to be more readable (and traversable in editors) to have spaces: $asdf == $jkl, for example
 
user895378
I'm bad about leaving out spaces for default method params when there's no sniffer involved, but I agree with you that there should always be spaces for that kind of thing.
 
user895378
function ( $arg ) with a space buffering the parens drives me insane.
 
Same.
 
hey no one in html room that is active so ill ask a quick question here: is there anyways to stretch a div to bottom of screen?
 
@LeviMorrison agree there
@rdlowrey I like function foo($foo) {} and calling: foo($bar), but I like the whitespace with operators: if ($foo) {}
 
user895378
4:22 AM
@ircmaxell ditto
 
We all agree on minor issues.
What are the chances of that?
 
LOL
 
user895378
well everyone bent me over the barrel on 2-space indentations and non-CamelCase namespaces. But otherwise yeah. <-- I didn't put that in, but I'm all for \Root\NsLevel\ClassName now
 
user895378
I've seen the light, however. So thank you for fixing me.
 
If I ever meet someone who likes to use underscore_separated_class_names, I'm not sure what I'll do.
 
4:24 AM
"Indentations should be 4 spaces in length, no spaces."
 
user895378
oh geez.
 
@cHao I'm in charge of cleaning it up and I already caught that :)
 
user895378
@cHao You didn't hear about the new 4-space-no-space escape character they added to ASCII? :)
 
oh, and i get rather annoyed at 2-space indenters. indents should be obvious. 4 spaces or a tab...pick one and be consistent :)
 
user895378
It was this whole big thing
 
4:28 AM
I get to do a presentation on PHP 5.4 in my Internet Programming class.
Too bad I didn't get to teach the whole PHP section :(
 
user895378
I think this has been said by others before, but it bears repeating. I really appreciate having access to all the intelligent people in this chat room with a legitimate interest in moving their own abilities and the capacities of others forward. So, thanks.
 
@rdlowrey First, I agree. Second, thanks.
 
@cHao ++
 
user895378
Everybody except @LeviMorrison ... that guy's a moron
 
lol
 
4:30 AM
@rdlowrey Thanks was sarcastic. Who's the moron now?
 
and personally, I dislike tabs.
so I have my IEDs setup to convert tabs to spaces automatically on save
 
user895378
@LeviMorrison Ohhhhhh I got assassinated! Ouch :)
 
@rdlowrey :)
 
:-P
 
i like tabs...but where i work now, they use spaces. works for me. :)
well...they use spaces NOW...
 
4:31 AM
Ok, I'm off to bed. Good night
 
user895378
later
 
there are files all over the place that are like half tabs, half spaces
later :)
 
@ircmaxell Same, I just have to remember that when I'm doing stuff on github to do a whitespace commit. G'night.
 
the second i see one of those, i'm like :1,$s/\t/ /g
damn the diffs
lol
 
user895378
haha
 
user895378
4:33 AM
@cHao LOL "Who pushed a commit to 374 files with only space diffs?"
 
even though i like tabs, what i like more is consistency
 
@cHao As long as it is either 4 spaces or tabs, I'm fine with it.
 
lol...yeah. i have no problem committing with a comment like "fixed indents" :P
 
I don't either :)
 
if you don't wanna see commits like that, then learn to freaking edit. :)
jmnsho
 
user895378
4:35 AM
so true.
 
How would I run two mysql queries in php?
With one query, I get a number from the database
now, i need to use that number to get more information from another table
how would that work?
 
@user1079641 That should be one query, not two.
 
but how
?
 
user895378
Google
 
erm....$db->query(...); /* do stuff with first result here */ $db->query(...); ? :P
 
user895378
4:39 AM
@user1079641 There are lots and lots of tutorials for how to do that sort of thing
 
it's not really that involved
and yeah...if the data permits, a join would probably be better
assuming you have indexed worth a damn
btw...and i'm sure i've mentioned this before...but note i didn't say mysql_query. the mysql extension sucks altogether, and i'm done providing examples of how to use it :P
PDO or GTFO, IMO.
4
 
user895378
If only there were an abbreviation for "or" :)
 
@cHao mysqli is k
@rdlowrey There is: |
 
user895378
@LeviMorrison nice
 
mysqli is tolerable.
i don't hate it....but if i had to choose between PDO or mysqli....well, i hope my choice would be obvious :)
 
4:54 AM
@cHao I'd pick PDO every time. I know ircmaxell likes mysqli just fine.
 
user895378
The way I see it, the tie-breaker is that PDO makes changing your backend RDBMS away from MySQL easy, so it wins.
 
well , ircmaxell only uses mysql as RDBMS , and tables are extremely simple ( he does not use foreign keys or triggers )
 
user895378
Ehh ... I need foreign keys
 
so , basically , he does not need ability to access other databases
 
user895378
The problem is that 95% of the tutorials that show up are several years old and use mysql_query. When someone who doesn't know what they're doing googles to figure out how to do DB stuff with PHP, that's what they learn.
 
user895378
4:59 AM
Or they post a moronic duplicate question on SO and get downvoted into submission (hopefully).
 

« first day (509 days earlier)      last day (4436 days later) »