I found MODx functions fairly straightforward back when I worked in Evo, even if it was fairly simple and just based on a few wiki pages.
Since moving to Revo I feel much more stupid and am plagued by a huge, non-standardised array of information, documentation and complexity that I consistently feel either unable or just don't have the time to fight my way through. Judging by the volume of posts asking the sort of things I feel, I would say others have this sensation too.
It's taken me a good few weeks to settle down to a few key php functions and code arrangements to allow me to get programming and create snippets to do the things that I did before (simple MySQL queries on custom tables, generating output lists/tables etc). But obscurity in the documentation often means I end up taking shortcuts and doing things my own way, just to save time. I feel like I'm being forced more and more to use more abstract methods of doing the same thing, and I get fed up spending time having to learn new ways to do normal things, or just trying to find these ways.
For example, today I'm looking for ways to access user info.
I found
$modx->user->get('username') and
$modx->user->get('id'), from here
http://rtfm.modx.com/revolution/2.x/administering-your-site/security/users. That's useful, but now I want to access more details of a user's group memberships etc using the same API. I go to the User Groups page via the link on that page:
http://rtfm.modx.com/revolution/2.x/administering-your-site/security/user-groups. Here, there are two or three functions at the bottom of the page explaining how to assign users to groups. But that's it. Where do I find the rest of the user group API info?
I google "modx revo api" and find
http://rtfm.modx.com/revolution/2.x/developing-in-modx/other-development-resources/api-reference.
That page just has a link to
http://api.modx.com/revolution/2.2/. I go, and now the head-scratching starts. Files, Packages, Charts, Reports, Other Documentation. Where do I go? I try Packages. A huge list of stuff. I scroll down and find modUser. I click on that and am faced with a meaninglass page of auto-generated package and class and data type information. Not a function in sight.
So am I doing something wrong? There must be a clearer more straightforward source of rapidly-digestible API info out there ready for developers to refer to for their snippet development? Like this
http://wiki.modxcms.com/index.php/Category:API_Function? It should be easy to find, easy to digest and easy to cross-reference.
Sorry to whinge, but aren't we all subscribers to the notion of intuitive user interfaces? That should include docs too. They are essential.