[Answer]-Python django class based view and functional view

1👍

Class Based View and Functional View both has their use cases. None is better. It’s completely depends on you, how you are using it.
Performance difference between CBV and FV is negligible.
Still now there is no possibility of CBV or FV will get deprecated.
This has been discussed in lots of places including SO and reddit.

0👍

This question can be answered by another question:

What is the difference between procedural and object oriented programming?

Class based views provide you the power of OOP. Code becomes reusable and abstract. The modularity improves.

Performance wise, I guess there is no difference between a class based and a function based view. It all depends on with which you are more comfortable. Both are just meant for different styles of programming.

Leave a comment