Python file structure and productivity (many classes)

Asked 2 years ago, Updated 2 years ago, 27 views

We are currently developing mainly in Java, but we are thinking of using Python for some development projects.As a result of investigating various characteristics, I am concerned about the development of medium-sized or larger (multiple people) and have a question.

I don't think Python will develop it with the structure of "1 file = 1 class", but will it affect productivity with "object-oriented development in which large classes are created"?

(As for the case, we assume that there is a possibility of adding functions using the calculation library/AI library to the web system.)

I'd like to hear your opinion.

python

2022-09-30 21:35

1 Answers

Python is a programming language that can be used to develop large systems, but I don't think it's appropriate to move a program with a large number of classes written in Java to Python for the following reasons:

  • Late processing speed
  • Unable to check type

If you want to use Python, I think you should use the characteristics of the group language to use Python only for the parts you want to use.For example, if you want to use an external service for code written in Java, or if Python has an excellent library that focuses on data science and machine learning, but you want to use that library.

As for the interaction between Python and Java programs, gRPC and JSON-RPC can be used in addition to traditional methods, so there should be no problem.


2022-09-30 21:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.