Web Application Frameworks: C++ vs Python

后端 未结 7 2029
没有蜡笔的小新
没有蜡笔的小新 2021-02-14 14:54

I am familiar with both Python and C++ as a programmer. I was thinking of writing my own simple web application and I wanted to know which language would be more appropriate for

7条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 15:22

    The only reason you might want to use C++ over Python is when speed is paramount.

    If this is going to be your first web-app, you'll probably be ok with just Python, and your development speed will be orders of magnitude better than with CPP.

    Django's templating language is far from powerless, to me it actually seems very pythonic. You actually can write pure python in a template(although this is generally not recommended).

    Even better, it's possible to replace Django's templating system with the one you like. My personal favourite language for this is HAML.

    Here's some data on this: Is there a HAML implementation for use with Python and Django

提交回复
热议问题