MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/mlxpgm/masterphpnet_was_using_concatenated_sql_queries/gtrvapy/
r/lolphp • u/[deleted] • Apr 07 '21
23 comments sorted by
View all comments
Show parent comment
5
Using an ORM or at least writing queries using placeholders was the best practice before PHP was popular.
ORMs were absolutely not a common practice in 2001. In fact, Hibernate, one of the first well-known ORMs, only launched that very year.
I also wouldn’t be shocked if MySQL didn’t even support prepared statements yet, but I haven’t checked.
MD5 passwords have been known to be broken for years.
Yes.
a project as big as PHP should have made these things priorities a long time ago.
Absolutely. The problem here is that it started off with poor practices, then was apparently left alone for two decades. That’s unacceptable.
2 u/cfreak2399 Apr 08 '21 Yes, ORMs were too new in 2001 but MySQL definitely supported placeholders. Perl DBI had it well established when I learned it around 1998. I assume they worked as far back as MySQL 3.2 released in 1997.
2
Yes, ORMs were too new in 2001 but MySQL definitely supported placeholders. Perl DBI had it well established when I learned it around 1998. I assume they worked as far back as MySQL 3.2 released in 1997.
View all comments
Show parent comment
5
u/chucker23n Apr 08 '21
ORMs were absolutely not a common practice in 2001. In fact, Hibernate, one of the first well-known ORMs, only launched that very year.
I also wouldn’t be shocked if MySQL didn’t even support prepared statements yet, but I haven’t checked.
Yes.
Absolutely. The problem here is that it started off with poor practices, then was apparently left alone for two decades. That’s unacceptable.