Skip to content

Abandon Class-Based Views or give a warning about their use #5

@treyhunner

Description

@treyhunner

Some of the discussion I had with Django/web programming newbies during the talk led me to believe that the class-based views that were discussed may have made the presentation more confusing than using plain function-based views.

Luke Plant, one of the Django core devs, has written two blog posts in the past on his dislike for CBVs:

Regardless of whether we demonstrate the use of CBVs we should probably warn about their downsides (mostly that it's often difficult to break free from their rigid purposes without writing confusing code (ravioli code as Luke and others call it).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions