Log message #4217827

# At Username Text
# Dec 9th 2019, 10:16 slackebot2 ! dereuromark-advice
# Dec 9th 2019, 10:16 slackebot2 Command sent from Slack by challgren:
# Dec 9th 2019, 10:12 val Hi, I remember I saw the description of how to use classes instead closures in the 3.x cookbook but I can't find it now. Can anyone point to the right place to look?
# Dec 9th 2019, 09:59 ndm @ynherag Use the operators function equivalent, `jsonb_exists_any()`, or upgrade to PHP 7.4 which introduced support for escaping parameter placeholders, so that you can do `??|` (the first question mark is the escape character). https://stackoverflow.com/questions/36173440/how-to-ignore-question-mark-as-placeholder-when-using-pdo-with-postgresql https://wiki.php.net/rfc/pdo_escape_placeholders
# Dec 9th 2019, 09:03 jotpe *Line:* 573
# Dec 9th 2019, 09:03 jotpe *File* /usr/www/users/xxx/xxx-dev/vendor/cakephp/cakephp/src/Error/Debugger.php
# Dec 9th 2019, 09:02 jotpe *Error:* Nesting level too deep - recursive dependency?
# Dec 9th 2019, 09:02 jotpe Anyone has a clue why this occurs on my dev server?
# Dec 9th 2019, 08:49 neon1024 Hey everyone
# Dec 9th 2019, 08:47 conehead Good morning
# Dec 9th 2019, 08:44 slackebot2 transformation from `?` to `$1` ?
# Dec 9th 2019, 08:44 ynherag Hi here, how do i use the symbol _question mark_ in a query for which it's not a parameter. I'm using the postgresql jsonb `?|` operator. ```$query->sql(); SELECT Flags.id AS "id" FROM flags Flags WHERE (colors ?| string_to_array('red,blue',',')``` ```$query->toArray(); Error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "$1" LINE 1: ....FROM flags Flags WHERE (colors $1| string... ^``` Is there a trick to prevent the
# Dec 9th 2019, 08:32 gianmarxgagliardi Morning
# Dec 9th 2019, 08:32 javier.villanueva morning
# Dec 9th 2019, 08:20 jotpe Morning
# Dec 9th 2019, 02:46 latenal Hi, is there a way to pass an option to an associated table using `contain`? The reason is that I am using a soft-delete plugin. I need to pass a `withDeleted` option in order to disable it for certain tables.
# Dec 9th 2019, 01:22 ndm Yeah, maybe you're taking it a tiny step to far there @luizcmarin, CakePHP licenses don't cost 1000+ dollars, so that CakeSF could afford employing a dedicated documentation team. Surely there's quite some room for improvement, but you've got to keep your expectations real ;)
# Dec 9th 2019, 00:19 slackebot2 cookbook: to teach me step by step. Adapting what he says in the Ratatouile movie: "If I learn to cook from cakephp's cookbook, anyone can learn." Unfortunately, today is not true .... I don't want to overload them. Thanks for listening.
# Dec 9th 2019, 00:19 luizcmarin I will throw firewood into the fire .... How do I feel by accessing the help page "https://help.windev.com/en-US/?1410087237andname=webdev_24_tutorial_summary" and click on lesson 2.3 of "Part 02 - My first database "?   - "wow ... 40 minutes to learn how to create my database within cakephp standards, conventions, relationships etc ... show!" I read the entire manual and do all the lessons with pleasure, because that's what I expect from
# Dec 8th 2019, 23:51 luizcmarin @corey.taylor.fl you're right. I've been a little discouraged too with the confusion and little didactics in the documentation, things that I really miss ..
# Dec 8th 2019, 18:58 corey.taylor.fl But, we also have some very rough english in our docs which makes it hard for any non-native speakers to follow.
# Dec 8th 2019, 18:58 corey.taylor.fl For localized documents, usually people pay attention to it for a few days and then never again. Even examples are hard to update because you can't just replace the names of classes.
# Dec 8th 2019, 18:56 corey.taylor.fl There are not many people working on the portuguese translations. We have one active contributor who is translating new pages in the 3.0 branch. The best we can do is ask other users to review changes.
# Dec 8th 2019, 16:23 luizcmarin Have you seen the documentation of the giant https://windev.com? wow !! I read the entire manual of almost 1000 pages in French. I didn't understand half, but the other half was show.
# Dec 8th 2019, 16:18 dereuromark We should delete all localized config for 4.x IMO and keep making main docs more meaningful.
# Dec 8th 2019, 16:18 dereuromark "examples and tips are lacking, it is not very didactic and there are things that no longer reflect the current reality." That is exactly what should be focused on, and improved.
# Dec 8th 2019, 16:15 slackebot2 only in English. And how sad to see that it refers to documentation 1.1 or 1.2 or 2. Have you considered improving the 4.x documentation to become a standard going forward? Soon they will have 4.1 4.xx and 5.x, 6.x Have you ever imagined the Babylon of confusion that the documentation will turn pointing links to everywhere? So we ended up asking obvious questions in the forums and support: the documentation kills us!
# Dec 8th 2019, 16:15 slackebot2 translate with google. That's what I'm doing now to post this message here. If it is well translated I do not know ... the problem of understanding is no longer mine ...;) But back to the point: No feature available in any language is useful if it is not kept up to date. The parts that I had the most difficulty, and still have, have never been translated into Portuguese. I read the entire manual and when I got to the part that interested me most:
# Dec 8th 2019, 16:15 luizcmarin I don't want to throw a bucket of cold water on the idea of ​​having the documentation translated .... but .... The English documentation also leaves something to be desired ... examples and tips are lacking, it is not very didactic and there are things that no longer reflect the current reality. For us non-English speakers, if we are programmers we are required to live with English terms. It is standard. What we don't understand we
# Dec 8th 2019, 15:29 ndm I'd image that would be much more beneficial for the project overall... I mean, if people would then actually go and do that :upside_down_face:
# Dec 8th 2019, 15:25 dereuromark instead people should use that time to improve actual docs and stuff.
# Dec 8th 2019, 15:24 dereuromark have been saying that for years.
# Dec 8th 2019, 15:23 ndm I was never a fan of localized documentations, they _always_ get out of date. _Always_. If it were up to me, I'd delete them and never look back.
# Dec 8th 2019, 15:15 luizcmarin hummmm .... until the message above didn't get that big ... I thought it would get worse ...:,)
# Dec 8th 2019, 15:13 slackebot2 But in Portuguese it says: "ApplesController (...‘ ApplesController.php ') is accessed by http://example.com/apples. " Now the example used is 'users' in English, which agrees with the general context. Already in Portuguese we have 'people', 'users' and 'apples'! In addition, the documentation in Portuguese is not following the documentation in English. Compare the following topic "View Conventions" in English and Portuguese. You can see that ther
# Dec 8th 2019, 15:13 slackebot2 are more things. So I ask, so that my collaboration is not in vain and ends up in a maze that no one else understands anything: how to proceed? I've worked with documentation and text editing, and it was not easy for me to understand cakephp with the documentation that now said one thing then exemplified another ....
# Dec 8th 2019, 15:13 slackebot2 "PeopleController and LatestArticlesController" and "/ articles / view maps to ArticlesController view () method", which is different: 'People' and 'Users', for Brazilian programmers refer to different things. See another example on the same link, now under the topic "URL Considerations for Controller Names". The first sentence ends with "file name UsersController.php) is accessed from http://example.com/users." in the 3.x and 4.x documentation.
# Dec 8th 2019, 15:13 luizcmarin Hi. I'm working on the portuguese translation. But the current Portuguese translation is somewhat confusing. It is different from the original in English. For example, https://book.cakephp.org/3/en/intro/conventions.html uses "UsersController and ArticleCategoriesController" and "/ users / view maps to view () method of the UsersController" in controller conventions. In documentation 4.x follows the same. Already in Portuguese appears
# Dec 8th 2019, 12:18 dereuromark yeah, dev prefix only works with string (non numeric) branch names. thus my recommendation to always call cake4 branches as such, to avoid this confusion
# Dec 8th 2019, 11:39 challgren 4.x-dev?
# Dec 8th 2019, 11:23 dereuromark The latter is only valid afaik.