Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681454yI like this guy. Welcome to devRant!
PDO is awesome but can be overkill and a pain In the ass, mysqli_ works too but the community out there will grind you for it. -
@Auhrii Should you need help with mysqli, feel free to bomb this rant and mention me.
I should be able to answer ;) -
hjk10157314yTop be fair you should (yes should, not must) use PDO unless you really need some msql specific stuff it does not support. It's become the defacto standard. Making it easy for generic classes just to ingest a PDO object.
Because one coworker used mysqli I had to make a separate branch that uses it. But that is preferable to him putting credentials all over the place.
That you should does not mean MUST. @IntrusionCM is awesome use him well. -
Auhrii524y@hjk101 Yeah! Normally I would just go ahead and install it, but I'm keeping my stack as slim as possible given the limited hardware at my disposal. It's a personal project too, so thankfully I don't really have to worry about anyone else's workflow/what they use.
Kudos to the Pi though, it's a fair bit more capable than I thought! -
hjk10157314y@Auhrii in that case I would go for an sqlite database. That is a real saver (both memory and storage) also really efficient. PDO has a driver for it 😅
Related Rants
Name a more iconic duo than web developers on help sites and having pissing contests over which modules they use instead of actually answering the question!
I've been a web dev/server admin for all of about a month now, and only known PHP for about a week of that, and the one thing really that grates on me isn't PHP's odd function naming inconsistencies or at times outright trash documentation, it's the other developers who, when asked a fairly straightforward question about why a mysqli function won't return something, demand you use PDO instead.
Please. I'm running a LEMP stack on a Raspberry Pi here, I'm trying to keep dependencies to an absolute minimum because the SD card is tiny, the Pi will catch on fire if it runs any hotter, and more dependencies are more potential points of failure. Just answer the damn question. I'm not going to install PDO for something I know I can do anyway just because it makes my code look slightly prettier.
Honourable mention to all you Node.js developers out there too, with your thousands of useless npm dependencies. I salute you.
rant
webdev
php
mysql