Documentation Suggestions #1234
Replies: 7 comments 2 replies
-
Have updated the issue now (after accidentally posting it half-baked!) |
Beta Was this translation helpful? Give feedback.
-
I have found some more issues with the documentation. And also on the part of Twill, the primary thing I think is the biggest issue is leaky abstractions, there have been so many little gotchas to consider as you drill down into the details, it's getting a bit frustrating. This was not my experience with Laravel or even any other framework or library I have used, at least not to this degree.
I'll keep posting the things I find here, as despite the docs I do for the most part really like Twill. |
Beta Was this translation helpful? Give feedback.
-
Hi @CaelanStewart, Thanks for your feedback! I'm taking the liberty to convert this to a discussion because of the breadth of topics covered. Feel free to open more focused and actionable items as individual issues. I hear you... the docs are not ideal. A few things I can say about that: We are actively working on the documentation I'm a relatively new contributor to the project so, my understanding of Twill's history is probably incomplete. Even so, it's quite clear to me that over the years, the rate of new features and fixes outpaced the work on the documentation. I agree that it's behind what it should be. For what it's worth, we are constantly making adjustments to the 2.x docs, while working on a complete (or almost complete) rewrite of the docs for 3.x. You can expect more on this in the near future. In the meantime, your help will be appreciated! From my point of view, the barrier to entry for contributing to the documentation is very low! You can make edits and send pull requests directly from GitHub. Twill does require experience with Laravel You hit a very important point there, which I think can be improved. It's true that the docs in their current form require a certain level of experience with Laravel. I believe Twill docs can and will be update to make it easier to learn Laravel with Twill. All things considered, your feedback is very constructive and I thank you again for it. I can only encourage you to contribute and shape the docs in the direction that you want. |
Beta Was this translation helpful? Give feedback.
-
@pboivin – Thank you for the response! I did wonder if perhaps the docs were being left for a rewrite and a new major version. Indeed Laravel experience is needed, though I don't feel that was the primary reason for my gripes. I've dug fairly deep into Laravel for some pretty comprehensive custom apps I've built where I'm working, just none with Twill, including some custom extensions to implement recursive relationships through recursive CTE where the staudenmeir/laravel-cte package couldn't handle this edge case. It's just that I don't have many years of Laravel under my belt, hence the term "moderate". I'm happy to read code, but I feel that's a last resort, and docs should be the first pass. To be honest I found Laravel Spark to be the worst documented thing I've ever used! Though the main Laravel docs I've found generally cover all of the really important bits. |
Beta Was this translation helpful? Give feedback.
-
Oh, and I meant to say, I'd love to help contribute to the docs soon. Is there a roadmap for 3.x? If it's due for release pretty soon then there's probably little point significantly working on the docs for 2.x, especially where Twill isn't in wide use at the moment. |
Beta Was this translation helpful? Give feedback.
-
That's great to hear! The roadmap is shaping up there but it's not quite set in stone yet : Same goes for the docs rewrite and the 3.x release date, nothing confirmed at the moment. In any case, feel free to contribute to the 2.x docs. This has the potential to be useful in the short term and all contributions to the 2.x docs will be included in the rewrite. |
Beta Was this translation helpful? Give feedback.
-
One particular trait which I think makes it harder for me to interpret these docs is that I do not like to make any assumptions. I like to go into what I'm doing fully cogniscient of the process, so I will often spend quite a long time thinking and reading the docs before I even write any code. I don't like to just "try stuff" and see what happens. Hence why I feel ambiguity is important to minimise, and so too make clear the really important points about the structure of the features in question. |
Beta Was this translation helpful? Give feedback.
-
Summary
Hi,
I'm approaching Twill as a new user, with moderate Laravel experience.
I really like Twill so far, and I can see its potential to save time with the right toolkits and component libraries – however, there were a few things I felt were under-explained in the documentation. Things which I feel detract from the speed of onboarding without people around that already know it well to answer questions.
The issues I found were, fairly generally:
Examples
Example 1
Under "Form fields > Files" you have this code snippet:
public $filesParams = ['file_role', ...]; // a list of file roles
The term 'role' is already used for User roles, and presents an alternative and misleading interpretation of the above comment, which had to be clarified.
Example 2
It isn't described very clearly where the icons come from, except as an unexplained option in the default twill.php configuration section. These things were fairly easy to find out, but I feel there have been a lot of these things, and together culminate in a consistent theme of lacklustre documentation.
Describe the solution you'd like
Use more explicit language, and carefully consider possible misinterpretations, and proactively mitigate for them by making the language and terminology completely clear, unambiguous and comprehensive.
Use alert sections like seen on Laravel:
Have more complete and thorough examples, like a complete demo project that uses every feature of Twill in some simple and common use case.
Have more detailed tables and descriptions of options and their allowed values and types. WordPress, which I'm very happy to move away from, was admittedly very good at documentation, same with PHP. They are more mature projects of course, but I'd love to see Twill become the replacement for WordPress!
Beta Was this translation helpful? Give feedback.
All reactions