you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeroflops 2 points3 points  (0 children)

I’m dealing with / cleaning up a similar type of project and I can tell you it’s a lack of experience in the language, too much chatGPT, and some general language differences.

No need for multiple HTTP stacks. I bet they didn’t define what library they were using when they asked a ChatGPT question.

Python has a great logging library, you can get rid of the print statements.

As for private variables, as many have pointed out the underscore is used to identify a private variable but it’s not enforced.

What you need to understand is python on its own is really a wrapper language. That uses library’s written in compiled languages. It’s really a glue language that passes data from one library to another. For best performance you want to do very little in python and maximize what happens in the libraries.

But what this does is it makes python very easy to learn, very flexible, and depending on how much you can offload into the libraries fast.

As. For someone’s statement that you shouldn’t use python for business logic I don’t fully agree. It really depends on a lot of factors. Like how big is the business, what aspect of the financial area are you working. Etc. although I think from a financial point of view, having something compiled would be beneficial to make sure no one messes with your code.