I have a question about how to stream the process.
One is to process    in the object.
The other is to judge the result by the controlling class
How to execute   .
Flow method: 1 allows the calculation result of the data to be deep in the function.
(From the creation of the execution result to the judgment of normality/abnormality is performed in the object)
How to flow: 2 can get the calculation result of the data immediately, but control
I think that it will be a burden to judge the calculation result for the class i am doing.
Which is normal in the case of repeated processing? Is it mainstream?
(Isn't it better to have a deep place where normal abnormalities occur?)
* This time I wrote it in Python, but other object languages are also acceptable.
We would appreciate it if you could give us a reference opinion.
(Example) Class class Sweets_table zenkoku_total = 0 chihou_total =  // list  sweets_zenkoku_total () for j in chihou_total: zenkoku_total + = chihou_total  sweets_chihou_total (ken_total) for i in ken_total: chihou_total + = ken_total  sweets_ken_suryou (ken_total) sweets_chihou_total (ken_total) return How to sink: 1 Class Sweets_dish ken_total = in_data st = Sweets_table () st.sweets_ken_suryou (ken_total)    How to sink: 2 Class Sweets_dish ken_total = in_data st = Sweets_table () st.sweets_ken_suryou (ken_total)  if st =='success' st.sweets_chihou_total (ken_total)  if st =='success' st.sweets_zenkoku_total (ken_total) 
Answer # 1
I don't have much time, so I'll think about it again. ‥
- about shell command execution and return value from python
- python - about the optimum angle of rotation matrix
- python - about "" "of" "" select === = "" "
- python, about the fire spread step of forest fire simulation
- python - about hamiltonian neural networks
- python - about write loop to csv
- about python argument and data definition
- python 3x - about downloading anaconda
- i have a question about basic python problems
- python 3x - please teach about the exchange of information with qthead
- python - about downloading youtube videos by youtube-dl
- about processing to exclude the character string group specified from list in python
- python - what i don't understand about yolo9000 (v2)
- about batch change of file name using python
- about the python speedtest code
- about the implementation of combinations in python
- please tell me about the role of python tag = "mychr"
- python - about x-axis adjustment in matplotlib
- about image output of python
- about the operation of python's speedtest module (library)
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- python - you may need to restart the kernel to use updated packages error
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- xcode - pod install [!] no `podfile 'found in the project directory
- i want to call a child component method from a parent in vuejs
- vuejs - [vuetify] unable to locate target [data-app] i want to unit test to avoid warning