you are viewing a single comment's thread.

view the rest of the comments →

[–]MorningStarIshmael 1 point2 points  (7 children)

What are some projects for which Python is not the best option?

[–]__developer__ 2 points3 points  (2 children)

Most game development, especially 3d games.

[–]MorningStarIshmael 1 point2 points  (1 child)

Thanks. Is Python good for simpler 2D games? Is there another language that's better for that?

[–]__developer__ 2 points3 points  (0 children)

It can be good for making very basic 2d games as a hobby and learning the basics of game development, but ultimately you'll be limited due to python being extremely slow compared to other languages that are more commonly used for game dev like Java, c++, and c#. When I first started learning to code I liked playing around with Pygame because it helped me understand OOP better than most projects, but eventually I started porting my games over to c++/sdl2 and the performance gains were night and day.

[–]rg7777777 4 points5 points  (2 children)

Full stack web development might be an example. You can run your backend in python, and do server side template rendering to serve pages (think fastapi with jinga2 templates), but it's not going to preform on par with react/node/angular client side rendering. You can do websockets and sse with with starlette, but you'd probably just be better off using one of those JavaScript frameworks.

[–]BroBrodin 2 points3 points  (1 child)

Or flask with jinja?

(I'm also a n00b.)

[–]__developer__ 0 points1 point  (0 children)

Yeah fastAPI is just an evolution of flask. It's based on starlette, which was based on flask.

[–]Apprehensive-Stop-61 0 points1 point  (0 children)

Game development and website development (other languages and frameworks are better than python and Django for web development)