News for hackers. Stuff that matters.
Re:WordPress Core to start using SQLite Database by phendrenad2 on Wednesday July 26, 2023 @05:30PM (#36885346)
This is great. Apps and frameworks should work with the lowest-common denominator of SQL. I get physically ill when I walk into yet another Rails shop to find that they have used every cool feature of Postgres and as a result, the CI must spin up a huge postgres instance and multiple plugins just to run a single unit test. Ugh.
Re:WordPress Core to start using SQLite Database by sodapopcan on Wednesday July 26, 2023 @05:53PM (#36885651)
Honest question: why would CI only run a single unit test?
Re:WordPress Core to start using SQLite Database by ilyt on Wednesday July 26, 2023 @06:43PM (#36886187)
Well, if you're currently writing one unit test, and want to test that test...
Re:WordPress Core to start using SQLite Database by sodapopcan on Thursday July 27, 2023 @08:20AM (#36892358)
Why wouldn’t you use your development medicine? “…”
Re:WordPress Core to start using SQLite Database by sodapopcan on Thursday July 27, 2023 @10:45AM (#36894390)
lol "medicine"... damn phone. I meant "machine" of course.
Re:WordPress Core to start using SQLite Database by radiator on Wednesday July 26, 2023 @05:59PM (#36885728)
You are advising application developers against using their chosen database optimally? I think it is not needed, I rarely see an application change its database.
Re:WordPress Core to start using SQLite Database by hoherd on Wednesday July 26, 2023 @06:13PM (#36885914)
While I agree, it's amusing to see this comment in a thread about an application providing a new database, and where one of the main reservations is around people needing to change the DB.

> WordPress developers who do not agree with the idea of introducing SQLite in WordPress core are mainly concerned about ... migration process or converting from one database to another

Re:WordPress Core to start using SQLite Database by phendrenad2 on Thursday July 27, 2023 @11:20PM (#36902805)
Tight coupling is bad, haven't you heard?
Re:WordPress Core to start using SQLite Database by karmaMeansCool on Wednesday July 26, 2023 @06:10PM (#36885880)
I don't know if all the blame goes to postgres or not, but a unit test in Rails is typically what others would call an integration test and Rails' architecture is more to blame than SQL. If someone chooses to use postgres in their application, don't be surprised when you see code that uses postgres. Wanting to force others to make applications that work with the lowest-common denominator of SQL could make one appear naive, and that you might not have ever faced the same problems others developers have faced.
Re:WordPress Core to start using SQLite Database by ilyt on Wednesday July 26, 2023 @06:42PM (#36886185)
> Apps and frameworks should work with the lowest-common denominator of SQL.

Pointless limitation that will make your app slower and SQL code worse.

> I get physically ill when I walk into yet another Rails shop to find that they have used every cool feature of Postgres and as a result, the CI must spin up a huge postgres instance and multiple plugins just to run a single unit test. Ugh.

shrug. We (not rails shop) just create temporary database, pass it to CI test, remove after. Picking database because your CI is done badly is like one of the worst ways to decide on architecture

Re:WordPress Core to start using SQLite Database by notjoemama on Wednesday July 26, 2023 @08:01PM (#36886904)
shrug. a lot of systems have been in place long before modern CI

Assuming they can just "do it" is a bad assumption of both the depth of their existing stack and their companies budget for migrating.

I'm gonna guess you haven't been around long enough to have FTP'd files as a deployment.

Re:WordPress Core to start using SQLite Database by phendrenad2 on Thursday July 27, 2023 @11:18PM (#36902795)
> Pointless limitation that will make your app slower and SQL code worse

That seems to be the common opinion, but I don't think that it's based on anything tangible.