I found when taking the CBGV session in MelbDjango School, it was best to
approach teaching CBV as an exercise in Interfaces.

Once the students were familiar with writing basic views, and the patterns
therein, much of CBGV became "obvious", and the lesson focused more on the
power of interfaces.

As I've said many times on IRC I'd love a site that shows the layers of
interfaces in various CBGV so it becomes clearer how they interact.
Unfortunately, I don't have the time or skills to pull this off :/

--
C


On 18 March 2015 at 08:07, Moritz S. <[email protected]> wrote:

> Am Dienstag, 17. März 2015 20:41:53 UTC+1 schrieb poiati:
>>
>> The problem with CBV is the learning curve.
>>
>
> Totally agree with that!
> Personally I really like CBVs and I also write my own subclasses and
> mixins regularly, but I think you'll really have a hard time even writing a
> simple mixin if you have never heard of mro or metaclasses.
>
>
>
>> On Tue, Mar 17, 2015 at 4:23 PM Gaurav Dadhania <[email protected]>
>> wrote:
>>
>>> IMHO, Class-based views — either ones provided by Django or a 3rd party
>>> library or your own —  are an inheritance pattern, like any other design
>>> pattern, use it if it suits your use case. Like a lot of things, there is
>>> no one, right answer.
>>>
>>> I've enjoyed using CBVs for CMS-y projects (list products, product
>>> detail, product edit OR list posts, post detail, post edit, etc.) and
>>> functional views for endpoints which don't really have much in common eg:
>>> payment processing, authentication/authorization endpoints, etc. (use
>>> decorators for common simple guard checks, rate limiting, response
>>> serialization/template rendering if you need). YMMV.
>>>
>>> Cheers,
>>> G
>>>
>>> On Tue, Mar 17, 2015 at 8:53 PM, Asif Saifuddin <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I found this blog post about class based views of django
>>>>
>>>> http://lukeplant.me.uk/blog/posts/my-approach-to-class-based-views/
>>>>
>>>>
>>>> what do you guys think about?
>>>>
>>>> Regards
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django developers (Contributions to Django itself)" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/django-developers.
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/django-developers/e84fd370-044e-456e-b2f3-
>>>> fd028f41232e%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-developers/e84fd370-044e-456e-b2f3-fd028f41232e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django developers (Contributions to Django itself)" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/django-developers.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/django-developers/CAHgJS%3D_OCgApx6SBdqYCQysLU6MFR%
>>> 3DganAwYv7LNBE4gzzucaA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-developers/CAHgJS%3D_OCgApx6SBdqYCQysLU6MFR%3DganAwYv7LNBE4gzzucaA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/19d912c9-3dc2-4a13-a4bd-e2f0354e95b1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/19d912c9-3dc2-4a13-a4bd-e2f0354e95b1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAG_XiSBr0r5%2Bq1P8zLcpSDTiUr9M-kqvxFfzGx32S_s6DDXkqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to