samdark / yii2-cookbook

Yii 2.0 Community Cookbook
1.45k stars 296 forks source link

Cookbook articles and official guide #104

Closed mrsurname closed 8 years ago

mrsurname commented 8 years ago

There are some topics not covered already:

etc.

Some of them (or most of them) are explained in official guides. So what is the purpose to include such topics in cookbook?

My suggestion and offer:

As a result in comparison with guide cookbook will provide a quick solutions for typical situations. Without a necessity to spend a lot of time to study concepts.

What do you think?

samdark commented 8 years ago

You're right that some of these are covered and covered well. TOC was initially suggested by community while guide was still incomplete. I think it's safe to eliminate some of the topics.

Problem-solution recipes are OK. Copy-paste w/o explaination isn't. The purpose of the project is to give better understanding while providing solutions.

mrsurname commented 8 years ago

Sure, I mean code is ready to use by copy-paste without any explanation. But explanation is also provided. And completely based on a concrete practical case.

So, my suggestions about possible recipe structure:

Maybe it is better for cookies recipe to be moved to Yii official guide cookie section.

About RBAC recipe:

Despite being described well in official guide there's no complete example on how to use it. Let's fill the gap. Is it ok to fill such gap in the cookbook? Maybe better to complete the Yii guide example?

Actually I don't know. I have time and desire to write something from time to time for the cookbook. And have to understand what is good and what is not good for cookbook project in order to provide better articles and do not duplicate existed somewhere information.

Thank you, Alexander. This issue will help me to make your project better.

samdark commented 8 years ago

I don't think we should mention anti-patterns at all if these aren't common enough to be used by everyone.

Improving the guide is OK but the guide isn't complete by-example thing. There are examples in the guide, of course, but these are small. There's no plan to add long step-by-step tutorials there. The cookbook, on the other hand, is a good place for these.

samdark commented 8 years ago

As for structure, it's OK for it to vary but in general. I prefer it to be structured as https://github.com/samdark/yii2-cookbook/blob/master/book/security-rbac.md.

mrsurname commented 8 years ago

Thank you, Alexander, for explanations. Now everything is clear.