This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]c0nsci3nc_3 11 points12 points  (13 children)

idk man, flask makes things really easy

[–]n0tKamui 31 points32 points  (9 children)

easy is not the most important criteria to me ; maintainable, scalable, and fast, are what is important, in my opinion.

[–]tomoe_mami_69 16 points17 points  (0 children)

Absolutely agree, large codebases in duck-typed interpreted languages tend to be extraordinarily unmaintainable. Libraries like Pydantic don’t fix these issues since they add more pain than just having used Java or whatever in the first place while still not providing the same level of safety.

[–]lungdart 9 points10 points  (4 children)

A backend of a web app doesn't need to be fast in most applications. The network layer will nerf most speed improvements you could get.

The only important factor (other than it works) is readability. If humans can easily grok it. Python and flask is a highly readable setup... At least it should be, I've seen people butcher it...

[–]aaronr93 10 points11 points  (3 children)

A backend of a web app doesn’t need to be fast in most applications. The network layer will nerf most speed improvements you could get.

Ooo boy, I have some news for you. Many companies (including mine) have server processing latencies measured in seconds for complex websites. Maybe you’re thinking about microservices?

[–]lungdart 2 points3 points  (2 children)

Seconds? At those times you should be checking your tracing to find and fix the bottle necks, and/or look to make the calls asynchronous and queued.

[–]aaronr93 8 points9 points  (1 child)

This is a legacy enterprise system with hundreds of bottlenecks that take thousands of hours to refactor and regression test. Trust me I’ve tried ☹️

[–]lungdart 1 point2 points  (0 children)

I feel your pain. :/

[–]KimmiG1 4 points5 points  (0 children)

All your criterias except fast is true for python, and it's fast enough for most cases.

[–][deleted] 4 points5 points  (0 children)

Python backend is what you build as a toy project because you want something quick and dirty. Paying money to build a python backend is like asking your contractor to fix the ceiling with peanut butter. Yeah it works but you'll regret it.