zlacker

[parent] [thread] 1 comments
1. stefan+(OP)[view] [source] 2026-01-06 21:43:41
That code has a lot of smell IMHO :/

What's the rationale behind writing PHP as if it was JS? Unless I am mistaken it's like someone just did a transliteration from JS to PHP without even converting the JSDoc to PHPDoc.

And are there any tests for the code?

replies(1): >>EGreg+fX1
2. EGreg+fX1[view] [source] 2026-01-07 14:34:58
>>stefan+(OP)
I actually based it on an existing PHP adapter for MySQL. Together with the AI, I went over all the features that needed refactoring, and what would work in Postgres and Sqlite the same way, etc. There were a ton of nuances.
[go to top]